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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] 【X1】主题列表添加作者头像美化,不信你不要

[复制链接]
归去如风 发表于 2010-6-26 20:46:51 | 显示全部楼层 |阅读模式
插件发布
插件名称: 主题列表添加作者头像美化
插件来源:
适用版本: Discuz! X1
语言编码: GBK简体 
最后更新时间:
插件作者: 体无完肤
插件简介: 版块内主题列表增加作者头像;
只需修改forumdisplay_list.html文件,无需再动css文件;
详细演示参照本站。
1、打开template/default/forum/forumdisplay_list.html文件,查找:
  1. <cite>
  2.                                                         <!--{if $thread['authorid'] && $thread['author']}-->
  3.                                                                 <a href="space.php?uid=$thread[authorid]">$thread[author]</a>
  4.                                                         <!--{else}-->
  5.                                                                 <!--{if $forum['ismoderator']}-->
  6.                                                                         <a href="space.php?uid=$thread[authorid]">{lang anonymous}</a>
  7.                                                                 <!--{else}-->
  8.                                                                         {lang anonymous}
  9.                                                                 <!--{/if}-->
  10.                                                         <!--{/if}-->
  11.                                                         </cite>
  12.                                                         <em>$thread[dateline]</em>
复制代码
替换为:
  1. <style>td.author { width: 150px; text-align: left; }</style><div style="float:left;width:28px;padding-top:4px;">
  2. <img src="http://www.wokuclub.com/uc_server/avatar.php?uid=$thread[authorid]&size=small" class="ava_border" width="25px" height="25px" style="border:1px solid #ccc; padding:2px; margin:0px; background-color:#fff;" />
  3. </div>
  4. <div style="float:left;padding:2px 0px 0px 6px;">
  5. <cite>
  6. <!--{if $thread['authorid'] && $thread['author']}-->
  7. <a href="space.php?uid=$thread[authorid]">$thread[author]</a>
  8. <!--{else}-->
  9. <!--{if $forum['ismoderator']}-->
  10. <a href="space.php?uid=$thread[authorid]">{lang anonymous}</a>
  11. <!--{else}-->
  12. {lang anonymous}
  13. <!--{/if}-->
  14. <!--{/if}-->
  15. </cite>
  16. <em>$thread[dateline]</em>
  17. </div>
复制代码
注意,里面的头像是从UC里面获得,自己使用时候要将里面的http://www.wokuclub.com/uc_server这个UC地址替换称自己UC的地址;
如果不知道自己UC地址,打开自己论坛,在某个会员头像上右键 -- 属性,即可查看到UC地址!

2、修改后上传,更新论坛缓存!

演示图片:

本帖子中包含更多资源

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

x
gooker 发表于 2010-6-27 00:41:48 | 显示全部楼层
看了一遍原文不懂
回复

使用道具 举报

web_1000 发表于 2010-6-27 00:52:20 | 显示全部楼层
不错 强烈支持楼主 http://www.9ilh.com/forum.php
回复

使用道具 举报

sunhai520 发表于 2010-6-28 21:45:35 | 显示全部楼层
看了演示图 好象不是很完美 名字自动排列2行 有点不好看
回复

使用道具 举报

1youcheng 发表于 2010-7-13 13:35:00 | 显示全部楼层
再美化下吧
回复

使用道具 举报

1G空间100元 发表于 2010-7-13 14:12:23 | 显示全部楼层
在美化一下就更好看了
回复

使用道具 举报

HuaiBoY 发表于 2010-7-23 12:34:59 | 显示全部楼层
主题列表行距。。。。
回复

使用道具 举报

cotty 发表于 2010-7-23 15:55:47 | 显示全部楼层
貌似不行哦...
回复

使用道具 举报

lin_hui_5 发表于 2010-7-23 15:57:53 | 显示全部楼层
是怎么美化??????????
回复

使用道具 举报

oneday_A 发表于 2010-7-23 17:08:52 | 显示全部楼层
期待能把名字改成一行
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-16 23:52 , Processed in 0.111539 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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