How to connect two forums by single Ucenter

A good programmer / admin is who keeps his program simple but not simpler   
and security as high as he can . 

So this post is for those admins who wants to configure his Ucenter to be fetched by two different websites . 

Before writing the steps , 
I'll be thankful to  khalid ( super moderator at codersclub.org ) . 

Note : If you are using something like Discuz (readymade forum script ) then it contains 2 databases by default , But if you are using your own script then you have to create it . 

This tutorial is explained on Discuz ! Script.

Just like you have installed  Ucenter database eg "uc_pre_test" or "ucenter_pre_test" .

1st file you have edit is 
/config/config_ucenter.php  
And 2nd file 
/uc_server/data/config_inc.php  

If you having difficulty to understand above lines , then don't worry just understand the below lines carefully . 


Let 1st forum Ucenter  database name is " ucenter_pre_test " and the 2nd forum Ucenter  database name is "
ucenter_pre_test2 " .

Now you have to use same values for both the databases . 

"" ucenter_pre_test "" or "" ucenter_pre_test ""  Now you have to edit both the config files ..

• ./config/ config_ucenter.php
• ./uc_server/data/config_inc.php 

If you are still having any doubts just comment down , we will happy to help you. 

Comments

Popular posts from this blog

How to hide forum contents from visitors ?

How to add sidebars in each forum?