打开/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?>
同理,还可以调用其他任何会员相关的字段
本文转载自:精准像素:11px.cn ,感谢作者分享实用知识