How to integrate communication between CMS and Discuzucenter pass interface

Source: Internet
Author: User
There are two ways to integrate diguo CMS Discuz: Method 1: integrate with the Ucenter interface. Using Ucenter interface integration does not require the installation of pass and universal member interfaces. Method 2: integrate with the Discuz pass interface. You must first install the universal membership interface and then install the pass. Ucenter interface and Discuz pass: http://www.phome.net/Open Empire CMS integration Discuz there are two ways:
Method 1: integrate with the Ucenter interface. Using Ucenter interface integration does not require the installation of pass and universal member interfaces.
Method 2: integrate with the Discuz pass interface. You must first install the universal membership interface and then install the pass.

Ucenter interface and Discuz pass: http://www.phome.net/OpenSource/

I have previously explained the Ucenter interface integration tutorial (click to view details). today I will explain how to integrate the Discuz pass interface:
Step 2: install the CMS Universal member interface
(1) upload the "update" directory in the Universal member interface package to the "e" Directory of the CMS (including the update directory itself ).

Copy to the e Directory of the CMS:

(2) run the/e/update/index. php file and enter the interface settings interface to set parameters:
Interface example: Select Discuz Forum
Operation: Select the installation interface
User table: Discuz database. table prefix members, for example, "database. cdb_members"
Member registration address: Enter the registration address of Discuz, for example, http: // localhost/Discuz/Register. php
Member Login address: Enter the login address of Discuz, for example, http: // localhost/discuz/logging. php? Action = login
Member exit address: Enter the exit address of Discuz, for example, http: // localhost/discuz/logging. php? Action = logout

After setting, click submit and you will be prompted to integrate the universal membership interface.

(3) delete files in the e/update directory. Prevent malicious settings.

Step 2: upload the files in the pass interface package to the Discuz Forum directory.
Upload the "logging. php", "LoginDiscuz. php", and "register. php" files in the pass interface to the Discuz Directory:

Copy to the Discuz Forum directory:

Step 2: modify the pass configuration file: LoginDiscuz. php
Modify the LoginDiscuz. php file configuration in the Discuz Forum directory:

CMS installation directory parameters: (add/next to the Discuz installation directory /)
$ EcmsInstallPath: sets the CMS installation directory.
Example: Example 1:
CMS installation directory: D:/web/ecms
Discuz installation directory: D:/web/discuz
Because the CMS is installed in the ecms Directory of the upper-level directory of discuz. Therefore, $ EcmsInstallPath = "../ecms /";

Example 2:
CMS installation directory: D:/web/
Discuz installation directory: D:/web/discuz
Because the CMS is installed in the upper-level directory of discuz. Therefore, $ EcmsInstallPath = "../";

Example 3:
CMS installation directory: D:/web/discuz/ecms
Discuz installation directory: D:/web/discuz
Because the CMS is installed in the ecms Directory of the discuz subdirectory. Therefore, $ EcmsInstallPath = "ecms /";

COOKIE setting parameters (the Discuz and Empire CMS do not need to be modified under the same domain name; otherwise, the settings do not need to be modified)
$ EcmsCookieDomain: cookie scope
$ EcmsCookiePath: cookie action path
For example, if:
Empire CMS installation domain name: http://www.xxx.com
Discuz Forum domain name: http://bbs.xxx.com
Because the domain name is different, you need to modify the COOKIE settings as follows:
$ EcmsCookieDomain = ".xxx.com ";
$ EcmsCookiePath = "/";

Account COOKIE retention time parameter during member registration (no need to modify, default)
$ EcmsRegLogintime

Step 2: Now, the Discuz pass interface has been integrated.

Step 2: modify the login form of the CMS to the login form of Discuz.
Log on to the CMS background> "Template management"> "public template"> "modify JS call login template": modify the template to the following:
[! -- Empirenews. template --]
»[! -- Username --][! -- Groupname --] [! -- Havemsg --] My Space short message favorites control panel exited

Note: (the red part needs to be modified)
Discuz forum address: set your Discuz forum access address, such as: "http://www.xxx.com/bbs ".

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.