找回密码
 注册
查看: 3734|回复: 2
收起左侧

帖子列表主题显示头像FOR7.5

[复制链接]

5312

主题

8317

帖子

1万

积分

管理员

出售国内外虚拟空间

Rank: 10Rank: 10Rank: 10

积分
14660
帖子
8317
精华
67
体力
14660 点
蓝豆
2391 点
注册时间
2007-6-8

终身成就奖LY官方团队会员身份ID卡

发表于 2009-10-10 14:11:51 | 显示全部楼层 |阅读模式
打开template\\wind\\thread.htm
查找
  1. foreach($threaddb as $key => $thread){
复制代码

在下面添加
  1. //主题作者头像
  2. $tufid=$thread[authorid];
  3. require_once(R_P.require/showimg.php);
  4. $userdb = $db->get_one("SELECT uid,icon FROM pw_members where uid=$tufid");
  5. $userface = str_replace("<img ","<img width=30px height=30px ",showfacedesign($userdb[icon]));
  6. //主题作者头像
复制代码

查找
  1. <td class="tal y-style"><a href="u.php?action=show&uid=$thread[authorid]" class="bl">$thread[author]</a>
  2. <div class="f10 gray">$thread[postdate]</div></td>
复制代码

替换为
  1. <td class="tal y-style">
  2. <div style="float:left; width:30; margin-top:3x;">$userface</div>
  3. <div style="float:right; width:85px; text-align:left">
  4. <a href="u.php?action=show&uid=$thread[authorid]" class="bl">$thread[author]</a>
  5. <div class="f10 gray">$thread[postdate]</div>
  6. </div>
  7. </td>
复制代码
出售国内或美国高性能虚拟空间,高速VPS以及服务器! 同时承接各种类型的网站制作,网站维护,支付宝交易安全放心!    联系QQ:6102031
懒得打字嘛,点击右侧快捷回复
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

网站公告上一条 /2 下一条

GMT+8, 2024-4-23 22:39 , Processed in 0.125000 second(s), 24 queries , Gzip On.

© 2006-2022 Powered by Discuz! X3.4

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