The setting method is as follows:
Modify/do/config. php on this site (qibo system:/data/uc_config.php)
Similar to the followingCodeDelete first
Define ('uc _ connect ', 'mysql ');
Define ('uc _ dbhost', 'localhost ');
Define ('uc _ dbuser', 'root ');
Define ('uc _ dbpw ', 'sohu ');
Define ('uc _ dbname', 'dz7 ');
Define ('uc _ dbcharset', 'gbk ');
Define ('uc _ dbtablepre', ''dz7'. UC _');
Define ('uc _ dbconnect ', '0 ');
Define ('uc _ key', 'e8bfoohm9qc01rlinsajisiwpdvtwtq83ymbvgo ');
Define ('uc _ api', 'HTTP: // localhost/dz7/uc ');
Define ('uc _ charset', 'gbk ');
Define ('uc _ ip ','');
Define ('uc _ appid ', '5 ');
Define ('uc _ PPP ', '20 ');
1. Go to the UC management background, click 'application management', click 'add new application', and select 'custom installation'
Application name: Enter php168 on-site system
URL of the application: Enter http: // website domain name/do (the end does not need a/number, and note that it is the end of DO)
Application IP Address: leave it blank.
Communication Key: write one at will, such as 123 abcdkjhh.
Application Type: Select 'additional
Physical path of the application: leave it blank.
View personal data page address: leave it blank
Application interface file name: UC. php
Single tag display template: leave it blank
Tag template tag Description: leave it blank.
Whether to enable synchronous Logon: Select "yes'
Accept notification: Select "yes'
Finally, submit the application, and then return to the Application List. Then, select the application you just submitted and click Edit.
Copy the code in 'application ucenter configuration information: 'and put it in the second line of the whole site/do/config. php.
2. The preceding settings are for UC, and the next step is to set the integration settings with the Forum, go to the whole site background, and click 'integrate other system'
Then select 'integrate discuz Forum 7.x'
Then, set each item in it.
========================================================== =
NOTE: If your DZ forum is installed with the integrated version of UC, you may not be able to see the <ucenter configuration information> in the UC background. This is more troublesome.
Go to the Forum directory and find the config. Inc. php file to view the file. The following code is displayed.
Define ('uc _ connect ', 'mysql ');
Define ('uc _ dbhost', 'localhost ');
Define ('uc _ dbuser', 'root ');
Define ('uc _ dbpw ', 'sohu ');
Define ('uc _ dbname', 'dz ');
Define ('uc _ dbcharset', 'gbk ');
Define ('uc _ dbtablepre', 'dz'. cdb_uc _');
Define ('uc _ dbconnect ', '0 ');
Define ('uc _ key', 'hangzhou ');
Define ('uc _ api', 'HTTP: // localhost/DZ/uc_server ');
Define ('uc _ charset', 'gbk ');
Define ('uc _ ip', '2017. 0.0.1 ');
Define ('uc _ appid ', '1 ');
Define ('uc _ PPP ', '20 ');
Copy them out. Note that do not copy the above Code. The above code is an example. Copy the code in the Forum file. then, modify the two items, and the other items do not need to be modified. The entire site Communication Key. the whole site ID needs to be viewed in 'application management' on the UC background.
Define ('uc _ key', 'communication key' of the whole station ');
Define ('uc _ appid ', 'whole site id ');
Others are the same.
And put it in the entire site directory.
The following code must be added to the header of the/do/config. php file: