discuz分类调用方式

帖子查看页标题调用帖子分类和分类信息

    <!--{if $_G['forum_thread']['typeid'] && $_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}--> <!--{if !IS_ROBOT && ($_G['forum']['threadtypes']['listable'] || $_G['forum']['status'] == 3)}--> <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> <!--{else}--> [{$_G['forum']['threadtypes']['types'][$_G['forum_thread']['typeid']]}] <!--{/if}--> <!--{/if}-->

帖子列表页调用帖子分类和分类信息

    <!--{if $thread[typehtml]}--> <em><a href="forum.php?mod=forumdisplay&fid={$thread[fid]}&amp;filter=typeid&amp;typeid={$thread[typeid]}">[{$thread[typename]}]</a></em> <!--{/if}--> <!--{if $thread[sorthtml]}--> <em><a href="forum.php?mod=forumdisplay&fid={$thread[fid]}&filter=sortid&sortid={$thread['sortid']}">[{$_G['forum']['threadsorts']['types'][$thread['sortid']]}]</a></em> <!--{/if}-->
huan

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: