帝国CMS内容页模板调用当前信息作者会员相关信息的代码和教程
帝国cms模板内容页调用当前会员投稿相关信息,比如发布者名称,发布者头像。只需要在模板相应位置加入对应的代码即可,具体样式可以根据自己实际情况进行修改,当没有上传头像时显示默认头像图片。<?php$userid=$navinfor[us……
<?php$userid=$navinfor[userid];$userinfo=sys_ShowMemberInfo($userid,'');?>当前发布者头像:<arel="nofollow"href="[!--news.url--]e/space/?userid=<?=$userinfo[userid]?>"target="_blank"><imgsrc="<?=$userinfo[userpic]?$userinfo[userpic]:$public_r[newsurl].'e/data/images/nouserpic.gif'?>"></a>当前发布者名称:<arel="nofollow"href="[!--news.url--]e/space/?userid=<?=$userinfo[userid]?>"target="_blank"><?=$userinfo[username]?></a>
会员信息调用ShowMemberInfo函数,格式为:sys_ShowMemberInfo(用户ID,查询字段)。以上就是帝国CMS内容页模板调用当前信息作者会员相关信息的方法。
标签帝国相关信息模板- 上一篇
帝国CMS怎么删除“此栏目暂无任何新增信息”提示文字?
现在常用的建站的程序中,帝国cms比较居多的,还有些其他的也有,但是量级不多,像本站就是使用的帝国cms程序搭建,很多的小伙伴们在使用帝国cms模板搭建网站的时候,会遇到很多的技术问题,像很多的小伙伴们经常问到帝国CMS怎么删
- 下一篇
帝国CMS调用最新DIGG顶的最多的文章
用灵动标签调用调用最新DIGG顶的最多的文章:[e:loop={'select * from [!db.pre!]ecms_news where checked=1 order by diggtop desc,id desc limit 8',10,24,0}]<li><a href="<?=$bqsr[titleurl]?>"><?=sub($bqr[title