首页 > CMS建站 > 帝国Empire > 正文

帝国cms中JS调用登陆模板

2020-09-12 14:40:17
字体:
来源:转载
供稿:网友

1. 头像调用方法
打开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 phome_enewsmemberadd where userid='$myuserid' limit 1");
if($m['userpic']){
$userrpic=$m['userpic'];
}else{
$userrpic="/e/data/images/nouserpic.gif";
这样就可以了!然后 批量更新动态页面
在JS调用登陆模板中使用<?=$userrpic?>调用会员头像!
 
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表