The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Single login
Hey everyone,
I'm quite new to vBulletin and I need to create a single site-wide login for both the forums and my main site. We're currently using a custom-built PHP/MySQL app for the main site, so I'll need to handle the VB integration from scratch. What's the easiest way to bridge logins between a custom application and VB? My initial thought was just to register a user with the same credentials in both the main app user db and vBulletins db when the user registers for either service. Maybe there's an easier way, though! Any help is much appreciated! Thanks! |
#2
|
|||
|
|||
I am facing the same issue. I would be happy with even inserting a hook that ensures they have a valid user account in our main system before allowing a login to begin....
|
#3
|
|||
|
|||
Hey, you could look at the following for an example of how it has been done?
https://vborg.vbsupport.ru/showthread.php?t=270517 |
#4
|
|||
|
|||
Quote:
What I'm after is a way to have vBulletin at least check our main user database before allowing a login to vBulletin, to ensure the user is already validated and exists in our registration software. They have already gone through the registration process and we would prefer not to make them register a second time to participate in the vBulletin Forums. We don't need the Register process from vBulletin at all, nor do we want it. If that makes any sense... ;-) |
#5
|
|||
|
|||
I did have a look through this thread:
https://vborg.vbsupport.ru/showthread.php?t=82836 I preferred the class.forumops.php setup. We just purchased VB v5 and these two includes don't seem to exist: require_once($_SERVER['DOCUMENT_ROOT'] . '/forum/core/includes/class_dm.php'); // for class_dm_user.php require_once($_SERVER['DOCUMENT_ROOT'] . '/forum/core/includes/class_dm_user.php'); // for user functions Any ideas how to manage user records (add/edit/delete) in a script that can be called outside of the actual running VB system? |
#6
|
|||
|
|||
I used the first example as the class wasn't working and using VB 5 I am able to add a new user from outside VB.
To update the user I am just accessing the 'user' table directly. Couldn't be any simpler. If anybody else is having issues trying to add a new user to VB from outside PM me and I can send you a copy of my scripts. |
#7
|
||||
|
||||
Interesting... So how do you manage logins/sessions?
If someone is logged into your site, and then goes to VB are they still considered logged in there as well? |
#8
|
|||
|
|||
No, they have to log into VB separately... that wasn't an issue for us.
|
#9
|
||||
|
||||
Okay, I PM'd you.
I'd like to try this out extending my framework's user auth to do this. I think I want to share cookies as well, though. |
#10
|
|||
|
|||
I am also pretty interested in this. I initially saw the vbsso plugin, but it will not work with vb 5. I also have a site that handles registration and would like users to automatically have a forum account.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|