8.7个人信息栏美化【系统积分前加图标目前还没解决】

叫你调皮
133754叫你调皮初级会员
2014-02-19 12:24:38
133754 2014-02-19 12:24:38
叫你调皮于2014-03-04 23:13编辑了帖子
详情
温馨提示
1、为保证您的问题能够及时解决,若有任何疑问,请直接至 「有问必答」 版块提问,切勿在此帖回复提问。
2、如您发现有任何「插件/模版」的BUG,请直接至 「意见反馈」 版块发帖,切勿在此帖回复反馈。
3、安装「插件/模版」后,请务必按照使用说明进行启用及设置。
8.7个人信息栏美化

【系统积分前加图标目前还没解决,有木有高手抽个时间帮助看下哈】






在根目录下找到read.php
查找
  1. $read['groupid'] == '-1' ;; $read['groupid'] = $read['memberid'];
  2.                !array_key_exists($read['groupid'],(array)$lpic) ;; $read['groupid'] = 8;
  3.                $read['lpic'] = $lpic[$read['groupid']];

替换
  1. $read['groupid'] == -1 ? $read['lpic']=$lpic[$read['memberid']] : $read['lpic']=$lpic[$read['groupid']];
  2. $read['userlevel'] =$ltitle[$read['memberid']];

打开require/addfloor.php
查找
  1. $read['groupid'] == '-1' ;; $read['groupid'] = $read['memberid'];
  2.        !array_key_exists($read['groupid'],(array)$lpic) ;; $read['groupid'] = 8;
  3.        $read['lpic'] = $lpic[$read['groupid']];
  4.        $read['level'] = $ltitle[$read['groupid']];

替换
  1. $read['groupid'] == -1 ? $read['lpic']=$lpic[$read['memberid']] : $read['lpic']=$lpic[$read['groupid']];
  2.        $read['userlevel'] =$ltitle[$read['memberid']];

 
 
 
 
 
 在template\wind\read.htm里
查找
  1. <li><em>{$hits}</em>阅读</li>
  2.                                                        <li><em id="topicRepliesNum">{$replies}</em>回复</li>

 
替换
  1. <li><em>{$hits}</em><font color =#7030a0><strong>阅读</strong></font></li>
  2.                                                        <li><em id="topicRepliesNum">{$replies}</em><font color =#7030a0><strong>回复</strong></font></li>

查找
  1. EOT;
  2. }print<<<EOT
  3. -->
  4.                                                </a>
  5.                                                <div class="readLevel mb5"><a href="profile.php?action=permission&gid=$read[groupid]" rel="nofollow">{$read[level]}</a><img src="$imgpath/$stylepath/level/$read[lpic].gif" /></div>
  6. <!--

替换
  1. EOT;
  2. }print<<<EOT
  3. -->
  4. <!--
  5. EOT;
  6. $selluid = $db->get_one("SELECT * FROM pw_selluid WHERE uid='$read[authorid]' AND uclass='3'");
  7. if ($selluid['uid']) {print<<<EOT
  8. -->
  9.                         <p><span class="STYLE1"><span class="view_fieldsetmedals"><b><font color="#00baff">UID.</font></b><a href="hack.php?H_name=selluid"> <strong>
  10.                                                        <font face="Georgia" color="#FF0000" size=5 title="尊贵靓号标识,已绑定靓号,不回收">$read[authorid]</font><font face="georgia" color="gold" size=6 title="尊贵靓号标识,已绑定靓号,不回收"></size></font></strong> <img src="images/liang.gif" alt="尊贵靓号标识,永久绑定"> </a>
  11. <!--
  12. EOT;
  13. }else{print<<<EOT
  14. -->
  15.                        
    <span>Uid: <a href="hack.php?H_name=selluid&action=activation" title="您的UID $read[authorid] 不是靓号,点击购买靓号">$read[authorid] <img src="images/black.gif" alt="尚未绑定靓号,此帐号可能会被系统回收"></a>
  16. <!--
  17. EOT;
  18. }print<<<EOT
  19. -->
  20.                                                <div class="readUser_info cc mb10">
  21. <div class="one" id="basic_{$topPostId}info_$read[pid]" $basicInfoStyle>
  22. <!--

查找
  1. <div class="read_medals">$read[medals]</div>
删除
 
查找
  1. EOT;
  2. if ($db_readinfo) {
  3. print<<<EOT
  4. -->
  5.                                                        <div class="one" id="basic_{$topPostId}info_$read[pid]">
  6.                                                                <dl class="cc"><dt>发帖</dt><dd>{$read[postnum]}</dd></dl>
  7.                                                                $secondCreditString
  8. <!--
  9. EOT;
  10. if($customfield){
  11. foreach($customfield as $k=>$val){
  12. if($val['viewinread']){
  13. if($val['viewright']&&$winduid!=$read['authorid']&&strpos(",$val[viewright],",",$groupid,")===false){
  14. continue;
  15. }$field= $val['fieldname'] ? $val['fieldname'] : "field_".(int)$val[id];
  16. $value = formatCustomerField($val,$read[$field]);
  17. print <<<EOT
  18. -->
  19.                                                                <dl class="cc"><dt>{$val[title]}</dt><dd>{$value}</dd></dl>
  20. <!--
  21. EOT;
  22. }}}
  23. print <<<EOT
  24. -->
  25.                                                        </div>
  26. <!--

替换
  1. EOT;
  2. if ($db_readinfo) {
  3. print<<<EOT
  4. -->
  5. <!--个人信息资料-->
  6. <center><fieldset style=width:135px><legend><font color=red><b>用户信息</b></font></legend><div align=left>
  7.        
  8. <!--
  9. EOT;
  10. if($read[groupid]!=-1){
  11. print <<<EOT
  12. -->
  13. <dl class="cc"><dt>职务</dt><dd><a href="profile.php?action=permission&gid=$read[groupid]">{$read[level]}</a></dd></dl>
  14. <!--
  15. EOT;
  16. }
  17. print <<<EOT
  18. -->
  19. <dl class="cc"><dt>等级</dt><dd>{$read[userlevel]}</dd></dl>
  20. <dl class="cc"><dt>发帖</dt><dd>{$read[postnum]}</dd></dl>
  21. <dl class="cc"><dt>精华</dt><dd><!--
  22. EOT;
  23. if($read['digests']){print <<<EOT
  24. --><a href="searcher.php?authorid=$read[authorid]&digest=1" target="_blank"><font color=red>$read[digests]</font></a><!--
  25. EOT;
  26. }else{print <<<EOT
  27. -->$read[digests]
  28. <!--
  29. EOT;
  30. }
  31. $ccolor = 1;
  32. $firstCreditString = '';
  33. $secondCreditString = '';
  34. foreach ($db_showcustom as $ctype) {
  35. if (!$creditnames[$ctype]) continue;
  36.  $ccolor = ($ccolor > 3) ? 1 : $ccolor + 1;
  37.  $cvalue = is_numeric($ctype) ? $customdb[$read['authorid']][$ctype] : $read[$ctype];
  38.  !$cvalue && $cvalue = 0;
  39.  $firstCreditString .= "<li class=\"cc\"><span>$creditnames[$ctype]</span>$cvalue</li>";
  40.  $secondCreditString .= "<dl class=\"cc\"><dt>$creditnames[$ctype]</dt><dd>$cvalue</dd></dl>";
  41. }
  42. print <<<EOT
  43. --></dd></dl>
  44.        $secondCreditString
  45. <!--
  46. EOT;
  47. if($customfield){
  48. foreach($customfield as $k=>$val){
  49. if($val['viewinread']){
  50. if($val['viewright']&&$winduid!=$read['authorid']&&strpos(",$val[viewright],",",$groupid,")===false){
  51. continue;
  52. }$field= $val['fieldname'] ? $val['fieldname'] : "field_".(int)$val[id];
  53. $value = formatCustomerField($val,$read[$field]);
  54. print <<<EOT
  55. -->
  56.        <dl class="cc"><dt>{$val[title]}</dt><dd>{$value}</dd></dl>
  57. <!--
  58. EOT;
  59. }}}
  60. print <<<EOT
  61. -->
  62. <!--
  63. EOT;
  64.        //升级进度条开始
  65. include_once(D_P.'data/bbscache/level.php');
  66. require_once(R_P.'require/credit.php');
  67. require_once(R_P.'require/functions.php');
  68. $usercredit = array(
  69.        'postnum'        => $read[postnum],
  70.        'digests'        => $read[digests],
  71.        'rvrc'                => $read[rvrc],
  72.        'money'                => $read[money],
  73.        'credit'        => $read[credit],
  74.        'currency'        => $read[currency],
  75.        'onlinetime'=> $read[onlinetime]
  76. );
  77. $upgradeset = unserialize($db_upgrade);
  78. $totalcredit = CalculateCredit($usercredit,$upgradeset);
  79. $last = $percent = 0;
  80. !$lneed && $lneed = array();
  81. $copyLneed = $lneed;
  82. foreach ($lneed as $key=>$value){
  83.        if($value > $totalcredit){
  84.                $last = $value;break;
  85.        } elseif ($totalcredit >= $value && $value == end($copyLneed)) {
  86.                $last = $value;
  87.                break;
  88.        }
  89. }
  90. $percent = $last ? ceil(($totalcredit/$last) * 100) : 0;
  91. $nextlevel = $read[memberid] + 1;
  92. $needexp = $last - $totalcredit;
  93. $picl = $percent * 0.3;
  94. $htmls1 = "当前等级:{$ltitle[$read[memberid]]}\n下一等级:{$ltitle[$nextlevel]}\n当前经验:{$totalcredit}/{$last} {$percent}%\n升级还需:$needexp 点经验";
  95. $htmls2 = "恭喜!已经有{$percent}%点经验啦!";
  96. //升级进度条结束
  97. print <<<EOT
  98. -->
  99.                                <dl class="cc"><dt>升级经验</dt><dd><img src="$imgpath/post/vote/bar1.gif" width="{$picl}" height="10" title="$htmls1"><img src="$imgpath/post/vote/bar2.gif" width="7" height="10" title="$htmls1" /><span class="s4 f9" title="$htmls2"><font size=2>{$percent}%</font></span> </dd></dl>
  100. <dl class="cc"><dt>在线状态</dt><dd><!--
  101. EOT;
  102. if ($db_showonline) {
  103. $gender = getDefaultGender($read['gender']);
  104.  if (checkOnline($read['thisvisit'])) {print <<<EOT
  105. --><span title="在线" alt="在线"><img src="$imgpath/$stylepath/s7.gif" align="absmiddle" /></span><!--
  106. EOT;
  107.  } else {print<<<EOT
  108. --><span title="离线" alt="离线"><img src="$imgpath/$stylepath/s8.gif" align="absmiddle" /></span><!--
  109. EOT;
  110.  }
  111. }
  112. print <<<EOT
  113. --></dd></dl>
  114. <!--QQ资料-->
  115. <!--
  116. EOT;
  117. if($read[oicq]){print <<<EOT
  118. -->
  119. <dl class="cc"><dt>联系QQ</dt><dd><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=$read[oicq]&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:$read[oicq]:46" alt="点击这里和TA聊QQ" title="点击这里和TA聊QQ"></a></dd></dl>
  120. <!--
  121. EOT;
  122. }print <<<EOT
  123. -->
  124. <!--QQ资料-->
  125.       </div>
  126. </div></fieldset></center>
  127. <!--荣誉勋章-->
  128. <!--
  129. EOT;
  130. if($read[medals]){print <<<EOT
  131. -->
  132. <CENTER><fieldset style=width:135px><legend><font color=red><b>荣誉勋章</b></font></legend><div align=center>
  133.      $read[medals]
  134.                                                </div>
  135. </fieldset></CENTER>
  136. <!--
  137. EOT;
  138. }print <<<EOT
  139. -->
  140. <!--荣誉勋章-->
  141. <!--

打开template/wind/read_addfloor.htm
查找
  1. <!--
  2. EOT;
  3. if($read[groupid]!=-1){
  4. print <<<EOT
  5. -->
  6. <dl class="cc"><dt>职务</dt><dd><a href="profile.php?action=permission;gid=$read[groupid]">{$read[level]}</a></dd></dl>
  7. <!--
  8. EOT;
  9. }
  10. print <<<EOT
  11. -->
  12. <dl class="cc"><dt>等级</dt><dd>{$read[userlevel]}</dd></dl>

替换
  1. <dl class="cc"><dt>级别</dt><dd><a href="profile.php?action=permission;gid=$read[groupid]">{$read[level]}</a></dd></dl>

查找
  1. <span class="s4 f9" title="当前等级:{$read[userlevel]}\n下一等级:{$ltitle[$newgid]}\n当前经验:$read[total]/$lneed[$newgid] $exps%\n升级还需:$needexp 点"><img src="$imgpath/a.gif" width="$expswidth" height="10"><img src="$imgpath/b.gif" width="7" height="10" />$exps%</span></dd></dl>

替换
  1. <span class="s4 f9" title="当前等级:{$read[memberid]}\n下一等级:{$ltitle[$newgid]}\n当前经验:$read[total]/$lneed[$newgid] $exps%\n升级还需:$needexp 点"><img src="$imgpath/a.gif" width="$expswidth" height="10"><img src="$imgpath/b.gif" width="7" height="10" />$exps%</span></dd></dl>

undefined
附件
石三伢子
1楼石三伢子中级会员 2014-02-20 12:00
现在还有问题吗
叫你调皮
2楼叫你调皮初级会员 2014-02-20 19:31
其他没问题  就是积分前面的图标不知道怎么加显示
石三伢子
3楼石三伢子中级会员 2014-02-28 11:40
你应该再编辑帖子时候把代码放在编辑代码那里。



xinyigod
4楼xinyigod初级会员 2014-11-23 20:27
支持楼主
weixin
小谷派

每一天,发现生活之美!

微信号:sdhy2006