hiikun様
返信ありがとうございます。
テンプレートにATTACHMENTに対応した「MorpheusXSteelBlue」を使っています。
下記の部分がattachmentで検索してでてくる所なのですが{postrow.ATTACHMENTS}の部分を前後に変更しても
エラーがでるか、添付ファイルが表示されなくなります。
$postrow_count = ( isset($this->_tpldata['postrow.']) ) ? sizeof($this->_tpldata['postrow.']) : 0;
for ($postrow_i = 0; $postrow_i < $postrow_count; $postrow_i++)
{
$postrow_item = &$this->_tpldata['postrow.'][$postrow_i];
// set profile link and search button
if(!empty($postrow_item['PROFILE']) && strpos($postrow_item['POSTER_NAME'], '<') === false)
{
$postrow_item['SEARCH_IMG2'] = str_replace('%s', htmlspecialchars($postrow_item['POSTER_NAME']), $postrow_item['SEARCH_IMG']);
if($this->vars['TPL_CFG_TOPICVIEW'] !== 'hide')
{
$search = array($lang['Read_profile'], '<a ');
$replace = array($postrow_item['POSTER_NAME'], '<a class="name" ');
$postrow_item['POSTER_NAME'] = str_replace($search, $replace, $postrow_item['PROFILE']);
}
}
// check for new post
$new_post = strpos($postrow_item['MINI_POST_IMG'], '_new') > 0 ? true : false;
$postrow_item['TPL_HDR1'] = $new_post ? $this->vars['TPL_HDR1_NEW'] : $this->vars['TPL_HDR1_POST'];
$postrow_item['TPL_HDR2'] = $new_post ? $this->vars['TPL_HDR2_NEW'] : $this->vars['TPL_HDR2'];
$postrow_item['TPL_FTR'] = $new_post ? $this->vars['TPL_FTR_NEW'] : $this->vars['TPL_FTR'];
// set backgrounds
$num = ($postrow_i % 2) + 1;
$postrow_item['TPL_CLASS_POST'] = 'post' . $num;
$postrow_item['TPL_CLASS_PROFILE'] = 'post-left' . $num;
ob_start();
?>{postrow.ATTACHMENTS}<?php
$postrow_item['ATTACHMENTS'] = ob_get_contents();
ob_end_clean();
}
?>
|
どこを、修正すればいいのでしょうか?
よろしければ、教えていただけないでしょうか。
よろしくお願いします。