Add new application to ucenter

Source: Internet
Author: User

Recently, a project on hand needs to integrate ucenter with discuz and uchome, and use the same user data for Synchronous login and registration.

I have never used ucenter before. The first time I came into contact, it was not difficult to read the tutorials on the official website. So I started to download discuz! 7.2_full, installation, no difficulty. Then download the ucenter

Home 2.0 is also installed. ucenter home is added to ucenter, And the URL is used for installation. The communication is successful and synchronization is implemented easily. Next, add your application to the ucenter, and press

Use custom installation as instructed in the tutorial to discover communication failure.

Because it was the first time to use ucenter and I didn't understand what the problem was, I searched the world for relevant information and found no reason for countless experiments. In desperation, I finally found the answer through the documentation on the official website. It turns out that there is no answer on the Internet, but the mistake I made is too small ......

The following is a summary of the ucenter add new application Tutorial:

1. Make sure that the new application root directory you want to add contains the uc_client folder and its client. php. If not, directly copy the file under the discuz or uchome root directory.

2. Make sure that the new application root directory you want to add contains config. inc. PHP, and make sure that the configuration parameters are consistent with the automatically generated parameters after you add the new application, or directly copy the automatically generated part

3. Make sure that the new application root directory you want to add contains APIs/UC. php. If not, copy one

4. Check whether the file path of include or require in the API/UC. php file is correct.

After completing the above steps, there is basically no problem. If there is a problem, it is probably not a problem.

Lessons learned from blood, write this article to keep in mind ~

 

Go to http://blog.163.com/?email protected]/blog/static/1398240612010101855623646/

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.