去评论
dz插件网

如何在帖子页调用用户组和拓展用户组名称 New

哥斯拉
2024/03/14 19:24:32
我想在discuz3.5 这个版本的帖子内容页(viewthread),会员个人信息显示区域显示【会员积分】【会员用户组】【会员扩展用户组】这三样,
目前添加了$post['extcredits1'] ,能够调用到会员积分, 【会员用户组】和【会员扩展用户组】不知道如何写调用代码,麻烦指教下,谢谢


  1. <div class="display pi<!--{if $post['first']}--> pione<!--{/if}-->" href="#replybtn_$post['pid']">                         <ul class="authi">               <div class="avatar"><img src="<!--{if !$post['authorid'] || $post['anonymous']}--><!--{avatar(0, 'small', true)}--><!--{else}--><!--{avatar($post['authorid'], 'small', true)}--><!--{/if}-->" /></div>                                 <li class="mtit">                                         <span class="y">                                                 总收入:<h>$post['extcredits1']</h><i>|</i>等级:<t>{$_G['group']['grouptitle']} / {$_G['group']['extgroupids']}</t>                                         </span>                                         <span class="z">                                         <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->                                                 <a href="home.php?mod=space&uid=$post['authorid']">$post['author']</a>                                         <!--{else}-->                                                 <!--{if !$post['authorid']}-->                                                 <a href="javascript:;">{lang guest} <em>$post['useip']{if $post['port']}:$post['port']{/if}</em></a>                                                 <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->                                                 <!--{if $_G['forum']['ismoderator']}--><a href="home.php?mod=space&uid=$post['authorid']">{$_G['setting']['anonymoustext']}</a><!--{else}-->{$_G['setting']['anonymoustext']}<!--{/if}-->                                                 <!--{else}-->                                                 $post['author'] <em>{lang member_deleted}</em>                                                 <!--{/if}-->                                         <!--{/if}-->                                         </span>                                 </li>

我知道答案 回答被采纳将会获得1 贡献 已有0人回答