第二行直到第十三行
该段代码所调用的就是版主或以上用戶组(不包自定義用戶及普通用戶等)
在进行对帖子屏蔽﹑禁止用戶﹑禁止发言﹑禁止访问﹑hide代码中的提示以及內容显示
<!--{if !$_G[‘forum‘][‘ismoderator‘] && $_G[‘setting‘][‘bannedmessages‘] & 1 && (($post[‘authorid‘] && !$post[‘username‘]) || ($_G[‘thread‘][‘digest‘] == 0 && ($post[‘groupid‘] == 4 || $post[‘groupid‘] == 5 || $post[‘memberstatus‘] == ‘-1‘)))}-->
此段是判斷于用戶组的显示信息(只限于版主或以上用戶组)
{lang message_banned}
调用语言包"source\language\forum\lang_template.php"(1176,4):‘message_banned‘ => ‘提示: <em>作者被禁止或删除 内容自动屏蔽</em>‘,"
<!--{elseif !$_G[‘forum‘][‘ismoderator‘] && $post[‘status‘] & 1}
"如果用戶给屏蔽后提示下列信息"
{lang message_single_banned}
调用语言包"source\language\forum\lang_template.php"(1178,4):‘message_single_banned‘ => ‘提示: <em>该帖被管理员或版主屏蔽</em>‘,"
<!--{elseif $needhiddenreply}-->
<div >{lang message_ishidden_hiddenreplies}</div>
如果楼主设置了帖子只有作者可见所显示的信息,{lang message_ishidden_hiddenreplies}调用语言包"source\language\forum\lang_misc.php"(30,3): ‘message_ishidden_hiddenreplies‘ => ‘此帖仅作者可见‘,"
<!--{elseif $post[‘first‘] && $_G[‘forum_threadpay‘]}-->
<!--{template forum/viewthread_pay}-->
如果"<!--{elseif $post[‘first‘] && $_G[‘forum_threadpay‘]}-->"是出售主题那么就"<!--{template forum/viewthread_pay}-->"调用模版文件夾下的出售主题信息模版
<!--{if !$post[‘first‘] && !empty($post[subject])}-->
<h2>$post[subject]</h2>
<!--{/if}-->
调用帖子內容(內容不多说)
<!--{if $_G[‘setting‘][‘bannedmessages‘] & 1 && (($post[‘authorid‘] && !$post[‘username‘]) || ($_G[‘thread‘][‘digest‘] == 0 && ($post[‘groupid‘] == 4 || $post[‘groupid‘] == 5 || $post[‘memberstatus‘] == ‘-1‘)))}-->
<div >{lang admin_message_banned}</div>
IF判斷如果用戶组不是版主或以上用戶组所显示出的提示
{lang admin_message_banned}调用于语言包
"source\language\forum\lang_template.php"(1166,10):‘admin_message_banned‘ => ‘提示: <em>作者被禁止或删除 内容自动屏蔽,只有管理员或有管理权限的成员可见</em>‘,"
<!--{elseif $post[‘status‘] & 1}-->
<div >{lang admin_message_single_banned}</div>
<!--{/if}-->
IF句判斷是禁止用戶的句子
{lang admin_message_single_banned} 调用于语言包(不多说先行搜索呗)
<!--{if !$post[‘first‘] && $hiddenreplies && $_G[‘forum‘][‘ismoderator‘]}-->
<div >{lang message_ishidden_hiddenreplies}</div>
<!--{/if}-->
IF句判斷楼主是否设置了回帖只有作者可见的功能
{lang message_ishidden_hiddenreplies}调用于语言包 不多说 自行搜索
<!--{if $_G[‘forum_thread‘][‘price‘] > 0 && $_G[‘forum_thread‘][‘special‘] == 0}-->
<div ><em ><a href="forum.php?mod=misc&action=viewpayments&tid=$_G[tid]">{lang pay_view}</a></em>{lang pay_threads}: <strong>$_G[forum_thread][price] {$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][unit]}{$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][title]} </strong></div>
<!--{/if}-->
IF判斷该帖是否以出售主题的形式发布
如是即显示下列內容
{lang pay_view} =>查看
{lang pay_threads} =>付费主题,出价
$_G[forum_thread][price] {$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][unit]}{$_G[‘setting‘][‘extcredits‘][$_G[‘setting‘][‘creditstransextra‘][1]][title]} => 调用出出售帖子的价格以及积分名
<!--{if $threadsort && $threadsortshow}-->
<!--{if $threadsortshow[‘typetemplate‘]}-->
$threadsortshow[typetemplate]
<!--{elseif $threadsortshow[‘optionlist‘]}-->
<div >
<!--{if $threadsortshow[‘optionlist‘] == ‘expire‘}-->
{lang has_expired}
<!--{else}-->
<table summary="{lang threadtype_option}" cellpadding="0" cellspacing="0" >
<caption>$_G[forum][threadsorts][types][$_G[forum_thread][sortid]]</caption>
<tbody>
<!--{loop $threadsortshow[‘optionlist‘] $option}-->
<!--{if $option[‘type‘] != ‘info‘}-->
<tr>
<th>$option[title]:</th>
<td><!--{if $option[‘value‘]}-->$option[value] $option[unit]<!--{else}-->-<!--{/if}--></td>
</tr>
<!--{/if}-->
<!--{/loop}-->
</tbody>
</table>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
调用主题分类信息帖子內容页模版信息(后台所设置的信息)
<!--{if $post[‘first‘]}-->
<!--{if !$_G[forum_thread][special]}-->
<table cellspacing="0" cellpadding="0"><tr><td >
<!--{if !$_G[‘inajax‘]}-->
<!--{if $ad_a_pr}-->
$ad_a_pr
<!--{/if}-->
<!--{/if}-->
$post[message]</td></tr></table>
<!--{elseif $_G[forum_thread][special] == 1}-->
<!--{template forum/viewthread_poll}-->
<!--{elseif $_G[forum_thread][special] == 2}-->
<!--{template forum/viewthread_trade}-->
<!--{elseif $_G[forum_thread][special] == 3}-->
<!--{template forum/viewthread_reward}-->
<!--{elseif $_G[forum_thread][special] == 4}-->
<!--{template forum/viewthread_activity}-->
<!--{elseif $_G[forum_thread][special] == 5}-->
<!--{template forum/viewthread_debate}-->
<!--{elseif $_G[forum_thread][special] == 127}-->
$threadplughtml
<table cellspacing="0" cellpadding="0"><tr><td >$post[message]</td></tr></table>
<!--{/if}-->
<!--{else}-->
<table cellspacing="0" cellpadding="0"><tr><td >
<!--{if !$_G[‘inajax‘]}-->
<!--{if $ad_a_pr}-->
$ad_a_pr
<!--{/if}-->
<!--{/if}-->
<!--{if $post[‘invisible‘] != ‘-2‘ || $_G[‘forum‘][‘ismoderator‘]}-->$post[message]<!--{else}--><span >{lang moderate_need}</span><!--{/if}--></td></tr></table>
<!--{/if}-->
此段调用于如果是特殊主题所显示的方式
<!--{elseif $_G[forum_thread][special] == 1}-->
<!--{template forum/viewthread_poll}-->
<!--{elseif $_G[forum_thread][special] == 2}-->
<!--{template forum/viewthread_trade}-->
<!--{elseif $_G[forum_thread][special] == 3}-->
<!--{template forum/viewthread_reward}-->
<!--{elseif $_G[forum_thread][special] == 4}-->
<!--{template forum/viewthread_activity}-->
<!--{elseif $_G[forum_thread][special] == 5}-->
<!--{template forum/viewthread_debate}-->
1调用投票模版
2调用商品模版
3调用悬赏模版
4调用活动模版
5调用辩论模版
<!--{if $ad_a_pr}-->
$ad_a_pr
<!--{/if}-->
调用于后台设置的廣告帖子內容页头部位置
<!--{if $post[‘invisible‘] != ‘-2‘ || $_G[‘forum‘][‘ismoderator‘]}-->$post[message]<!--{else}--><span >{lang moderate_need}</span><!--{/if}--></td></tr></table>
<!--{/if}-->
如果帖子需要審核版主便显示此信息 待審核
<div >
<div>
<h3>{lang attach_nopermission_notice}</h3>
<p><!--{if $_G[‘uid‘]}-->{lang attach_nopermission}<!--{elseif $_G[‘connectguest‘]}-->{lang attach_nopermission_connect_fill_profile}<!--{else}-->{lang attach_nopermission_login} <!--{hook/global_login_text}--><!--{/if}--></p>
</div>
</div>
调用如果用戶不能查看图片等 显示需要登入的信息
<!--{elseif $post[‘imagelist‘] || $post[‘attachlist‘]}-->
<div >
<!--{if $post[‘imagelist‘] && $_G[‘setting‘][‘imagelistthumb‘] && $post[‘imagelistcount‘] >= $_G[‘setting‘][‘imagelistthumb‘]}-->
<!--{if !isset($imagelistkey)}-->
<!--{eval $imagelistkey = rawurlencode(md5($_G[tid].‘|100|100‘))}-->
<script type="text/javascript" reload="1">var imagelistkey = ‘$imagelistkey‘;</script>
<!--{/if}-->
<!--{eval $post[‘imagelistthumb‘] = true;}-->
<div >
<strong>{lang more_images}</strong>
<a href="javascript:;" >{lang image_small}</a>
<a href="javascript:;" >{lang image_big}</a>
</div>
<div style="display:none"><!--{echo showattach($post, 1)}--></div>
<div ><img src="{IMGDIR}/loading.gif" width="16" height="16" /> {lang image_list_openning}</div>
<!--{else}-->
<!--{echo showattach($post, 1)}-->
<!--{/if}-->
<!--{if $post[‘attachlist‘]}-->
<!--{echo showattach($post)}-->
<!--{/if}-->
调用于帖子內容页多图片橫排显示的显示方式
<!--{if $post[‘first‘] && $sticklist}-->
<div>
<h3 >{lang replies_recommended}</h3>
<!--{loop $sticklist $rpost}-->
<div >
<div ><a href="home.php?mod=space&uid=$rpost[authorid]" c="1">$rpost[avatar]</a></div>
<div >
<p>
<a href="home.php?mod=space&uid=$rpost[authorid]" >$rpost[author]</a> <a href="javascript:;" >{lang published_in_floor}</a>
<!--{if $_G[‘group‘][‘allowstickreply‘] || $_G[‘forum_thread‘][‘authorid‘] == $_G[‘uid‘]}--> <a href="javascript:;" >{lang admin_unstickreply}</a><!--{/if}-->
</p>
<div >$rpost[message]</div>
</div>
</div>
<!--{/loop}-->
</div>
<!--{/if}-->
调用于 作者 管理回帖者 置顶回帖的內容 所显示的 回帖推薦
<div >
<!--{if $_G[‘setting‘][‘commentnumber‘] && !empty($comments[$post[pid]])}-->
<h3 >{lang comments}</h3>
<!--{if $totalcomment[$post[pid]]}--><div >$totalcomment[$post[pid]]</div><!--{/if}-->
<!--{loop $comments[$post[pid]] $comment}-->
<div >
<div ><a href="home.php?mod=space&uid=$comment[authorid]" c="1">$comment[avatar]</a></div>
<div >
<!--{if $comment[‘authorid‘]}-->
<a href="home.php?mod=space&uid=$comment[authorid]" >$comment[author]</a>
<!--{else}-->
{lang guest}
<!--{/if}-->
$comment[comment]
<!--{if $comment[rpid]}-->
<a href="forum.php?mod=redirect&goto=findpost&pid=$comment[rpid]&ptid=$_G[tid]" >{lang detail}</a>
<a href="forum.php?mod=post&action=reply&fid=$_G[fid]&tid=$_G[tid]&repquote=$comment[rpid]&extra=$_GET[extra]&page=$page{if $_GET[from]}&from=$_GET[from]{/if}" >{lang reply}</a>
<!--{/if}-->
<span >