Discuz Forum integration ucenter activation-free, synchronous login, synchronous exit solution

Source: Internet
Author: User

First, discuzX1.5 activation modification steps:

1. Register to complete the Insert database, and then log on synchronously

modifying files

The code is as follows Copy Code

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 ']): "; For UC Sync login, registration is free of activation

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 code for output synchronous login

}

Break

Case 2:

ShowMessage (' register_manual_verify ', ' home.php?mod=space&do=home ', $param, Array (' Extrajs ' => $ucsynlogin))  ; UC code for output synchronous login

Break

Default

ShowMessage (' Register_succeed ', Dreferer (), $param, Array (' Extrajs ' => $ucsynlogin));

UC code for output synchronous login

2. Modify

The code is as follows Copy Code

Uploadtemplatedefaultmember register.htm

<!–{template common/header}–>

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

$ucsynlogin

Add output UC Sync login code

3. Modify uploadapiuc.php

Modify method

  code is as follows copy code

function Synlogin ($get, $post) {

{

if{

}

   else{

     & nbsp Add activation code, source code look at file

}

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.