帝国CMS内容页调用当前发布会员
调用当前发布会员信息代码<?php$uid=$navinfor[userid];$userr=sys_ShowMemberInfo($uid,&#39;&#39;);?>当前发布者头像:<arel="nofollow"href="&#091;!--news.url--]e/space/?userid=<?=$userr[userid]?>"target="_bl……
调用当前发布会员信息代码
<?php$uid=$navinfor[userid];$userr=sys_ShowMemberInfo($uid,'');?>当前发布者头像:<arel="nofollow"href="[!--news.url--]e/space/?userid=<?=$userr[userid]?>"target="_blank"><imgsrc="<?=$userr[userpic]?$userr[userpic]:$public_r[newsurl].'e/data/images/nouserpic.gif'?>"></a>当前发布者名称:<arel="nofollow"href="[!--news.url--]e/space/?userid=<?=$userr[userid]?>"target="_blank"><?=$userr[username]?></a>关注当前发布者:<aclass="nr-user-bt"href="[!--news.url--]e/member/friend/add/?fcid=0?<?=$userr[username]?>"target="_blank">关注</a>
用到的会员信息调用标签,ShowMemberInfo函数调用,具体格式说明为:sys_ShowMemberInfo(用户ID,查询字段)
- 上一篇
帝国CMS如何提高缩略图质量
打开e/class/gd.php查找$func_output($temp_image,$new_name.$func_exname);修改为$func_output($temp_image,$new_name.$func_exname,100);红色的100就是缩略图的质量参数,一般默认为75(又或者是80),觉得缩略图质量不够
- 下一篇
帝国CMS内容页点击改变文字号大小
帝国CMS内容页点击改变文字号大小的方法,其实不难的.一、在内容模板的头部里加入下面的代码:<scripttype="text/javascript">functionFontZoom(fsize){varctext=document.getElementById("contents");ctext.style.fontS