PDA

View Full Version : Same User on Two Forums


genmud
02-12-2005, 04:23 PM
Well, This is what I am wondering on...

I was wondering if there is a hack that allows two COMPLETLY differentforums(like different installs) to use the same user logins & usergroups...

I am planning on buying two vB licenses for two different sites... Onethat would be hardware, software... computer related. Then i would wantanother site that would be for politics, chatting etc. but i would onlywant them to register once, because a majority of the members would beregistered on both forums...

I think this would be a moderate difficulty hack.

Durtay
02-12-2005, 07:08 PM
I was looking for a hack just like this. I searched the forums and found nothing like it. I need it for 3 forums, but I'm sure once the initial hack is created, all that would be needed is the additional forum's information. Hopefully someone can create this.

Adrian Schneider
02-12-2005, 10:09 PM
I'd imagine you just set the database to the one you want to share.

trackpads
02-12-2005, 10:25 PM
coulndt, not if you planned on having seperate forums etc. I asked about this a while back and the basic answer is 'no' or 'not without a serious amount of hacking'.

What I am using is the Storytellery software: http://www.esselbach.com/ . It allows you to have up to 99 websites using the same vbulletin members database. each can have its own forums etc.

-Jason

Murphinator
02-12-2005, 10:31 PM
well youd have to make a cron job that imported the users say every minute.

trackpads
02-12-2005, 10:54 PM
well youd have to make a cron job that imported the users say every minute.
Still wouldnt work because one of the sites (the one that is importing) would be getting new members and their would be conflicts. What you would end up with is 3 different user tables.

FASherman
02-12-2005, 11:43 PM
I'll give you a hint on how to make this work.

1. 2 VB sites sharing 1 DB
2. Create all your forums. Doesn't matter on which site, they'll both see it.
3. Create 2 public groups, one for each site.
4. For Site A forums, user must be a member of Group A to view.
5. For Site B forums, user must be a member of Group B to view.
6. Now hack the code so that if user is logged into site A, user is a member of Group A but not Group B. If logged into Site B, user is a member of Group B but not A.

Its really not that major a hack.

Durtay
02-13-2005, 12:15 AM
I'll give you a hint on how to make this work.

1. 2 VB sites sharing 1 DB
2. Create all your forums. Doesn't matter on which site, they'll both see it.
3. Create 2 public groups, one for each site.
4. For Site A forums, user must be a member of Group A to view.
5. For Site B forums, user must be a member of Group B to view.
6. Now hack the code so that if user is logged into site A, user is a member of Group A but not Group B. If logged into Site B, user is a member of Group B but not A.

Its really not that major a hack.

That would work if you have the identical purpose for both of your "sites". But say you want to have one forum with the RPG hack and the other without, you'd have to hack the forum so that when you log into the non-RPG hacked part of the forum, you don't see any of the RPG template effects. Which just becomes even more complicated. And this applies for all template modifications for various hacks if you want them to appear on one "site" but not your other. (Edit: I did just realise that this could be avoided with seperate styles, but two of the three sites I run will use the same hack, but for different reasons. And some of these hacks the actual coding for those hacks would have to have a complete overhaul to have two seperate instances, so this would still not work, atleast for me.)

My view is that all you'd have to do is alter the register.php file that when a user registers on any of the forums, it inserts all the info into every database you define via admincp or the register.php file. That way it registers a user once, but places them in all the seperate sites' databases that you'd like.

And to make this hack more complex (maybe for a 2.0 release), you make it that for a site-trading ring where you require each forum in the ring to make a 'receiving-end' file that when a user registers on one site, it sends their registration information to those other sites' receiving-end file and registers them on that site. This would make it that other site admins wouldn't have to give out their database information for security reasons and it would help expand their communities. And all this could be optional for the user when they sign-up, and once they're signed up via usercp, where they can opt to send their registration information to those other sites.

I wish I could write hacks and I'd make this work as I think I can't explain it very well. But that would be an awesome hack. :classic:

Durtay
02-18-2005, 04:46 AM
Has any coders thought about doing this hack? I'm just curious if there was any progress or interest shown?