PDA

View Full Version : Help understanding forum user integration w/ my website


travisp
09-09-2009, 07:44 PM
I have an existing website with a small number of beta users with an already created user authentication and registration system.

I've decided that I'd like there to be a forum that shares users with the existing website. Although I'd like a login on one website to login to the other, the most important thing is that users don't have to register twice in order to encourage participation.

I've read a large number of posts on here about integrating websites with vBulletin, and have come away a little uncertain about the best way to proceed.

What I wanted to do - Keep existing system:
Maintain the existing website's user tables, registration, and authentication system and sync this information with the vBulletin database when changed (it's unclear to me if this is technically a "bridge", but I think so).

Pros:

Already have registration and authentication working how I want it.
Seems that this still might require less modification of both my existing website and vBulletin than the second option below.


Cons:

It seems relatively easy to do this one-way, but it seems harder to sync back from vBulletin to my website, for example if the user is on the vBulletin forum and changes a password or email address (it seems that it would require either a lot of hooks or redirecting the user from the forum to my application for anything that would change this information)
There's a possibility that databases will get out of sync if I make mistakes, or that I will fail to ensure that the requirements of user information match the requirements of vBulletin (e.g. field lengths, etc.).


Second option: use vBulletin's system exclusively
Scrap my registration and authentication system and use vBulletin's (probably by including vBulletin files and calling the API from what I can tell).

Pros:

May eventually result in less maintenance because I won't need to maintain my own system.
May actually be more secure because the vBulletin system has been more battle-tested.
Gets rid of the possibility of the databases going out of sync


Cons:

More closely tied to the vBulletin system and license.
Appears harder to separate the forum from the existing website (e.g. hosting them on different servers to protect resources). Would the license even allow me to host the forum on one server and still include global.php on the website server for example?
Possibly extra overhead of calling vBulletin functions from my website to handle authentication and access control.
Custom plugins may still be necessary to get the vBulletin registration and authentication system working the way I want them to.
The feeling of annoyance at not getting to use the code I already wrote and tested ;)


Does anyone have any thoughts on this? I feel that an integrated forum with my website would be a great benefit to the users, but I want to be sure that I do it right, so I appreciate anything that will help me better understand the integration options available to me.

travisp
09-11-2009, 03:03 PM
Is there maybe a better place I should post this question? I'm fairly new to vBulletin.

Lynne
09-11-2009, 04:49 PM
This is the correct place. You may want to do a search on this and even look in the articles forums because I think this has been covered before.

I actually have two user tables on my site. One for vbulletin, the other for my tracker. What I do is when someone registers on my vbulletin site, I added code to also register them on my tracker. They can't ever 'see' the tracker, so I don't need to do the same thing from that end, but I think what you want it to do it both ways.... if they register on your site, you register them on vbulletin also. And, if they register on vbulletin, you register them on your main site also. You'll also need to have login log them into both sites too.