Greetings,
In 'viewtopic_body.tpl' you should have this after {POLL_DISPLAY}
- Code: Select all
<!-- BEGIN postrow -->
<?php
global $userdata, $board_config, $topic_id, $is_auth, $forum_topic_data, $lang, $phpEx;
if(!isset($can_reply))
{
$can_reply = $this->style_config['quick_reply'] && $userdata['session_logged_in'] ? true : false;
if($can_reply)
{
$is_auth_type = 'auth_reply';
if(!$is_auth[$is_auth_type])
{
$can_reply = false;
}
elseif ( ($forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED) && !$is_auth['auth_mod'] )
{
$can_reply = false;
}
}
if($can_reply)
{
$this->assign_block_vars('xs_quick_reply', array());
}
}
$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();
}
?>
<!-- END postrow -->
Also if your referring to a particular line of code then use [ code start="<line numer>" highlight="<line number>"] (note you can use "3-5" to highlight lines 3 to 5 or use "3,5,7" to highlight lines 3,5 and 7 or a single line numder to highlight just one line) that way your code would look like this;
[code start="140" highlight="143"]$s_auth_can .= ( ( $is_auth['auth_vote'] ) ? $lang['Rules_vote_can'] : $lang['Rules_vote_cannot'] ) . '<br />';
$s_auth_can .= ( $is_auth['auth_ban'] ) ? $lang['Rules_ban_can'] : $lang['Rules_ban_cannot'] . '<br />';
$s_auth_can .= ( $is_auth['auth_greencard'] ) ? $lang['Rules_greencard_can'] : $lang['Rules_greencard_cannot'] . '<br />';
$s_auth_can .= ( $is_auth['auth_bluecard'] ) ? $lang['Rules_bluecard_can'] : $lang['Rules_bluecard_cannot'] . '<br />' : '';[/code]