打开 "/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);
好了,到这里我们就可以在帝国cms评论列表showplinfo标签里用[!–userpic–]会员头像了!
下面是演示效果:

版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《帝国cms评论列表showplinfo标签调用会员头像userpic的方法》
文章链接:https://www.liuzhanwu.com/3330.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。
文章名称:《帝国cms评论列表showplinfo标签调用会员头像userpic的方法》
文章链接:https://www.liuzhanwu.com/3330.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。
相关推荐
Rank Math 2026黑五优惠:PRO首年$59.88,Rank Math AI $3.99/月起,最高省40%
Rank Math 2026万圣节优惠:PRO版€5.59/月起,最高41%折扣、关键词跟踪额度翻倍
WP Rocket 2026万圣节优惠:年付8折、3年付6折,单站授权$2.97/月起
CubePath GraphQL API 使用教程:统一查询VPS CPU、内存、磁盘及带宽监控数据
Onchaty 云端在线客服:一行 JS 接入网站,支持 AI 自动回复,无需额外部署 VPS
宝塔面板2026年1024程序员节特惠:Linux永久授权2888元起,SSL证书低至5折,企业版赠证书
KVM、OpenVZ、LXC 有什么区别?2026年购买 VPS 如何选择虚拟化技术
Porkbun 10月域名促销:.xyz首年86%优惠,.buzz减免92%,.shop首年$1起
