Project Integration Discuz Ucenter, integrated discuzucenter_php tutorials

Source: Internet
Author: User
Tags api manual

Project Integration Discuz Ucenter, integrated Discuzucenter


Although individuals very dislike discuz, but no way, the market is power, especially for the integration of DISCUZ forum friends, if you do not want to use two sets of systems, integration ucenter is inevitable, although uninteresting, but have to do so.

First, the preparatory work

1, the UC API manual, read through the full text. Reference http://faq.comsenz.com/library/UCenter/introduction/introduction_list.htm

2, the UC background add application notes. Reference http://faq.comsenz.com/viewnews-506 (official) http://wenku.baidu.com/view/3790fdd7195f312b3169a588.html (grassroots)

3, the UC client client necessary code, download here

Ii. examples

Although it seems that the above preparatory work is enough, but experience tells us, no, is not enough. Discuz is not Zend frame, dedecms, ci these plain water things, not a little research spirit and love toss temperament is unable to understand its profound connotation, not to harness it. To achieve success, we need to have a detailed description of the text, but also need to be equipped with the necessary pictures, although with these you may not be able to succeed.

Look at my project structure first.

TANAHK is the real project address, x3.2 is my discuz forum file, open it

Can see this discuz x3.2 is already integrated ucenter, where Uc_server is the server, Uc_client is the client, uc_client this file folder in Discuz x, Discuz home, Discuz Xspace and other products are already bundled well. But in my TANAHK project has not been added, according to the previous reference material, it must exist in each project, so we put the preparation work 3rd under the Developguide.zip in the client copy to Tanahk below, and named API

Because the Ucenter app defaults to finding the api/uc.php file, the client folder must be renamed API. Go back to the Developguide.zip package, open the api/uc.php below and copy it to Tanahk/api below.

The directory structure of the TANAHK becomes

OK, now we can add our project application in the Ucenter background. The background of UC is generally http://www.xxx.com/x3.2/uc_server/admin.php

Select "App Management"--"Add new app"

Refer to the above preparatory work in 2.

Application Type: Other
Communication key: Find Discuz root/config/confgi_ucenter.php inside the key, define (' Uc_key ', ' ... 124sdf45s4d5fsd4f5s4. ');d iscuz root is your UC directory.
Applied physical path: can be empty as long as the application master URL is filled in correctly
Application interface file name: Keep uc.php, do not fill api/uc.php
Whether to open Sync login: Yes, this is the key, after a number of projects to share a UC on the line, do not have to create a new set of user system.
Submit.


Ecshop,ucenter,discuz Integration Issues

Ecshop discuz Ucenter Integration

1. Installing Ucenter
2. Install Discuz. Integrated with Ucenter during installation, no need for me to do anything

3. Install ecshop Copy the uc_client to the root directory (the uc_client in the Ucenter installation file). Then copy the configuration to the data/config.php
Define (' Uc_connect ', ' MySQL ');
Define (' uc_dbhost ', ' localhost ');
Define (' Uc_dbuser ', ' root ');
Define (' Uc_dbpw ', ' root ');
Define (' Uc_dbname ', ' ucenter ');
Define (' Uc_dbcharset ', ' UTF8 ');
Define (' Uc_dbtablepre ', ' ucenter '. uc_ ');
Define (' Uc_dbconnect ', ' 0 ');
Define (' Uc_key ', ' 1234567890 ');
Define (' Uc_api ', ' localhost/ucenter/upload ');
Define (' Uc_charset ', ' utf-8 ');
Define (' Uc_ip ', ' 127.0.0.1 ');
Define (' Uc_appid ', ' 3 ');
Define (' uc_ppp ', ' 20 ');

A successful communication was found in the ucenter background. Then install the Ucenter installation in Ecshop to see if the settings and Ucenter are consistent and basic should be possible. Now my discuz and ecshop can log in simultaneously.

php168 how to integrate Ucenter,discuz and Ucenter home

installed 168 in the install Ucenter in Go ucenter add Application

(1). Into the UC Admin background, click on ' app Management ', then ' Add new app ', then ' Custom Install '
App name: input PHP168 whole station System
Applied URL: Enter HTTP//site domain name/do (end does not need/number, and note is Do end)
Application IP: Leave blank
Communication key: Write one, like 123ABCDKJHH
Application type: Select ' Other
app's physical path: leave blank to
View profile page address: Leave it blank
Apply interface file name: uc.php
Label single display template: Leave blank
Label template tag Description: Leave it blank to
Open Sync login: Select ' Yes '
whether to accept notifications: Select ' Yes '
to submit the last commit, and then return to the app list. Then select the app that you just submitted and click Edit.
The ' Application ucenter configuration information: ' Inside the code copied out, put in the whole station/do/config.php the second line can be.
then integrate Discuz and home via Ucenter
 

http://www.bkjia.com/PHPjc/838912.html www.bkjia.com true http://www.bkjia.com/PHPjc/838912.html techarticle Project Integration Discuz ucenter, integration Discuzucenter Although individuals do not like discuz, but no way, the market is power, especially for the integration of DISCUZ forum friends, if you do not want to use ...

  • Related Article

    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.