帝国二次开发JS调用登陆模板调用会员头像
2019-04-16 站长 站长日志
打开/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");
修改成
$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/user.jpg';
在JS调用登陆模板使用
<?=$userpic?>
同理,还可以调用其他任何会员相关的字段