生活在常宁,爱上常宁论坛! 广告服务

 找回密码
 免费注册

手机号码,快捷登录

4271查看|5回复

[Discuz!插件] 个人信息美化 discuz x2.0

[Discuz!插件] [复制链接]
发表于 2011-10-28 16:35:08 | 显示全部楼层 |阅读模式
01.jpg 02.jpg 03.jpg
1. 下载附件
2. show文件夹上传至根目录
3. show.htm放到风格目录的forum目录下
4. 打开template/目前使用的风格/forum/viewthread_node.htm
查找(官方原版18行-130行)

  1. <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
  2. <!--{if $_G['setting']['authoronleft']}-->
  3. <div class="pi">

  4. <div class="authi"><a
  5. href="home.php?mod=space&uid=$post['authorid']" target="_blank"
  6. class="xw1">$post[author]</a>$authorverifys</div>
  7. </div>
  8. <!--{/if}-->

  9. <div class="p_pop blk bui"
  10. id="userinfo$post[pid]" style="display: none; {if
  11. $_G['setting']['authoronleft']}margin-top: -11px;{/if}">
  12. <div class="m z">
  13. <div id="userinfo$post[pid]_ma"></div>
  14. <!--{hook/viewthread_profileside $postcount}-->
  15. </div>
  16. <div class="i y">
  17. <div>

  18. <strong><a
  19. href="home.php?mod=space&uid=$post[authorid]" target="_blank"
  20. class="xi2">$post[author]</a></strong>
  21. <!--{if $_G['setting']['vtonlinestatus'] && $post['authorid']}-->

  22. <!--{if
  23. ($_G['setting']['vtonlinestatus'] == 2 &&
  24. $_G[forum_onlineauthors][$post[authorid]]) ||
  25. ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP -
  26. $post['lastactivity'] <= 10800) &&
  27. !$post['authorinvisible'])}-->
  28. <em>{lang online}</em>
  29. <!--{else}-->
  30. <em>{lang offline}</em>
  31. <!--{/if}-->
  32. <!--{/if}-->
  33. </div>
  34. <dl class="cl">{$post[custominfo][menu]}</dl>
  35. <div class="imicn">

  36. <!--{if $post['qq']
  37. && !$post['privacy']['profile']['qq']}--><a
  38. href="http://wpa.qq.com/msgrd?V=1&Uin=$post[qq]&Site=$_G['setting']['bbname']&Menu=yes"
  39. target="_blank" title="QQ"><img src="{IMGDIR}/qq.gif" alt="QQ"
  40. /></a><!--{/if}-->

  41. <!--{if $post['icq'] &&
  42. !$post['privacy']['profile']['icq']}--><a
  43. href="http://wwp.icq.com/scripts/search.dll?to=$post[icq]"
  44. target="_blank" title="ICQ"><img src="{IMGDIR}/icq.gif" alt="ICQ"
  45. /></a><!--{/if}-->

  46. <!--{if $post['yahoo'] &&
  47. !$post['privacy']['profile']['yahoo']}--><a
  48. href="http://edit.yahoo.com/config/send_webmesg?.target=$post[yahoo]&.src=pg"
  49. target="_blank" title="Yahoo"><img src="{IMGDIR}/yahoo.gif"
  50. alt="Yahoo!" /></a><!--{/if}-->

  51. <!--{if $post['taobao'] &&
  52. !$post['privacy']['profile']['taobao']}--><a href="javascript:;"
  53. onclick="window.open('http://amos.im.alisoft.com/msg.aw?v=2&uid='+encodeURIComponent('$post[taobaoas]')+'&site=cntaobao&s=2&charset=utf-8')"
  54. title="{lang taobao}"><img src="{IMGDIR}/taobao.gif" alt="{lang
  55. taobao}" /></a><!--{/if}-->

  56. <!--{if $post['site'] &&
  57. !$post['privacy']['profile']['site']}--><a href="$post[site]"
  58. target="_blank" title="{lang member_homepage}"><img
  59. src="{IMGDIR}/forumlink.gif" alt="{lang member_homepage}"
  60. /></a><!--{/if}-->

  61. <a
  62. href="home.php?mod=space&uid=$post[authorid]&do=profile"
  63. target="_blank" title="{lang member_viewpro}"><img
  64. src="{IMGDIR}/userinfo.gif" alt="{lang member_viewpro}" /></a>
  65. <!--{hook/viewthread_imicons $postcount}-->
  66. <!--{if $_G['setting']['magicstatus']}-->
  67. <!--{if !empty($_G['setting']['magics']['showip'])}-->

  68. <a
  69. href="home.php?mod=magic&mid=showip&idtype=user&id={echo
  70. rawurlencode($post[author])}" id="a_showip_li_{$post[pid]}" class="xi2"
  71. onclick="showWindow(this.id, this.href)"><img
  72. src="{STATICURL}/image/magic/showip.small.gif" alt="" />
  73. $_G['setting']['magics']['showip']</a>
  74. <!--{/if}-->

  75. <!--{if
  76. !empty($_G['setting']['magics']['checkonline']) &&
  77. $post['authorid'] != $_G['uid']}-->

  78. <a
  79. href="home.php?mod=magic&mid=checkonline&idtype=user&id={echo
  80. rawurlencode($post[author])}" id="a_repent_$post[pid]" class="xi2"
  81. onclick="showWindow(this.id, this.href)"><img
  82. src="{STATICURL}/image/magic/checkonline.small.gif" alt="" />
  83. $_G['setting']['magics']['checkonline']</a>
  84. <!--{/if}-->
  85. <!--{hook/viewthread_magic_user $postcount}-->
  86. <!--{/if}-->
  87. </div>
  88. <div id="avatarfeed"><span id="threadsortswait"></span></div>
  89. </div>
  90. </div>
  91. <!--{/if}-->
  92. <!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
  93. <div>

  94. <!--{if $_G['setting']['bannedmessages'] &
  95. 2 && ($post['memberstatus'] == '-1' || ($post['authorid']
  96. && !$post['username']) || ($post['groupid'] == 4 ||
  97. $post['groupid'] == 5) || ($post['status'] & 1))}-->
  98. <div class="avatar">{lang member_avatar_banned}</div>
  99. <!--{elseif $post['avatar'] && $showavatars}-->

  100. <div class="avatar"
  101. onmouseover="showauthor(this, 'userinfo$post[pid]')"><a
  102. href="home.php?mod=space&uid=$post[authorid]"
  103. target="_blank">$post[avatar]</a></div>
  104. <!--{/if}-->
  105. <!--{hook/viewthread_avatar $postcount}-->
  106. <!--{if $post[groupicon]}--><p>$post[groupicon]</p><!--{/if}-->

  107. <p><em><a
  108. href="home.php?mod=spacecp&ac=usergroup&gid=$post[groupid]"
  109. target="_blank">{$post[authortitle]}</a></em></p>

  110. <!--{if $post['customstatus']}--><p
  111. class="xg1">$post[customstatus]</p><!--{/if}-->
  112. </div>

  113. <p{if $post['upgradecredit'] !== false}
  114. id="g_up$post[pid]" onmouseover="showMenu({'ctrlid':this.id,
  115. 'pos':'12!'});"{/if}><!--{eval
  116. showstars($post['stars']);}--></p>
  117. <!--{if $post['upgradecredit'] !== false}-->
  118. <div id="g_up$post[pid]_menu" class="tip tip_4" style="display: none;">
  119. <div class="tip_horn"></div>

  120. <div
  121. class="tip_c">$post['authortitle'], {lang credits} $post['credits'],
  122. {lang thread_groupupgrade} $post['upgradecredit'] {lang
  123. credits}</div>
  124. </div>
  125. <!--{/if}-->
  126. <!--{hook/viewthread_sidetop $postcount}-->

  127. <!--{if $post[custominfo][left]}--><dl
  128. class="pil cl">{$post[custominfo][left]}</dl><!--{/if}-->
  129. <!--{if $post['medals']}-->
  130. <p class="md_ctrl">
  131. <a href="home.php?mod=medal">
  132. <!--{loop $post['medals'] $medal}-->

  133. <img
  134. id="md_{$post[pid]}_{$medal[medalid]}"
  135. src="{STATICURL}image/common/$medal[image]" alt="$medal[name]" title=""
  136. onmouseover="showMenu({'ctrlid':this.id,
  137. 'menuid':'md_$medal[medalid]_menu', 'pos':'12!'});" />
  138. <!--{/loop}-->
  139. </a>
  140. </p>
  141. <!--{/if}-->
  142. <!--{if $post[authorid] != $_G[uid]}-->
  143. <ul class="xl xl2 o cl">

  144. <li class="callon"><a
  145. href="home.php?mod=space&uid=$post[authorid]" target="_blank"
  146. title="{lang viewthread_left_tospace}" class="xi2">{lang
  147. viewthread_left_tospace}</a></li>

  148. <li class="buddy"><a
  149. href="home.php?mod=spacecp&ac=friend&op=add&uid=$post[authorid]&handlekey=addfriendhk_{$post[authorid]}"
  150. id="a_friend_li_{$post[pid]}" onclick="showWindow(this.id, this.href,
  151. 'get', 1, {'ctrlid':this.id,'pos':'00'});" title="{lang
  152. viewthread_left_addfriend}" class="xi2">{lang
  153. viewthread_left_addfriend}</a></li>

  154. <li class="poke2"><a
  155. href="home.php?mod=spacecp&ac=poke&op=send&uid=$post[authorid]"
  156. id="a_poke_li_{$post[pid]}" onclick="showWindow(this.id, this.href,
  157. 'get', 0);" title="{lang viewthread_left_poke}" class="xi2">{lang
  158. viewthread_left_poke}</a></li>

  159. <li class="pm2"><a
  160. 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]"
  161. onclick="showWindow('sendpm', this.href);" title="{lang
  162. viewthread_left_sendpm}" class="xi2">{lang
  163. viewthread_left_sendpm}</a></li>
  164. </ul>
  165. <!--{/if}-->
  166. <!--{hook/viewthread_sidebottom $postcount}-->
  167. <!--{else}-->
  168. <div class="pi">
  169. <!--{if !$post['authorid']}-->

  170. <a
  171. href="javascript:;">$_G[setting][anonymoustext]
  172. <em>$post[useip]</em></a>
  173. <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->

  174. <!--{if
  175. $_G['forum']['ismoderator']}--><a
  176. href="home.php?mod=space&uid=$post[authorid]"
  177. target="_blank">$_G[setting][anonymoustext]</a><!--{else}-->$_G[setting][anonymoustext]<!--{/if}-->
  178. <!--{else}-->
  179. $post[author] <em>{lang member_deleted}</em>
  180. <!--{/if}-->
  181. </div>
  182. <!--{/if}-->

  183. <!--{if $_G['group']['allowedituser'] ||
  184. $_G['group']['allowbanuser'] || ($_G['forum']['ismoderator'] &&
  185. $_G['group']['allowviewip'])}-->
  186. <p>
  187. <!--{if $_G['forum']['ismoderator'] && $_G['group']['allowviewip']}-->

  188. <a
  189. href="forum.php?mod=topicadmin&action=getip&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]{if
  190. $_G['forum_auditstatuson']}&modthreadkey=$_G[gp_modthreadkey]{/if}"
  191. onclick="ajaxmenu(this, 0, 0, 2);doane(event)">IP</a>
  192. <!--{/if}-->
  193. <!--{if $_G['group']['allowedituser']}-->

  194. <a href="{if $_G['adminid'] ==

  195. 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}"
  196. target="_blank">{lang edit}</a>
  197. <!--{/if}-->
  198. <!--{if $_G['group']['allowbanuser']}-->
  199. <!--{if $_G['adminid'] == 1}-->

  200. <a
  201. href="admin.php?action=members&operation=ban&username=$post[usernameenc]&frames=yes"
  202. target="_blank">{lang ban_member}</a>
  203. <!--{else}-->

  204. <a
  205. href="forum.php?mod=modcp&action=member&op=ban&uid=$post[authorid]"
  206. target="_blank">{lang ban_member}</a>
  207. <!--{/if}-->
  208. <!--{/if}-->

  209. <a
  210. href="forum.php?mod=modcp&action=thread&op=post&do=search&searchsubmit=1&users=$post[usernameenc]"
  211. target="_blank">{lang posts}</a>
  212. </p>
  213. <!--{/if}-->
复制代码
替换为

  1. <!--{subtemplate forum/show}-->
复制代码
游客,如果您要查看本帖隐藏内容请回复

修改后上传覆盖即可!
别忘记后台更新缓存哦~




发表于 2012-5-15 10:04:43 | 显示全部楼层
油瓶在手 低头猛走 鼠标一抖 一分到手
发表于 2012-5-27 10:26:02 | 显示全部楼层
我的目标就是把所有是楼上最后一个回复的都回复了- -.
发表于 2013-6-28 14:56:39 | 显示全部楼层
感谢分享
发表于 2013-7-10 02:43:49 | 显示全部楼层

感谢分享
发表于 2013-7-19 15:01:02 | 显示全部楼层
我是来取东西的
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

b6广告位招商
快速回复 返回顶部 返回列表