Discuz教程网

[代码修改] Discuz X1.5个人信息栏美化/头衔显示/多积分/用户栏目扩展调用

  [复制链接]
authicon dly 发表于 2011-4-5 11:19:39 | 显示全部楼层 |阅读模式


1.如果是默认风格的话就直接把 template static 两个文件夹传到论坛跟目录.如果是单独的风格.请自行修改相关文件.

2.先要修改一下文件,模板文件夹下的forum/viewthread_node.htm.

查找:

  1. <!--{if $_G['setting']['bannedmessages'] & 2 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1))}-->
  2. <div class="avatar">{lang member_avatar_banned}</div>
  3. <!--{elseif $post['avatar'] && $showavatars}-->
  4. <div class="avatar" onmouseover="showauthor(this, 'userinfo$post[pid]')"><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">$post[avatar]</a></div>
  5. <!--{/if}-->
  6. <!--{if $post[groupicon]}--><p>$post[groupicon]</p><!--{/if}-->
  7. <p><em><a href="home.php?mod=spacecp&ac=usergroup&gid=$post[groupid]" target="_blank">{$post[authortitle]}</a></em></p>
  8. <!--{if $post['customstatus'] && $_G['group']['allowcstatus']}--><p class="xg1">$post[customstatus]</p><!--{/if}-->
  9. </div>
  10. <p{if $post['upgradecredit'] !== false} id="g_up$post[pid]" onmouseover="showMenu({'ctrlid':this.id, 'pos':'12'});"{/if}><!--{eval showstars($post['stars']);}--></p>
  11. <!--{if $post['upgradecredit'] !== false}-->
  12. <div id="g_up$post[pid]_menu" class="g_up" style="display:none">
  13. <div class="crly">
  14. $post['authortitle'], {lang credits} $post['credits'], {lang thread_groupupgrade} $post['upgradecredit'] {lang credits}
  15. </div>
  16. <div class="mncr"></div>
  17. </div>
  18. <!--{/if}-->
  19. <!--{hook/viewthread_sidetop $postcount}-->
  20. <!--{if $customauthorinfo[1]}--><dl class="pil cl"><!--{eval @eval('echo "'.$customauthorinfo[1].'";');}--></dl><!--{/if}-->
  21. <!--{if $post['medals']}--><p>
  22. <!--{loop $post['medals'] $medal}-->
  23. <img src="{STATICURL}image/common/$medal[image]" alt="$medal[name]" title="$medal[name]" />
  24. <!--{/loop}--></p>
  25. <!--{/if}-->
  26. <!--{hook/viewthread_sidebottom $postcount}-->
  27. <!--{else}-->
  28. <div class="pi">
  29. <!--{if !$post['authorid']}-->
  30. <a href="javascript:;">{lang guest} <em>$post[useip]</em></a>
  31. <!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
  32. <!--{if $_G['forum']['ismoderator']}--><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}-->
  33. <!--{else}-->
  34. $post[author] <em>{lang member_deleted}</em>
  35. <!--{/if}-->
  36. </div>
  37. <!--{/if}-->
复制代码
将以上代码 替换
  1. {subtemplate forum/show}
复制代码

3. 把static 文件夹复制到论坛跟目录(如果默认的风格并且前面传过的跳过。)

注意: 第二个 要改下CSS 文件  template/default/common/module.css 中

  1. .pls { width: 160px; background: {SPECIALBG}; overflow: hidden; border: solid {SPECIALBORDER}; border-width: 0 1px 0 0; }
复制代码
其中的 160px  改成 170px


本站温馨提示:template\default\forum 下的show.htm 存在外链调用等级图片
  1. <img src="http://www.wz2006.com/images/rank/{$post['stars']}.gif" title="Rank: {$post['stars']}">
复制代码

附件内容:配套等级图标、 勋章 、DX1.5个人信息美化文件(show.htm)、3个积分PSD原图
附件下载:
游客,如果您要查看本帖隐藏内容请回复





上一篇:Discuz X1.5在你的论坛加上滚动广告
下一篇:Discuz X1.5 超级网站底部美化
authicon 3562365 发表于 2011-4-5 14:10:24 | 显示全部楼层
很漂亮啊。。。。。
authicon 楠明青菲 发表于 2011-4-14 12:54:02 | 显示全部楼层
想要这个插件,谢楼主
authicon seesee 发表于 2011-4-19 14:51:09 | 显示全部楼层
这个不错 霸气
authicon yqyq33 发表于 2011-5-6 03:19:29 | 显示全部楼层
很牛叉啊  学习了
authicon 跨线社区 发表于 2011-5-6 11:39:44 | 显示全部楼层
看下,看有没有新鲜。。
authicon hlchzhk 发表于 2011-5-7 14:09:25 | 显示全部楼层
感觉应该是可以用的{:soso_e102:}
authicon zjw0482 发表于 2011-5-7 16:39:09 | 显示全部楼层
{:soso_e101:}
authicon 夕梨二世 发表于 2011-5-7 21:59:44 | 显示全部楼层
这个不错呀
authicon samge_ts 发表于 2011-5-9 07:35:53 | 显示全部楼层
q rhf rhf 我看看~~~{:soso_e102:}
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-5-15 17:11

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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