調(diào)用會(huì)員組代碼$post[authortitle],默認(rèn)只在viewthread_node.htm中生效,單獨(dú)使用在viewthread_node.htm中調(diào)用的是最后回帖作者所在用戶組名。
如要在viewthread.htm中調(diào)用樓主所在用戶組,需要寫成
<!--{loop $postlist $post}-->
<!--{if $post['first']}-->
$post[authortitle]
<!--{/if}-->
<!--{/loop}-->
|
調(diào)用樓主頭像:
<!--{avatar($_G[forum_thread][authorid],small)}-->
復(fù)制代碼
調(diào)用樓主主題數(shù):
<!--{eval $louzhuid = $_G[forum_thread][authorid]; $zhutishu = DB::result(DB::query("SELECT threads FROM ".DB::table('common_member_count')." WHERE uid = '$louzhuid'"));}-->$zhutishu
復(fù)制代碼
調(diào)用樓主積分:
<!--{eval $louzhuid = $_G[forum_thread][authorid]; $jifenshu = DB::result(DB::query("SELECT credits FROM ".DB::table('common_member')." WHERE uid = '$louzhuid'"));}-->$jifenshu