版塊:
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]" title="$_G['forum'][name]">{$_G['forum'][name]}</a>
復(fù)制代碼
主題分類
<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=typeid&typeid=$_G[forum_thread][typeid]">{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}</a>
復(fù)制代碼
——
對帖子來說,版塊是一定存在的,但主題分類涉及是否開啟和帖子是否選擇了分類,所以調(diào)用主題分類鏈接和名稱時最好加上判斷
<!--{if $_G['forum_thread']['typeid'] && $_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}-->
<a
href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=typeid&typeid=$_G[forum_thread][typeid]">{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}</a>
<!--{/if}-->