帝国CMS列表页调用信息发布者用户名头像
2022-07-04
帝国CMS列表页调用信息发布者用户名头像的方法。我们一起来看看吧:
调用标签如下:(大家自行套用模板就行)
$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='[!--username--]';
$newim=' <img src="'.$uid[userpic].'" />';
}
else if($r[ismember]==1)
{
$newimg='<a href="/e/space/?username=[!--username--]" target="_blank">[!--username--]</a>';
$newim='<a href="/e/space/?username=[!--username--]" target="_blank"><img src="'.$uid[userpic].'" /></a>';
}
$listtemp='<p class="Image_text">'.$newim.'</p> <p class="user_name">'.$newimg.'</p>'; 声明:模库网 (www.mokuw.com) 内容来自分享和网络收集,仅供学习与参考测试请备份。 转载请注明本文地址,如有侵权请联系我们!
本文地址:/study/485.html
本文标题:帝国CMS列表页调用信息发布者用户名头像


