Perfectly Integrating WordPress with Discuz

Today I’ll show you how to integrate WordPress with Discuz so users can log into either site without registering two accounts.

Step 1: Log into the Discuz admin panel (with the founder account). Click the “UCenter” menu to log in. Click “Application Management” in the left menu, then click “Add Application”. Choose “Other” as the application type, enter any name, and for the application’s main URL fill in: http://your-WordPress-address/wp-content/plugins/ucenter-integration. Make up a communication key — only English letters and numbers, limited to 64 bytes — and enter it. Enable synchronous login: Yes.

1

Click submit; below it the application’s UCenter configuration info will appear — save it, you’ll need it in a moment.

3

Step 2: Log into the WordPress admin panel and install the Ucenter plugin. Search for and install the Ucenter plugin, enable it, and a “Ucenter” item will appear at the bottom of the WordPress menu. Click “Preset Settings”.

4

It will ask you to enter some parameters — that’s where the UCenter config info you saved earlier goes. Fill in the parameters based on that info, click Update Options. Done — the integration is complete.

Go to the UCenter in the Discuz admin panel and check the application you added — is the communication successful?

Author’s hands-on notes; images and text are copyrighted.