discuz! 调用楼主所在会员组名代码

调用会员组代码$post[authortitle],默认只在viewthread_node.htm中生效,单独使用在viewthread_node.htm中调用的是最后回帖作者所在用户组名。
如要在viewthread.htm中调用楼主所在用户组,需要写成

<!--{loop $postlist $post}-->
<!--{if $post['first']}-->
$post[authortitle]
<!--{/if}-->
<!--{/loop}-->

调用楼主头像:
<!–{avatar($_G[forum_thread][authorid],small)}–>
复制代码
调用楼主主题数:
<!–{eval $louzhuid = $_G[forum_thread][authorid]; $zhutishu = DB::result(DB::query("SELECT threads FROM ".DB::table('common_member_count')." WHERE uid = '$louzhuid'"));}–>$zhutishu
复制代码
调用楼主积分:
<!–{eval $louzhuid = $_G[forum_thread][authorid]; $jifenshu = DB::result(DB::query("SELECT credits FROM ".DB::table('common_member')." WHERE uid = '$louzhuid'"));}–>$jifenshu

五月源码网 discuz教程 discuz! 调用楼主所在会员组名代码 https://www.u532.com/1313.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务