vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How to Introduce Integrated Authentication with Established Website (https://vborg.vbsupport.ru/showthread.php?t=218074)

4studios 07-07-2009 06:21 PM

How to Introduce Integrated Authentication with Established Website
 
Hello -

I'd like to integrate vBulletin with my exiting website so that users only have to register/login once to access both the main website and the forums.

I've found a very nice piece of code (https://vborg.vbsupport.ru/showthrea...authentication) which looks like what I need to handle the login part, but I'm still left with a couple of questions:

1. How do I handle the registration part? (I've searched high and low and can't find anything for the version of vB I'm running (3.8.2))

2. Once I've sorted the login and registration stuff, new users should be synched up, but... what on Earth do I do about the existing members? Not everyone who has an account with the main website has an account on the forums. I was thinking I could somehow use their usernames to bind the two accounts, but of course, not everyone registered with the same username. :(

I'm desperate to get the two sites integrated with the same login/registration system, but I don't want to have to make my existing users signup yet again.

Does anyone have any experience with this sort of thing? If so, would you be willing to share some advice?


Thanks,
Jul

Dismounted 07-08-2009 02:36 AM

1. You can create a plugin to hook in at vBulletin's registration process, and create a user in your other database. You'd have to do likewise in your application, preferably using the vBulletin user data manager (see the manual) to create a user in vBulletin.

2. Using the email address should be "better" than usernames. Both is even better. :)


All times are GMT. The time now is 06:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00954 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete