Recently, there's a project on hand that needs to be ucenter with Discuz and uchome, using synchronous login, registration, and using the same user data.
Never used Ucenter, first contact, read the official website of the tutorial feel not difficult. So started, downloaded the discuz! 7.2_full, installation, no difficulty. Then downloaded the Ucenter
Home 2.0 is also installed, in the Ucenter added Ucenter Home, using the URL installation, communication success, very simple to achieve synchronization. Next, add your own app to Ucenter, press
Follow the tutorial using a custom installation to discover that communication failed.
Because it is the first time to use Ucenter, do not understand where the problem is, so the world search for relevant data, countless trials have not found the reason. Helpless under the official website to turn documents, finally find the answer. The original is not online no answer, but I made a mistake too small white ...
Now summarize ucenter Add new app Small white tutorial as follows:
1, determine the new app you want to add the root directory has the Uc_client folder and the client.php, without the words directly to the Discuz or Uchome root directory under the copy past
2. Make sure you have config.inc.php in the new app root you want to add, and make sure that the configuration parameters match the parameters that are automatically generated after you add the new app, or copy the auto-generated part directly.
3, determine the new app you want to add the root directory has api/uc.php, not the same to copy a
4. Check whether the file path in the api/uc.php file is correct, whether include or require
After the above steps are basically no problem, and then the problem is not a small white problem.
The lesson of blood, write this article to remember ~
Ucenter adding new apps