discuz论坛整合ucenter免激活,同步登录,同步退出解决方案
discuz论坛整合ucenter免激活,同步登录,同步退出解决方案
发布时间:2016-12-26 来源:查字典编辑
摘要:discuz论坛整合ucenter免激活,同步登录,同步退出解决方案一、discuzX1.5免激活修改步骤:1.注册完成插入数据库后,进行同...

discuz论坛整合ucenter免激活,同步登录,同步退出解决方案一、discuzX1.5免激活修改步骤:

1. 注册完成插入数据库后,进行同步登录

修改文件uploadsourcemodulemembermember_register.php

$_G['setting']['lastmember'] = $username;

save_syscache(‘setting’, $_G['setting']);

$_G['setting']['regverify'] = $regverify;

$ucsynlogin = $_G['setting']['allowsynlogin'] ? uc_user_synlogin($_G['uid']) : ”; //进行UC同步登录,注册免激活

if(!empty($_G['inajax'])) {

$_G['setting']['msgforward'] = unserialize($_G['setting']['msgforward']);

$mrefreshtime = intval($_G['setting']['msgforward']['refreshtime']) * 1000;

if(!empty($_G['inajax'])) {

include template(‘member/register’);

} else {

showmessage(‘profile_email_verify’, ”, $param, array(‘extrajs’ => $ucsynlogin)); //输出同步登录的UC代码

}

break;

case 2:

showmessage(‘register_manual_verify’, ‘home.php?mod=space&do=home’, $param, array(‘extrajs’ => $ucsynlogin)); //输出同步登录的UC代码

break;

default:

showmessage(‘register_succeed’, dreferer(), $param, array(‘extrajs’ => $ucsynlogin)); ////输出同步登录的UC代码

2. 修改uploadtemplatedefaultmember register.htm

<!–{template common/header}–>

<!–{if !empty($message)}–>

$ucsynlogin //添加输出UC同步登录代码

3. 修改uploadapiuc.php

修改方法function synlogin($get, $post) {

{

If{

}

Else{

添加免激活代码,源代码看文件

}

}

discuzX15uc_jb51.rar

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新discuz学习
热门discuz学习
CMS教程子分类