Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 09-09-2009, 07:44 PM
travisp travisp is offline
 
Join Date: Apr 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Help understanding forum user integration w/ my website

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:
  1. Already have registration and authentication working how I want it.
  2. Seems that this still might require less modification of both my existing website and vBulletin than the second option below.

Cons:
  1. 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)
  2. 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:
  1. May eventually result in less maintenance because I won't need to maintain my own system.
  2. May actually be more secure because the vBulletin system has been more battle-tested.
  3. Gets rid of the possibility of the databases going out of sync

Cons:
  1. More closely tied to the vBulletin system and license.
  2. 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?
  3. Possibly extra overhead of calling vBulletin functions from my website to handle authentication and access control.
  4. Custom plugins may still be necessary to get the vBulletin registration and authentication system working the way I want them to.
  5. 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.
Reply With Quote
  #2  
Old 09-11-2009, 03:03 PM
travisp travisp is offline
 
Join Date: Apr 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there maybe a better place I should post this question? I'm fairly new to vBulletin.
Reply With Quote
  #3  
Old 09-11-2009, 04:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03436 seconds
  • Memory Usage 2,179KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete