帝国cms列表页调用用户发布者的用户名头像

admin 2024年1月14日20:16:07帝国cms技巧评论1,175 次浏览阅读模式

内容摘要

$uid=$empire->fetch1("select * from {$dbtbpre}enewsmemberadd where userid={$r[userid]}");if(empty($uid[userpic])){$uid[userpic]='/e/data/images/nouserpic.gi

文章正文

$uid=$empire->fetch1("select * from {$dbtbpre}enewsmemberadd where userid={$r[userid]}");
if(empty($uid[userpic])){$uid[userpic]='/e/data/images/nouserpic.gif';} $newimg='';$newim='';
if($r[ismember]==0){$newimg='admin';$newim=' <img src="'.$uid[userpic].'"    />';}
else  if($r[ismember]==1){$newimg='<a href="/e/space/?username=admin" target="_blank">admin</a>';
$newim='<a href="/e/space/?username=admin" target="_blank"><img src="'.$uid[userpic].'"    /></a>';}
$listtemp='<p class="Image_text">'.$newim.'</p> <p class="user_name">'.$newimg.'</p>';

代码注释

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2024年1月14日20:16:07
  • 转载请务必保留本文链接:https://anyun.org/a/webtips/ecmstips/2024/0114/17914.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: