■ユーザーズフォーラム リニューアルのお知らせ
新規投稿は新ユーザーズフォーラムにお願いします。

Re: (4系)bccolumnのブログの「詳細」表示について。

Masamichi > Re: (4系)bccolumnのブログの「詳細」表示について。 @ 2018/4/27 13:50
こんにちは。

デモサイトおよび当方の環境でも確認できました。

どうやら、テーマ内の記述ミスの様です。

修正箇所はこちらです。

/theme/bccolumn/Blog/topics/single.php

single.php 内の下記の箇所に記述ミスがございました。
※添付ファイル参照



正しいコードも付けておきます。

修正済みコード
<?php
/**
 * ブログ詳細ページ
 */
$this->BcBaser->setDescription($this->Blog->getTitle() . '|' . $this->Blog->getPostContent($post, false, false, 50));
?>


<script type="text/javascript">
$(function(){
if($("a[rel='colorbox']").colorbox) $("a[rel='colorbox']").colorbox({transition:"fade", maxWidth:"80%"});
});
</script>


<div class="blog topics topics-single">

<h2><?php $this->BcBaser->contentsTitle() ?></h2>

<div class="eye-catch">
<?php echo $this->Blog->eyeCatch($post) ?>
</div>

<div class="post">
<?php $this->Blog->postContent($post) ?>
<div class="meta"> 
<span class="date">
<?php $this->Blog->postDate($post) ?>
</span>
<span class="category">
<?php $this->Blog->category($post) ?>
&nbsp;
<?php $this->Blog->author($post) ?>
</span>
    </div>
<?php $this->BcBaser->element('blog_tag', array('post' => $post)) ?>
</div>
<div class="post-navi">
<?php $this->Blog->prevLink($post, "< ". __('前の記事')) ?>
&nbsp;  &nbsp;
<?php $this->BcBaser->link(__('一覧へ'), '/'.$this->request->params['Content']['name'].'/index') ?>
&nbsp;  &nbsp;	<?php $this->Blog->nextLink($post, __('後の記事'). " >") ?>
</div>
<?php $this->BcBaser->element('blog_comments') ?>
</div>


こちらに置き換えた所、デモサイトおよび当方の環境でも正しく表示されました。

ご確認下さいませ。



■ BaserCMS: 3.0.15〜4.1.5
■ サーバー名: mixhost・x-server・さくら・ロリポップ
■ スマートURLの利用: [共に]
■ 設置フォルダ: [共に]
■ データーベース MySQL5.6
■ PHPスキル[C]

ログイン
ユーザー名:
パスワード:


  新規登録 / パスワード紛失

検索

facebook
フォーラムで悩みが解決した場合など、よかったら「いいね!」をポチっとクリックしてください!質問の回答者や開発者の励みになります

フォーラムガイド


関連リンク

オンライン状況
5 人のユーザが現在オンラインです。 (5 人のユーザが フォーラム を参照しています。)

登録ユーザ: 0
ゲスト: 5