discuz

推荐列表 站点导航

当前位置:首页 > 建站教程 > discuz >

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

来源:网络整理  作者:网络  发布时间:2020-12-10 12:10
调用会员组代码$post[authortitle],默认只在viewthread_node.htm中生效,单独使用在viewthread_node.htm中调用的是最后回帖作者所...

调用会员组代码$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

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/jz/discuz/2166.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

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

2020-12-10 编辑:网络

调用会员组代码$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

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/jz/discuz/2166.shtml

相关文章

风云图片

推荐阅读

返回discuz频道首页