帝国cms实现会员注册之后根据所在会员组转向的方法
这篇文章主要为大家介绍了帝国cms实现会员注册之后根据所在会员组转向的方法,对于开发会员系统来说非常有借鉴价值,需要的朋友可以参考下帝国cms要实现会员注册之后根据所在会员组转向的能能,就需要修改/e/member/clas……
这篇文章主要为大家介绍了帝国cms实现会员注册之后根据所在会员组转向的方法,对于开发会员系统来说非常有借鉴价值,需要的朋友可以参考下
帝国cms要实现会员注册之后根据所在会员组转向的能能,就需要修改/e/member/class/member_registerfun.php文件
找到第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);}}?>其中的:复制代码代码如下:if($groupid==1){$location="地址1";}elseif($groupid==2){$location="地址2";}
即为添加的跳转代码。
- 上一篇
帝国CMS实现搜索结果显示页关键字高亮的方法
这篇文章主要为大家介绍了帝国CMS实现搜索结果显示页关键字高亮的方法,需要的朋友可以参考下帝国CMS默认的搜索结果页面没有关键字高亮效果,对此用户体验并不理想!本文讲述了帝国CMS实现搜索结果显示页关键字高亮的方法
- 下一篇
帝国cms相关链接无内容时调用当前栏目最热信息的方法
这篇文章主要为大家分享下帝国cms相关链接无内容时调用当前栏目最热信息的方法,需要的朋友可以参考下帝国cms相关链接,这里以帝国cms 7.0为例具体代码 在/e/class/functions.php$keyboardtext='<?=GetKeyboard($ecms_gr