蓝雨 发表于 2009-10-10 14:11:51

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

打开template\\wind\\thread.htm
查找
foreach($threaddb as $key => $thread){


在下面添加
//主题作者头像
$tufid=$thread;
require_once(R_P.require/showimg.php);
$userdb = $db->get_one(\"SELECT uid,icon FROM pw_members where uid=$tufid\");
$userface = str_replace(\"<img \",\"<img width=30px height=30px \",showfacedesign($userdb));
//主题作者头像


查找

<td class=\"tal y-style\"><a href=\"u.php?action=show&uid=$thread\" class=\"bl\">$thread</a>
<div class=\"f10 gray\">$thread</div></td>


替换为
<td class=\"tal y-style\">
<div style=\"float:left; width:30; margin-top:3x;\">$userface</div>
<div style=\"float:right; width:85px; text-align:left\">
<a href=\"u.php?action=show&uid=$thread\" class=\"bl\">$thread</a>
<div class=\"f10 gray\">$thread</div>
</div>
</td>
页: [1]
查看完整版本: 帖子列表主题显示头像FOR7.5