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

前端之家收集整理的这篇文章主要介绍了帝国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>';


猜你在找的帝国CMS相关文章