优晟SEO

您现在的位置是:首页 > CMS教程 > 帝国cms > 正文

帝国cms

帝国cms使登陆状态模板支持调用会员头像

头像   状态   模板  
佚名 2024-08-20帝国cms
打开e/data/template/loginiframetemp.txt 在$r=$empire->fetch1("select ".$user_userid.",".$user_username.",".$user_group.",".$user_userfen.",".$user_money.",".$user_userdate.",".$user_hav……

帝国cms使登陆状态模板支持调用会员头像

打开e/data/template/loginiframetemp.txt 在

$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';

在登录状态模板中使用<?=$userpic?>调用会员头像