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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] Discuz 6.1 仿 7.0 头像显示

[复制链接]
夜未央心飞扬 发表于 2008-11-28 21:49:31 | 显示全部楼层 |阅读模式
插件发布
插件名称: Discuz 6.1 仿 7.0 头像显示
插件来源:
适用版本: Discuz! 6.1
语言编码: GBK简体 
最后更新时间:
插件作者: 暗夜
插件简介: Discuz 6.1 仿 7.0 头像显示
也懒得卖金币啦,大家要用直接下载吧
我也不外链,也懒得加演示,免得有人说我卖广告
想看演示的点击一下我签名就行了


1. 修改风格下的viewthread.htm文件

    如果你没有做过任何修改,查找:

  1.     <td class="postauthor">
  2.      $post[newpostanchor] $post[lastpostanchor]
  3.      <cite><!--{if $forum['ismoderator']}-->
  4.       <!--{if $allowviewip && ($thread['digest'] >= 0 || !$post['first'])}--><label><a href="topicadmin.php?action=getip&fid=$fid&tid=$tid&pid=$post[pid]" id="ajax_getip_$post[count]" onclick="ajaxmenu(event, this.id, 10000, null, 0)" title="{lang admin_getip}">IP</a></label><!--{/if}-->
  5.      <!--{/if}-->
  6.      <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
  7.       <a href="space.php?uid=$post[authorid]" target="_blank" id="userinfo$post[pid]" class="dropmenu" onmouseover="showMenu(this.id)">$post[author]</a></cite>
  8.       <!--{if $post['nickname']}--><p>$post[nickname]</p><!--{/if}-->
  9.       <!--{if $post['avatar'] && $showavatars}-->
  10.        $post[avatar]
  11.       <!--{/if}-->
  12.       <p><em>$post[authortitle]</em></p>
  13.       <p>{eval showstars($post['stars']);}</p>
  14.       <!--{if $post['customstatus']}--><p class="customstatus">$post[customstatus]</p><!--{/if}-->
  15.       <!--{if $customauthorinfo[1]}--><dl class="profile">{eval @eval('echo "'.$customauthorinfo[1].'";');}</dl><!--{/if}-->
  16.       <!--{if $post['medals']}--><p>
  17.        <!--{loop $post['medals'] $medal}-->
  18.        <img src="images/common/$medal[image]" alt="$medal[name]" />
  19.        <!--{/loop}--></p>
  20.       <!--{/if}-->
  21.       <ul>
  22.       <!--{if $ucappopen['UCHOME']}-->
  23.        <li class="space"><a href="{$uchomeurl}/space.php?uid=$post[authorid]" target="_blank">{lang space}</a></li>
  24.       <!--{elseif $ucappopen['XSPACE']}-->
  25.        <li class="space"><a href="{$xspaceurl}/?uid-$post[authorid]" target="_blank">{lang space}</a></li>
  26.       <!--{/if}-->
  27.       <li class="pm"><a href="###" onclick="pmwin('open', 'uid=$post[authorid]')">{lang send_pm}</a></li>
  28.       <li class="buddy"><a href="my.php?item=buddylist&newbuddyid=$post[authorid]&buddysubmit=yes" target="_blank" id="ajax_buddy_$post['count']" onclick="ajaxmenu(event, this.id, 3000, 0)">{lang add_to_buddylist}</a></li>
  29.       <!--{if $vtonlinestatus && $post['authorid']}-->
  30.        <!--{if ($vtonlinestatus == 2 && $onlineauthors[$post[authorid]]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])}-->
  31.         <li class="online">{lang online}
  32.        <!--{else}-->
  33.         <li class="offline">{lang offline}
  34.        <!--{/if}-->
  35.        </li>
  36.       <!--{/if}-->
  37.       </ul>
  38.      <!--{else}-->
  39.       <!--{if !$post['authorid']}-->
复制代码
如果做过修改的话,查找:

  1.     <td class="postauthor">
  2.      $post[newpostanchor] $post[lastpostanchor]
  3.      
  4. ..................(中间应该你做的一些美化代码)

  5.   <!--{else}-->
  6.    <!--{if !$post['authorid']}-->
复制代码
替换为:

  1.   <td class="postauthor">
  2.   $post[newpostanchor] $post[lastpostanchor]
  3.   <cite style="border-bottom:0px;"><!--{if $forum['ismoderator']}-->
  4.    <!--{if $allowviewip && ($thread['digest'] >= 0 || !$post['first'])}--><label><a href="topicadmin.php?action=getip&fid=$fid&tid=$tid&pid=$post[pid]" id="ajax_getip_$post[count]" onclick="ajaxmenu(event, this.id, 10000, null, 0)" title="{lang admin_getip}">IP</a></label><!--{/if}-->
  5.   <!--{/if}-->
  6.      <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
  7.                    <!--{if $post['gender'] == 1}--><font color="DeepSkyBlue">$post[author]</font><!--{elseif $post['gender'] == 2}-->   <font color="#FF1493">$post[author]</font><!--{else}--><font color="SeaGreen">$post[author]</font><!--{/if}--></cite>
  8. <div align="center">
  9. <div id="userinfo$post[pid]" onmouseover="showMenu(this.id,false,1)" class="avatar" style="margin-left:-5px;">$post[avatar]</div>
  10.                
  11.     <p>{eval showstars($post['stars']);}</p>
  12. <div align="left" style="width:176px">
  13.   <p><img src="./images/mini.gif" border="0"> 编号: <font color="#FF0000">№ $post[uid]</font><br>  
  14.   <p><img src="./images/mini.gif" border="0"> 组别: <font color="#FF1493">$post[authortitle]</font><br>
  15.         <p><img src="./images/mini.gif" border="0"> {lang posts}: <font color="#0000FF">$post[posts]</font><br>
  16.         <p><img src="./images/mini.gif" border="0"> 金币: <font color="#FF0000">$post[extcredits2]</font><br>

  17. </div>
  18.         <p align="center">
  19.         <div style="text-align: center; width:160px">
  20.         <fieldset style="padding:2px;border:1px solid #B7B7B7; color:#CC3300; line-height:2.0; font-size:12px;">
  21.   <legend style="color:red; border: 0 solid #000000">  荣誉勋章  </legend>
  22.   <p><div>
  23.         <!--{if $post['medals']}-->
  24.         <!--{loop $post['medals'] $medal}-->
  25.   <img src="images/common/$medal[image]" alt="$medal[name]" />
  26.   <!--{/loop}-->
  27.         <!--{else}--><font color=blue>还没获得勋章,努力哦!</font><!--{/if}--></div>
  28.         </fieldset>
  29.         </div>
复制代码
同时做了一下勋章美化

2. 继续修改viewthread.htm文件

    同样,在你没有做过任何修改或者美化的情况下,查找:

  1.    </td>
  2.   </tr>
  3.   <tr>
  4.    <td class="postauthor">
  5.     <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
  6.     <div class="popupmenu_popup userinfopanel" id="userinfo$post[pid]_menu" style="display: none;">
  7.      <!--{if $post['msn'] || $post['qq'] || $post['icq'] || $post['yahoo'] || $post['taobao']}-->
  8.      <div class="imicons">
  9.       <!--{if $post['msn']}-->
  10.        <a target='_blank' href='http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=$post[msn]&mkt=zh-cn'><img style='border-style: none;' src='http://messenger.services.live.com/users/$post[msn]/presenceimage?mkt=zh-cn' width='16' height='16' /></a>
  11.       <!--{/if}-->
  12.       <!--{if $post['qq']}--><a href="http://wpa.qq.com/msgrd?V=1&Uin=$post[qq]&Site=$bbname&Menu=yes" target="_blank"><img src="{IMGDIR}/qq.gif" alt="QQ" /></a><!--{/if}-->
  13.       <!--{if $post['icq']}--><a href="http://wwp.icq.com/scripts/search.dll?to=$post[icq]" target="_blank"><img src="{IMGDIR}/icq.gif" alt="ICQ" /></a><!--{/if}-->
  14.       <!--{if $post['yahoo']}--><a href="http://edit.yahoo.com/config/send_webmesg?.target=$post[yahoo]&.src=pg" target="_blank"><img src="{IMGDIR}/yahoo.gif" alt="Yahoo!"  /></a><!--{/if}-->
  15.       <!--{if $post['taobao']}--><script type="text/javascript">document.write('<a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&uid='+encodeURIComponent('$post[taobaoas]')+'&s=2"><img src="{IMGDIR}/taobao.gif" alt="{lang taobao}" /></a>');</script><!--{/if}-->
  16.      </div>
  17.      <!--{/if}-->
  18.      <dl>{eval @eval('echo "'.$customauthorinfo[2].'";');}</dl>
  19.      <!--{if $post['site']}-->
  20.       <p><a href="$post[site]" target="_blank">{lang member_homepage}</a></p>
  21.      <!--{/if}-->
  22.      <p><a href="space.php?uid=$post[authorid]" target="_blank">{lang member_viewpro}</a></p>
  23.      <!--{if $allowedituser}-->
  24.       <p><a href="{if $adminid == 1}admincp.php?action=members&username=$post[usernameenc]&submit=yes&frames=yes{else}modcp.php?action=members&op=edit&uid=$post[authorid]{/if}" target="_blank">{lang edit_member}</a></p>
  25.      <!--{/if}-->
  26.      <!--{if $allowbanuser}-->
  27.       <p><a href="{if $adminid == 1}admincp.php?action=members&operation=ban&uid=$post[authorid]&membersubmit=yes&frames=yes{else}modcp.php?action=members&op=ban&uid=$post[authorid]{/if}" target="_blank">{lang ban_member}</a></p>
  28.      <!--{/if}-->
  29.     </div>
  30.     <!--{/if}-->
  31.    </td>
  32.    <td class="postcontent">
  33.     <div class="postactions">
复制代码
如果做过美化,则查找:
  1.    </td>
  2.   </tr>
  3.   <tr>
  4.    <td class="postauthor">


  5. ......................(你做的一些美化代码)

  6.    </td>
  7.    <td class="postcontent">
  8.     <div class="postactions">
复制代码
替换为:

  1.    </td>
  2.   </tr>
  3.   <tr>
  4.    <td class="postauthor">
  5. <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
  6. <div class="userinfopanel" id="userinfo$post[pid]_menu" style="display: none;width:340px;margin-top:-16px;margin-left:-16px; ">
  7. <table width="100%" border="0" cellspacing="0" cellpadding="0" align="left">
  8.   <tr>
  9.     <td width="170" valign="top" align="left" style="border-top:0px;">
  10.     $post[avatar]
  11.     <p><a href="space.php?uid=$post[authorid]" target="_blank"><!--{if $post['gender'] == 1}-->
  12.        <font color="DeepSkyBlue">$post[author]</a>   (№ $post[uid])</font>
  13.        <!--{elseif $post['gender'] == 2}-->
  14.        <font color="#FF1493">$post[author]</a>   (№ $post[uid])</font>
  15.        <!--{else}-->
  16.        <font color="SeaGreen">$post[author]</a>   (№ $post[uid])</font>
  17.        <!--{/if}--></p><br />
  18.       
  19.     <p><a href="###" onclick="pmwin('open', 'uid=$post[authorid]')"><img src="images/pmto.gif" border="0"> {lang send_pm}</a>   <a href="my.php?item=buddylist&newbuddyid=$post[authorid]&buddysubmit=yes" target="_blank" id="ajax_buddy_$post['count']" onclick="ajaxmenu(event, this.id, 3000, 0)"><img src="images/default/user_add.gif" border="0"> {lang add_to_buddylist}</a>
  20.     <p><a href="{$uchomeurl}/space.php?uid=$post[authorid]" target="_blank"><img src="images/default/homelink.gif" border="0"> {lang space}</a>
  21.     <!--{if $allowedituser}--><br><p><img src="images/default/activitysmall.gif" border="0"> <a href="{if $adminid == 1}admincp.php?action=members&username=$post[usernameenc]&submit=yes&frames=yes{else}modcp.php?action=members&op=edit&uid=$post[authorid]{/if}" target="_blank">{lang edit_member}</a><!--{/if}-->
  22.     <!--{if $allowbanuser}--><a href="{if $adminid == 1}admincp.php?action=members&operation=ban&uid=$post[authorid]&membersubmit=yes&frames=yes{else}modcp.php?action=members&op=ban&uid=$post[authorid]{/if}" target="_blank"><img src="images/default/tradesmall.gif" border="0"> {lang ban_member}</a><!--{/if}-->
  23. <br><br>
  24. <div align="center">

  25.     <!--{if $vtonlinestatus && $post['authorid']}-->
  26.                 <!--{if $timestamp - $post['lastactivity'] <= 10800 && !$post['invisible']}-->
  27.                 <!--{if $post[gender] == 1}--> <img src="images/sn-post/male.gif" alt="{lang gender}:{lang male}-{lang online}" border="0">
  28.                 <!--{elseif $post[gender] == 2}--> <img src="images/sn-post/female.gif" alt="{lang gender}:{lang female}-{lang online}" border="0">
  29.                 <!--{else}--> <img src="images/sn-post/secret.gif" alt="{lang gender}:{lang secret}-{lang online}" border="0">
  30.                 <!--{/if}-->
  31.                 <!--{else}-->
  32.                 <!--{if $post[gender] == 1}--> <img src="images/sn-post/male_offline.gif" alt="{lang gender}:{lang male}-{lang offline}" border="0">
  33.                 <!--{elseif $post[gender] == 2}--> <img src="images/sn-post/female_offline.gif" alt="{lang gender}:{lang female}-{lang offline}" border="0">
  34.                 <!--{else}--> <img src="images/sn-post/secret_offline.gif" alt="{lang gender}:{lang secret}-{lang offline}"  border="0">
  35.                 <!--{/if}-->                                             
  36.                 <!--{/if}-->
  37.     <!--{/if}-->
  38.         <!--{if $post['msn'] || $post['qq'] || $post['icq'] || $post['yahoo'] || $post['taobao']}-->
  39.     <!--{if $post['msn']}-->  <a href="javascript:;" onclick="msnoperate('chat', '$post[msn]')" title="{lang msn_chat}"><img src="{IMGDIR}/msnchat.gif" alt="MSN聊天" /></a><!--{/if}-->
  40.     <!--{if $post['qq']}-->  <a href="http://wpa.qq.com/msgrd?V=1&Uin=$post[qq]&Site=$bbname&Menu=yes" target="_blank" id="qqx_$post[pid]" title="点击即可进行QQ聊天"><img src="{IMGDIR}/qq.gif"></a>
  41.                 <!--{/if}-->
  42.     <!--{if $post[qq]}-->  <a href="http://new.qzone.qq.com/$post[qq]" target="_blank" title="欢迎光临$post[username]的QQ空间"><img src="images/sn-post/qqzone.gif" border="0"></a>
  43.                 <!--{/if}-->
  44.     <!--{if $post['icq']}-->  <a href="http://wwp.icq.com/scripts/search.dll?to=$post[icq]" target="_blank"><img src="{IMGDIR}/icq.gif" alt="ICQ" /></a>
  45.                 <!--{/if}-->
  46.     <!--{if $post['yahoo']}-->  <a href="http://edit.yahoo.com/config/send_webmesg?.target=$post[yahoo]&.src=pg" target="_blank"><img src="{IMGDIR}/yahoo.gif" alt="Yahoo!"  /></a>
  47.                 <!--{/if}-->
  48.     <!--{if $post['taobao']}--><script type="text/javascript">document.write('<a target="_blank" href="  http://amos1.taobao.com/msg.ww?v=2&uid='+encodeURIComponent('$post[taobaoas]')+'&s=2">  <img src="{IMGDIR}/taobao.gif" alt="{lang taobao}" /></a>');</script>
  49.                 <!--{/if}-->
  50.         <!--{/if}-->
  51. </div>
  52. </td>
  53.     <td align="left" valign="top" style="border-top:0px;">
  54.     <P><img src="./images/mini.gif" border="0"> 呢称: <!--{if $post['customstatus']}--><font color="#FF0099">$post[nickname]</font><!--{else}-->没有呢称<!--{/if}-->
  55.     <P><img src="./images/mini.gif" border="0"> 头衔: <!--{if $post['customstatus']}--><font color="#0000FF">$post[customstatus]</font><!--{else}-->没有头衔<!--{/if}-->
  56.     <p><img src="./images/mini.gif" border="0"> 威望: <font color="#FF0000">$post[extcredits1]</font>
  57.     <p><img src="./images/mini.gif" border="0"> 金币: <font color="#FF0000">$post[extcredits2]</font>
  58.     <P><img src="./images/mini.gif" border="0"> 在线: <font color="#FF6600">$post[oltime] 小时</font>
  59.     <p><img src="./images/mini.gif" border="0"> 性别: <!--{if $post['gender']==1}--><font color="#0000FF"> 帅哥</font><!--{elseif $post['gender']==2}--><font color="#FF0000"> 美女</font><!--{else}--><font color="#FF3CEF">人妖</font><!--{/if}-->
  60.     <p><img src="./images/mini.gif" border="0"> {lang credits}: <font color="#66FF00">$post[credits]</font>
  61.     <p><img src="./images/mini.gif" border="0"> {lang digest_posts}: <!--{if $post['digestposts']}--><a href="digest.php?authorid=$post[authorid]"><font color="#FF0099">$post[digestposts]</font></a><!--{else}-->$post[digestposts]<!--{/if}-->
  62.     <p><img src="./images/mini.gif" border="0"> 权限: <font color="#FFBF00">$post[readaccess]</font>
  63.     <p><img src="./images/mini.gif" border="0"> {lang regtime}: <font color="#33CCCC">$post[regdate]</font>
  64.     <p><!--{if $post['location']}--><img src="./images/mini.gif" border="0"> {lang location}: <font color="green">$post[location]</font><!--{/if}-->
  65.    
  66.    
  67.     </td>
  68.   </tr>
  69. </table>

  70. </div>
  71. <!--{/if}-->
  72.    </td>
  73.    <td class="postcontent">
  74.     <div class="postactions">
复制代码
3. 后台更新缓存,应该就可以了

已经完美无错了

如果没有做过任何美化的话
我的懒人覆盖包直接可以用

如果因为风格问题
引起头像错位

查找:

  1. display: none;width:340px;margin-top:-16px;margin-left:-16px;
复制代码
自己调里面的数字
340px是显示详细信息的框宽度

两个-16px自己慢慢调
调到满意为止

另外BS一下在我论坛上偷了我文件再跑来Discuz说是自己写的某个人
比如说仿7.0头像系统的

跑他论坛一看
还真偷了我不少东西,都是直接下载就使用的

本帖子中包含更多资源

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

x
博爱小山 发表于 2008-11-28 21:55:13 | 显示全部楼层
不错的东西,沙发一下
回复

使用道具 举报

2576474 发表于 2008-11-28 21:55:49 | 显示全部楼层
改天照着试试
回复

使用道具 举报

=老A= 发表于 2008-11-28 21:56:18 | 显示全部楼层
沙发  传说中的
回复

使用道具 举报

 楼主| 夜未央心飞扬 发表于 2008-11-28 22:01:14 | 显示全部楼层
沙发  传说中的
=老A= 发表于 2008-11-28 21:56


趴在地板上还想沙发
回复

使用道具 举报

verygoodbye 发表于 2008-11-28 22:03:16 | 显示全部楼层
楼主你是 大官人??
回复

使用道具 举报

dzbz 发表于 2008-11-28 22:06:06 | 显示全部楼层
回复

使用道具 举报

紫云杉 发表于 2008-11-28 22:15:36 | 显示全部楼层
支持一个
回复

使用道具 举报

 楼主| 夜未央心飞扬 发表于 2008-11-28 23:00:58 | 显示全部楼层
楼主你是 大官人??
verygoodbye 发表于 2008-11-28 22:03


是啊
回复

使用道具 举报

ydxiao 发表于 2008-11-29 00:21:09 | 显示全部楼层
好帖,我爱6.1,那是无奈呀
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-2 11:14 , Processed in 0.143406 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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