打开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?>调用会员头像!