• 懒鸟飞:帝国cms模板专业分享平台,新域名:lanniaofei.com

帝国CMS在js登陆模板中调用当前登陆用户的头像!

打开e/data/template/loginiframetemp.txt



$r=$empire->fetch1("select ".eReturnSelectMemberF('userid,username,groupid,userfen,money,userdate,havemsg,checked')." from ".eReturnMemberTable()."
where ".egetmf('userid')."='$myuserid' and ".egetmf('rnd')."='$myrnd' limit 1");

下面添加:

$m=$empire->fetch1("select userpic from {$dbtbpre}enewsmemberadd where userid='$myuserid' limit 1");
$userpic=$m['userpic']?$m['userpic']:$public_r[newsurl].'e/data/images/nouserpic.gif';

在登录状态模板中使用<?=$userpic?>调用会员头像!
 
QQ在线咨询
QQ客服
淘宝官网