先看一下效果!,
,改造方法如下:,/e/class/t_functions.php 打开这个文件:,找到:,if(empty($r[‘username’])),
{,
$r[‘username’]=’匿名’;,
},在下面增加:,$addr=$empire->fetch1(“select * from {$dbtbpre}enewsmemberadd where userid=’$r[userid]’ limit 1”);, if(empty($r[‘userid’])), {, $r[‘userpic’]=”$addr[userpic]”?$addr[‘userpic’]:$public_r[‘newsurl’].’e/data/images/nouserpic.gif’;, }, if($r[‘userid’]), {, $r[‘userpic’]=”$addr[userpic]”?$addr[‘userpic’]:$public_r[‘newsurl’].’e/data/images/nouserpic.gif’;, },找到:$listtemp=str_replace(“[!–fdnum–]”,$r[‘fdnum’],$listtemp);,下面增加:$listtemp=str_replace(“[!–userpic–]”,$r[‘userpic’],$listtemp);,好了,评论列表调用的标签里用户头像就用[!–userpic–]调用即可了!, ,