位置:- 正文

帝国cms实现会员注册之后根据所在会员组转向的方法(帝国cms会员发布信息数量)

编辑:rootadmin
这篇文章主要为大家介绍了帝国cms实现会员注册之后根据所在会员组转向的方法,对于开发会员系统来说非常有借鉴价值,需要的朋友可以参考下

推荐整理分享帝国cms实现会员注册之后根据所在会员组转向的方法(帝国cms会员发布信息数量),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:帝国cms会员修改密码去掉邮箱验证,帝国cms会员中心美化,帝国cms实现会员服务,帝国cms会员中心,帝国cms实现会员服务,帝国cms会员中心模板,帝国cms会员中心,帝国cms会员中心,内容如对您有帮助,希望把文章链接给更多的朋友!

帝国cms要实现会员注册之后根据所在会员组转向的能能,就需要修改/e/member/class/member_registerfun.php文件

帝国cms实现会员注册之后根据所在会员组转向的方法(帝国cms会员发布信息数量)

找到第175行,修改成如下代码:

代码如下:

//审核if($checked==0){$location=DoingReturnUrl("../../",$_POST['ecmsfrom']);printerror("RegisterSuccessCheck",$location,1);}$logincookie=0;if($ecms_config['member']['regcookietime']){$logincookie=time()+$ecms_config['member']['regcookietime'];}$r=$empire->fetch1("select ".eReturnSelectMemberF('*')." from ".eReturnMemberTable()." where ".egetmf('userid')."='$userid' limit 1");$set1=esetcookie("mlusername",$username,$logincookie);$set2=esetcookie("mluserid",$userid,$logincookie);$set3=esetcookie("mlgroupid",$groupid,$logincookie);$set4=esetcookie("mlrnd",$rnd,$logincookie);//验证符qGetLoginAuthstr($userid,$username,$rnd,$groupid,$logincookie);//登录附加cookieAddLoginCookie($r);if($groupid==1){$location="地址1";}elseif($groupid==2){$location="地址2";}$returnurl=getcvar('returnurl');if($returnurl&&!strstr($returnurl,"e/member/iframe")&&!strstr($returnurl,"e/member/register")&&!strstr($returnurl,"enews=exit")){$location=$returnurl;}$set5=esetcookie("returnurl","");//易通行系统DoEpassport('reg',$userid,$username,$truepassword,$salt,$email,$groupid,$registertime);$location=DoingReturnUrl($location,$_POST['ecmsfrom']);printerror("RegisterSuccess",$location,1);}else{printerror("DbError","history.go(-1)",1);}}?>

推荐学习《帝国cms教程》

其中的:

代码如下:

if($groupid==1){$location="地址1";}elseif($groupid==2){$location="地址2";}

即为添加的跳转代码。

本文链接地址:https://www.jiuchutong.com/zhishi/313075.html 转载请保留说明!
下一篇链接:https://www.jiuchutong.com/zhishi/313076.html
免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络