简介:帝国6.6/7.0/7.2 JS调用登陆状态模板会员头像调用的简单办法

一、打开e/data/template/loginiframetemp.txt

如果是6.6在
$r=$empire->fetch1("select ".$user_userid.",".$user_username.",".$user_group.","
.$user_userfen.",".$user_money.",".$user_userdate.","
.$user_havemsg.",".$user_checked." from ".$user_tablename." where "
.$user_userid."='$myuserid' and .$user_rnd."='$myrnd' limit 1");
下面 添加
$m=$empire->fetch1("select userpic from {$user_tbpre}enewsmemberadd where
userid='$myuserid' limit 1"); $userpic=$m['userpic']?
$m['userpic']:$public_r[newsurl].'e/data/images/nouserpic.gif';

如果是7.0/7.2在
$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';

二、在JS调用登陆状态模板使用 <?=$userpic?> 调用会员头像

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。