Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] X2.5 个人信息美化---------------个人用户组头衔调用。

[复制链接]
爱缘社区 发表于 2012-7-20 14:05:09 | 显示全部楼层 |阅读模式


我想在UID之 金币以内 调用用户组头衔  该怎么写代码。


下面是此美化的全部代码。


我应该怎么添加代码,才能把用户组头衔调用在个人信息里面。求指教。


<style type="text/css">
#vwuser{ width:181px; height:auto;}
#vwuser h3#groupida{ width:181px; height:37px; line-height:37px; text-align:center; background:url(./static/image/common/user_topicoa.jpg) no-repeat}
#vwuser h3#groupidb{ width:181px; height:37px; line-height:37px; text-align:center; background:url(./static/image/common/user_topicob.jpg) no-repeat}
#vwuser h3#groupidc{ width:181px; height:37px; line-height:37px; text-align:center; background:url(./static/image/common/user_topico.jpg) no-repeat}
#vwuser h3#groupidd{ width:181px; height:37px; line-height:37px; text-align:center; background:url(./static/image/common/user_topicoc.jpg) no-repeat}
#vwuser h3 a{ color:#fff}

#vwuser h4{ display:block; width:136px; height:26px; margin:3px auto 0;}
#vwuser h6{ width:181px; height:26px; line-height:28px; text-align:center; background:url(./static/image/common/user_toolx.jpg) no-repeat}
#vwuser h6 a{ font-weight:400}
#vwuser h5{ width:181px; height:32px;}
#vwuser h7{ width:181px; height:32px;}
#vwuser ul{ width:181px; height:auto;}
#vwuserBg{ width:181px; height:auto; padding-top:9px; background:#fff url(./static/image/common/userBgx.jpg) repeat-x bottom}
#touxiang{ text-align:center; width:136px; height:135px; margin:0 auto;  background:url(./static/image/common/user_Tbg.jpg) no-repeat; }
#touxiang img{ width:120px; height:120px; margin:0 auto; padding-top:7px;}
#neitb{ width:295px; height:70px; margin-top:3px; overflow:hidden; }
#neitb ul li nrz{ float:left; height:35px; width:295px; text-align:center;}
#xinxi{ width:181px; height:200px; margin-top:3px; overflow:hidden; background:url(./static/image/common/xinxiBg.jpg) no-repeat 9px 0px}
#xinxi ul li{ width:181px; float:left; height:32px; line-height:32px; overflow:hidden; clear:both}
#xinxi ul li strong{ width:40px; height:32px; padding-left:50px; text-align:left; float:left}
#xinxi ul li span{ float:left; height:32px; width:80px; text-align:center;}
#xinxi ul li rz{ padding:8px 5px 0px 0px;float:left; height:32px; width:80px; text-align:center;}
#xinxi ul li rz1{ float:left; height:32px; width:180px; text-align:center;}
#qiandaox{width:181px; height:auto; text-align:center}
ul#xunzhang{ padding:10px;}
#jingyan{width:136px; height:16px; background: url(./static/image/common/snbg.gif) no-repeat; margin:5px auto 0; overflow:hidden}
#jingyan ul{ padding:2px 2px 2px 22px; }
.ie6 #jingyan ul{ padding:1px 2px 2px 22px; }
</style>
  $post[newpostanchor] $post[lastpostanchor]
  <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
        
        
        <div class="p_pop blk bui" id="userinfo$post[pid]" style="display: none; {if $_G['setting']['authoronleft']}margin-top: 37px;{/if}">
    <div class="m z">
     <div id="userinfo$post[pid]_ma"></div>
     <!--{hook/viewthread_profileside $postcount}-->
    </div>
    <div class="i y">
     <div>
      <strong><a href="home.php?mod=space&uid=$post[authorid]" target="_blank" class="xi2">$post[author]</a></strong>
                        
                     
                        
      <!--{if $_G['setting']['vtonlinestatus'] && $post['authorid']}-->
       <!--{if ($_G['setting']['vtonlinestatus'] == 2 && $_G[forum_onlineauthors][$post[authorid]]) || ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP - $post['lastactivity'] <= 10800) && !$post['authorinvisible'])}-->
        <em><img src="./static/image/common/ol.gif" title="{lang online}"></em>
       <!--{else}-->
        <em><img src="./static/image/common/nol.gif" title="{lang offline}"></em>
       <!--{/if}-->
      <!--{/if}-->
     </div>
     <dl class="cl">{$post[custominfo][menu]}</dl>
     <div class="imicn">
      <!--{if $post['qq'] && !$post['privacy']['profile']['qq']}--><a href="&Site=$_G[]http://wpa.qq.com/msgrd?V=1&Uin=$post[qq]&Site=$_G['setting']['bbname']&Menu=yes" target="_blank" title="QQ"><img src="./static/image/common/qq.gif" alt="QQ" /></a><!--{/if}-->
      <!--{if $post['icq'] && !$post['privacy']['profile']['icq']}--><a href="http://wwp.icq.com/scripts/search.dll?to=$post[icq]" target="_blank" title="ICQ"><img src="./static/image/common/icq.gif" alt="ICQ" /></a><!--{/if}-->
      <!--{if $post['yahoo'] && !$post['privacy']['profile']['yahoo']}--><a href="&.src=pg]http://edit.yahoo.com/config/send_webmesg?.target=$post[yahoo]&.src=pg" target="_blank" title="Yahoo"><img src="./static/image/common/yahoo.gif" alt="Yahoo!"  /></a><!--{/if}-->
      <!--{if $post['taobao'] && !$post['privacy']['profile']['taobao']}--><a href="javascript:;" title="{lang taobao}"><img src="./static/image/common/taobao.gif" alt="{lang taobao}" /></a><!--{/if}-->
      <!--{if $post['site'] && !$post['privacy']['profile']['site']}--><a href="$post[site]" target="_blank" title="{lang member_homepage}"><img src="./static/image/common/forumlink.gif" alt="{lang member_homepage}" /></a><!--{/if}-->
      <a href="home.php?mod=space&uid=$post[authorid]&do=profile" target="_blank" title="{lang member_viewpro}"><img src="./static/image/common/userinfo.gif" alt="{lang member_viewpro}" /></a>
          <div id="neitb">
                  <ul>
             <li><nrz><strong>认证:</strong> $authorverifys</nrz></li>
                  </ul>
          </div>
      <!--{hook/viewthread_imicons $postcount}-->
      <!--{if $_G['setting']['magicstatus']}-->
       <!--{if !empty($_G['setting']['magics']['showip'])}-->
        <a href="home.php?mod=magic&mid=showip&idtype=user&id={echo rawurlencode($post[author])}" id="a_showip_li_{$post[pid]}" class="xi2"><img src="{STATICURL}/image/magic/showip.small.gif" alt="" /> $_G['setting']['magics']['showip']</a>
       <!--{/if}-->
       <!--{if !empty($_G['setting']['magics']['checkonline']) && $post['authorid'] != $_G['uid']}-->
        <a href="home.php?mod=magic&mid=checkonline&idtype=user&id={echo rawurlencode($post[author])}" id="a_repent_$post[pid]" class="xi2"><img src="{STATICURL}/image/magic/checkonline.small.gif" alt="" /> $_G['setting']['magics']['checkonline']</a>
       <!--{/if}-->
       <!--{hook/viewthread_magic_user $postcount}-->
      <!--{/if}-->
     </div>
     <div id="avatarfeed"><span id="threadsortswait"></span></div>
    </div>
   </div>
            
     <!--{/if}-->      
<div id="vwuser">
    <h3 id="<!--{if $post['groupid'] == 1}-->groupida<!--{elseif $post['groupid']>=1 && $post['groupid']<=30 }-->groupidb<!--{/if}-->">
   
   

      <!--{if $_G['setting']['authoronleft']}-->
   
     <a href="home.php?mod=space&uid=$post['authorid']" target="_blank">$post[author]</a>
   <!--{/if}-->
    </h3>
   
    <div id="vwuserBg">
    <div class="tns xg2">
<table cellspacing="0" cellpadding="0">
<th><p><a href="home.php?mod=space&uid=$post[authorid]&do=thread&view=me&from=space" class="xi2"><!--{echo dnumber($post[threads])}--></a></p>{lang threads}</th>
<th>
<!--{if helper_access::check_module('follow')}-->
<p><a href="home.php?mod=follow&do=follower&uid=$post[authorid]" class="xi2"><!--{echo dnumber($post[follower])}--></a></p>{lang follower}
<!--{else}-->
<p><a href="home.php?mod=space&uid=$post[authorid]&do=friend&view=me" class="xi2"><!--{echo dnumber($post[friends])}--></a></p>{lang friends}
<!--{/if}-->
</th>
<td><p><a href="home.php?mod=space&uid=$post[authorid]&do=profile" class="xi2"><!--{echo dnumber($post[credits])}--></a></p>{lang credits}</td>
</table>
</div>
    <div id="touxiang">
        <!--{if $_G['setting']['bannedmessages'] & 2 && ($post['memberstatus'] == '-1' || ($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1))}-->
    <div class="touxiangPc">{lang member_avatar_banned}</div>
   <!--{elseif $post['avatar'] && $showavatars}-->
    <div class="touxiangPc"><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">$post[avatar]</a></div>
   <!--{/if}-->
    </div>
   
   
    <h4 {if $post['upgradecredit'] !== false} id="g_up$post[pid]"{/if}>
    <!--{if $post[groupicon]}-->$post[groupicon]<!--{/if}-->
    </h4>
    <!--{if $post['upgradecredit'] !== false}-->
    <div id="g_up$post[pid]_menu" class="tip tip_4" style="display: none;">
     <div class="tip_horn"></div>
     <div class="tip_c">$post['authortitle'], {lang credits} $post['credits'], {lang thread_groupupgrade} $post['upgradecredit'] {lang credits}</div>
    </div>
   <!--{/if}-->
   
   
<div id="jingyan">
<ul>
<!--{if $post[posts]<2}-->
<img width="1" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯加油加油" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<4}-->
<img width="5" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区二冠等级咯"><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<8}-->
<img width="10" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章快到社区二冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<12}-->
<img width="20" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区二冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<18}-->
<img width="30" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区二冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<24}-->
<img width="35" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区二冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<30}-->
<img width="40" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章快到社区二冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<40}-->
<img width="50" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区二冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<50}-->
<img width="55" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区二冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<50}-->
<img width="60" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区二冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<55}-->
<img width="65" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区三冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<70}-->
<img width="70" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区三冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<80}-->
<img width="72" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区三冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<100}-->
<img width="75" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区三冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<150}-->
<img width="78" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区三冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<200}-->
<img width="80" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区三冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<300}-->
<img width="82" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区四冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<400}-->
<img width="85 height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区四冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<500}-->
<img width="88" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区四冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<700}-->
<img width="90" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区五冠等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<900}-->
<img width="92" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区五冠等级咯 ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<1000}-->
<img width="95" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区五冠等级咯!" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<1100}-->
<img width="98" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区元老等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<1200}-->
<img width="100" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区元老等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<1500}-->
<img width="101" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区元老等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<2000}-->
<img width="102" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区元老等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<2500}-->
<img width="103" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区元老等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<3000}-->
<img width="103" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章咯快到社区元老等级咯" ><img width="6" src="./static/image/common/hp.gif" height="12">
<!--{elseif $post[posts]<99999}-->
<img width="104" height="12" src="./static/image/common/orange.gif" title="已经发了$post[posts]篇文章谢谢您多年来为网缘做贡献!"><img width="6" src="./static/image/common/hp.gif" height="12">
      <!--{/if}-->
      </ul>
            </div>
    <div id="xinxi">
        <ul>
         <li><strong>UID:</strong><span><font face="georgia" size="4" color="red" title="UIDpost[uid] 号码等级:$post[extcredits8]">$post[uid] <img src="./static/image/common/lh$post[extcredits8].gif" ></font></span></li>
          <li><strong>资历:</strong><span><font face="georgia" size="3" color="Green" title="资历数:$post[extcredits1] 点"> $post[extcredits1] </font></span></li>
            <li><strong>好评:</strong><span> <font face="georgia" size="3" color="Magenta" title="好评值:$post[extcredits2] 分">$post[extcredits2]</font> </span></li>
          <li><strong>元宝:</strong><span><font face="georgia" size="3" color="urple" title="元宝数:$post[extcredits3] 个"> $post[extcredits3] </font></span></li>
            <li><strong>签到:</strong><span> <font face="georgia" size="3" color="DarkOrange" title="签到数:$post[extcredits4] 次">$post[extcredits4]</font> </span></li>
            <li><strong>金币:</strong><span> <font face="georgia" size="3" color="Blue" title="金币数:$post[extcredits5] 枚">$post[extcredits5]</font> </span></li>
        </ul>
    <!--{hook/viewthread_sidetop $postcount}-->
    </div>
<!--{if $post[authorid] != $_G[uid]}-->
<h5><img src="./static/image/common/user_tools.jpg" /></h5>
    <ul class="xl xl2 o cl">
     <li class="callon"><a href="home.php?mod=space&uid=$post[authorid]" target="_blank" title="{lang viewthread_left_tospace}" class="xi2">{lang viewthread_left_tospace}</a></li>
     <li class="buddy"><a href="home.php?mod=spacecp&ac=friend&op=add&uid=$post[authorid]&handlekey=addfriendhk_{$post[authorid]}" id="a_friend_li_{$post[pid]}" title="{lang viewthread_left_addfriend}" class="xi2">{lang viewthread_left_addfriend}</a></li>
     <li class="poke2"><a href="home.php?mod=spacecp&ac=poke&op=send&uid=$post[authorid]" id="a_poke_li_{$post[pid]}" title="{lang viewthread_left_poke}" class="xi2">{lang viewthread_left_poke}</a></li>
     <li class="pm2"><a href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$post[authorid]&touid=$post[authorid]&pmid=0&daterange=2&pid=$post[pid]&tid=$post[tid]" title="{lang viewthread_left_sendpm}" class="xi2">{lang viewthread_left_sendpm}</a></li>
     <!--{if helper_access::check_module('follow')}-->
                    <li class="addflw">
                    <a href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$post[authorid]" id="followmod_$post[authorid]" title="{lang follow}" class="xi2">{lang follow}</a>
                    </li>
                    <!--{/if}-->
    </ul>
<!--{/if}-->
<!--{if $post['medals']}-->
<h5><img src="./static/image/common/user_rongyu.jpg" /></h5>
    <ul id="xunzhang">
        <!--{loop $post['medals'] $medal}-->
        <img src="{STATICURL}image/common/$medal[image]" alt="$medal[name]" title="$medal[name]" />
        <!--{/loop}-->
    </ul>
<!--{else}-->
<!--{/if}-->

   
    <!--{if $_G['group']['allowedituser'] || $_G['group']['allowbanuser'] || ($_G['forum']['ismoderator'] && $_G['group']['allowviewip'])}-->
<h6>
    <!--{if $_G['forum']['ismoderator'] && $_G['group']['allowviewip']}-->
     <a href="forum.php?mod=topicadmin&action=getip&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]{if $_G['forum_auditstatuson']}&modthreadkey=$_GET[modthreadkey]{/if}">IP</a>
    <!--{/if}-->
    <!--{if $_G['group']['allowedituser']}-->
     <a href="{if $_G['adminid'] == 1}admin.php?frames=yes&action=members&operation=search&uid=$post[authorid]&submit=yes{else}forum.php?mod=modcp&action=member&op=edit&uid=$post[authorid]{/if}" target="_blank">{lang edit}</a>
    <!--{/if}-->
    <!--{if $_G['group']['allowbanuser']}-->
     <!--{if $_G['adminid'] == 1}-->
      <a href="admin.php?action=members&operation=ban&username=$post[usernameenc]&frames=yes" target="_blank">{lang ban_member}</a>
     <!--{else}-->
      <a href="forum.php?mod=modcp&action=member&op=ban&uid=$post[authorid]" target="_blank">{lang ban_member}</a>
     <!--{/if}-->
    <!--{/if}-->
    <a href="forum.php?mod=modcp&action=thread&op=post&do=search&searchsubmit=1&users=$post[usernameenc]" target="_blank">{lang posts}</a>
    <!--{if $_G['adminid'] == 1}-->
     <a href="forum.php?mod=ajax&action=quickclear&uid=$post[authorid]">{lang clear}</a>
    <!--{/if}-->
  </h6>
  <!--{/if}-->
   
  

</div>


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
duduopen 发表于 2012-7-20 15:10:20 | 显示全部楼层
不错哈!多谢
百家乐 http://www.zxhot.net
回复

使用道具 举报

ωǒ鈊本⑧坏 发表于 2012-10-31 16:59:03 | 显示全部楼层
占位,看下....
回复

使用道具 举报

hotzs.com 发表于 2012-11-4 22:17:48 | 显示全部楼层
楼主的问题,解决了吗?

另外,你这美化代码,要修改对应的哪个文件?
回复

使用道具 举报

九格格 发表于 2012-11-22 22:01:56 | 显示全部楼层
没看懂
回复

使用道具 举报

黑夜情人 发表于 2013-5-29 21:53:48 | 显示全部楼层
楼主能把这个美化方法告诉我嘛?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-22 19:27 , Processed in 0.135052 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表