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

 找回密码
 立即注册
搜索

[已解决] 手动修改----主题列表显示作者头像

[复制链接]
poosou 发表于 2009-9-25 12:26:17 | 显示全部楼层 |阅读模式
本帖最后由 poosou 于 2009-9-25 12:27 编辑

演示见:www.0755hot.com.cn修改templates/default/forumdisplay.htm
  1. <td class="author">

  2.                                                         <cite>

  3.                                                         <!--{if $thread['authorid'] && $thread['author']}-->

  4.                                                                 <a href="space.php?uid=$thread[authorid]">$thread[author]</a>

  5.                                                         <!--{else}-->

  6.                                                                 <!--{if $forum['ismoderator']}-->

  7.                                                                         <a href="space.php?uid=$thread[authorid]">{lang anonymous}</a>

  8.                                                                 <!--{else}-->

  9.                                                                         {lang anonymous}

  10.                                                                 <!--{/if}-->

  11.                                                         <!--{/if}-->

  12.                                                         </cite>

  13.                                                         <em>$thread[dateline]</em>

  14.                                                 </td>
复制代码
替换为:
  1. <td class="author">

  2.                     <div style="float:left;width:28px;padding-top:4px;">

  3.                                                                                                   <img src="http://你的UC地址/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;" />

  4.                                                                                 </div>

  5.                     <div style="float:left;padding:2px 0px 0px 6px;">

  6.                       <cite>

  7.                                         <!--{if $thread['authorid'] && $thread['author']}-->

  8.                                                 <a href="space.php?uid=$thread[authorid]">$thread[author]</a>

  9.                                         <!--{else}-->

  10.                                                 <!--{if $forum['ismoderator']}-->

  11.                                                         <a href="space.php?uid=$thread[authorid]">{lang anonymous}</a>

  12.                                                 <!--{else}-->

  13.                                                         {lang anonymous}

  14.                                                 <!--{/if}-->

  15.                                         <!--{/if}-->

  16.                                         </cite>

  17.                                         <em>$thread[dateline]</em>

  18.                                               </div>

  19.                                               </td>
复制代码
还要修改:templates/default/css_common.htm

在最下面加上
  1. td.author { width: 150px; text-align: left; }
复制代码
另外:手动修改首页横排美化请看https://discuz.dismall.com/thread-1425412-1-1.html
回复

使用道具 举报

zookings 发表于 2009-9-25 12:27:07 | 显示全部楼层
要改代码。。我那么菜。。不敢改((em:07))
回复

使用道具 举报

宝宝逢真朋 发表于 2009-9-25 12:30:51 | 显示全部楼层
((em:17))楼主 网站咋了 进不去了
回复

使用道具 举报

 楼主| poosou 发表于 2009-9-25 12:33:49 | 显示全部楼层
网站能进啊!怎么不能进啊
回复

使用道具 举报

itmgl2007 发表于 2009-9-25 12:34:52 | 显示全部楼层
((em:08))((em:08)) 做记号
回复

使用道具 举报

sunhai520 发表于 2009-9-25 14:35:05 | 显示全部楼层
此作者的所有帖子演示站--一塌糊涂
回复

使用道具 举报

 楼主| poosou 发表于 2009-9-25 18:00:17 | 显示全部楼层
现在好了!网站启动
回复

使用道具 举报

blchenhai 发表于 2009-10-18 14:40:09 | 显示全部楼层
谢谢楼主提供,非常好的美化。
回复

使用道具 举报

真的动了心 发表于 2009-10-18 15:17:02 | 显示全部楼层
很8错。((em:08))
回复

使用道具 举报

xhnet 发表于 2009-12-11 19:02:32 | 显示全部楼层
■■主题列表添加作者头像美化并作者添加指向UCH个人空间■■

https://discuz.dismall.com/thread-1511807-1-1.html

这个要比楼主的那个更有吸引力!!!!
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-16 17:31 , Processed in 0.106030 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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