Log in

View Full Version : How to share user data between 2 vbulletins?


zjs2k
04-29-2005, 07:35 AM
Hello, everyone,

I plan to purchase another license of vBulletin and setup a second forum under the same domain. I would like to have visitors to register only once for both forums. It is ok if they need to login twice, but I want to limit the login process to just one. I prefer to have the users to manage the profiles seperately.

I want to disable the registration of forum2 and force users to register at forum1 only. And when logging in forum2 for the first time, the script should verify user data from forum1. Then copy the user record from forum1 to forum2. From now on, the users should be able to update his/her profile, etc. This is just my idea of doing it. If you have a better idea, please do let me know.

Is this hack possible? I tried to search the forum and I don't even know what to search. The most posts I found were about multiple domains. I want to make sure the feature is possible before I buy a second license.

Any help will be very appreciated.

Jin

Deaths
04-29-2005, 07:45 AM
If you would run the 2 boards on the same server, and you would know the database name, user and password, you could easily edit the register.php file.

If youdont know how to do that, just post here or shoot me a PM.

eXtremeTim
04-29-2005, 12:20 PM
It would take more then doing register.php if he wants it to share post counts and everything else between them.

Deaths
04-29-2005, 01:48 PM
Where did he say that?

eXtremeTim
04-29-2005, 02:07 PM
He stated share user data which could mean more then just the username if he wanted.

That is why I said if. ;)

Deaths
04-29-2005, 07:01 PM
Ah, misread your post :).

zjs2k
04-29-2005, 07:54 PM
Thanks for the quick reply. I don't really need to share other information like post count. If you can point me where in register.php I should edit, it will be great. Do I also need to modify the login.php to check user against forum1 database? Does that mean I will not use the user table in forum2 database? Thanks.

Deaths
04-29-2005, 08:22 PM
If you would want to run the two user fields independantly, only register.php should be modified.

What exactly do you want?

zjs2k
04-29-2005, 08:38 PM
I already have a forum running. I want to start a rolyplaying game section. Basically, someone start a new project/task. Then anyone interested in it will join in and post his/her adventure in the proposed project. And the project starter will evaluate how well (or bad) the others doing.

So the new vbulletin will have little to do with the original forum. I just want to make the registration and login process easier for people so they don't have to do it twice.

zjs2k
05-01-2005, 03:27 AM
After reviewing the register.php file, I think I can better explain what I need here. I do NOT want user to register at forum2. Instead, I require them to login the forum2 with forum1 username and password. Then, if the user doesn't exist in forum2 (meaning this is their first time login forum2), the login script will check the forum1 user data. If the user is valid in forum1, all the required user fields for registration from forum1 will be copied to forum2.

The user may change their profile including email and password in forum2, but the username remain the same in both forum1 and forum2. So a user's identity will be the same.

Can this be done? Or is there any better way to do it? Thank you!