帝国CMS列表页怎么调用用户头像和用户名?(帝国CMS列表页调用信息发布者用户名头像的方法!)
帝国CMS列表页怎么调用用户头像和用户名?(帝国CMS列表页调用信息发布者用户名头像的方法!)
很多使用帝国CMS程序建站的朋友,经常会问到帝国CMS列表页怎么调用用户头像和用户名呢?很多朋友不是很明白应该如何去调用,下面帝国MCS模板网就来告诉大家帝国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>';
好了,到这里就完成了,大家自行去测试吧!
本文原文地址:http://www.cnlogo8.com/moban/diguocms/130195.html转载请注明原站地址
热门排行
-
帝国cms网站地图sitemap.xml的制作方法2022年03月07日74
-
帝国CMS怎么提高网页打开速度?(帝国CMS提2022年04月06日52
-
帝国CMS信息提示页美化模板(分享一个帝2022年03月09日49
-
帝国cms列表页调用文章关键词与tag的方2022年03月07日46
-
帝国CMS列表页文章怎么升序降序排列文2022年03月11日43
-
帝国CMS内容模板获取所有分页数和当前2022年04月05日43