那爱 发表于 2022-1-25 20:11:24

discuz3.x 菜单栏积分由下拉改为横排的方法

discuz3.x 菜单栏积分由下拉改为横排的方法
\template\default\common\header_userstatus.htm
查找
<p>
<!--{hook/global_usernav_extra3}-->
<a href="home.php?mod=spacecp&ac=credit&showcredit=1" id="extcreditmenu"{if !$_G} class="showmenu"{/if}>{lang credits}: $_G</a>
<span class="pipe">|</span><a href="home.php?mod=spacecp&ac=usergroup" id="g_upmine" class="showmenu">{lang usergroup}: $_G<!--{if $_G['freeze']}--><span class="xi1">({lang freeze})</span><!--{/if}--></a>替换为:
<p>
      <!--{eval $upgradecredit = $_G['uid'] && $_G['group']['grouptype'] == 'member' && $_G['group']['groupcreditslower'] != 999999999 ? $_G['group']['groupcreditslower'] - $_G['member']['credits'] : false;}-->
      {lang credits}: <a href="home.php?mod=spacecp&ac=credit">$_G</a><!--{loop $_G['setting']['extcredits'] $extcreditid $extcredit}--><!--{if empty($extcredit['hiddeninheader'])}--> , {$extcredit}$extcredit: <a href="home.php?mod=spacecp&ac=credit" id="hcredit_$extcreditid"><!--{echo getuserprofile('extcredits'.$extcreditid);}--></a> {$extcredit}<!--{/if}--><!--{/loop}--> , {lang usergroup}: <a href="home.php?mod=spacecp&ac=usergroup"{if $upgradecredit !== 'false'} id="g_upmine" class="xi2"{/if}>$_G</a>
   </p>

Chinese.Doll 发表于 2022-1-26 13:49:35

不错,又占了一个沙发!

一生挚爱 发表于 2022-12-8 17:40:09

看帖看完了至少要顶一下,还可以加入到淘帖哦!
页: [1]
查看完整版本: discuz3.x 菜单栏积分由下拉改为横排的方法