点击登录
  • 欢迎访问无限星辰技术博客,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏无限星辰吧
  • 好集导航开张了,传送门:好集导航

帝国官方Ajax评论插件显示头像解决方案

帝国CMS知识库 crx349 4189次浏览 0个评论 扫描二维码
帝国官方Ajax评论插件显示头像解决方案
1.编辑/e/extend/infocomment/index.php
搜索:
$query="select plid,saytime,sayip,username,zcnum,fdnum,userid,saytext from {$dbtbpre}enewspl_".$n_r['restb']." where pubid='$pubid' and checked=0";
$query.=" order by plid desc limit $offset,$line";

修改为:
$query="select u.userpic,c.plid,c.saytime,c.sayip,c.username,c.zcnum,c.fdnum,c.userid,c.saytext from {$dbtbpre}enewspl_".$n_r['restb']." c left join {$dbtbpre}enewsmemberadd u on c.userid = u.userid where c.id='$id' and c.classid='$classid' and c.pubid='$pubid' and c.checked=0";

2.将
<img src="<?=$r[userpic]?$r[userpic]:'/e/data/images/nouserpic.gif'?>" border="0" />
代码放到
/e/extend/infocomment/template/index.temp.php
就可以显示头像了

无限星辰 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明帝国官方Ajax评论插件显示头像解决方案!
喜欢 (4)
[]
分享 (0)

您必须 登录 才能发表评论!