时间:2016-02-16 19:01 来源: 我爱IT技术网 作者:佚名
欢迎您访问我爱IT技术网,今天小编为你分享的电脑教程之dedeCMS系列教程:【dede文章页面如何显示作者的头像默认只能显示作者用户名】,请阅读以下详细内容!
dede文章页面如何显示作者的头像默认只能显示作者用户名
$query="SELECT * FROM jcode_member WHERE `mid`=".$this->Fields['mid'];
$authorInfo=$this->dsql->GetOne($query);
$this->Fields['authoranme']=$authorInfo['uname'];
$this->Fields['authorface']=$authorInfo['face'];
if(empty($this->Fields['authorface']))
{
$this->Fields['authorface']=($this->authorInfo['sex']=='?')? '../member/templets/images/dfgirl.png' : '../member/templets/images/dfboy.png';
}
$this->Fields['authorface']="<a href='".$GLOBALS['cfg_basehost']."/member/index.php?uid=".$authorInfo['userid']."'><img width='32' height='32' src='".$this->Fields['authorface']."' /></a>";
$this->Fields['authoremail']=$authorInfo['email'];
关于dede文章页面如何显示作者的头像默认只能显示作者用户名的用户互动如下:
相关问题:
答: >>详细
相关问题:
答: >>详细
相关问题:
答: >>详细
- 评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
-
