The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[VB3] Using VB3 authentication on non-VB pages
Hi
I have some non VB pages where I would like to use the VB authentication to cross check against the database of users. Does anyone know where I can find this code? |
#2
|
||||
|
||||
You could add this to the top of your file:
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
just so I can understand, what is in globa.php that will work for this and what is the $bbuserinfo variable? is it a cookie?
|
#4
|
||||
|
||||
global.php is essentially the backbone of vBulletin, it allows connections to the database automatically and then lets you use important variables (i.e $bbuserinfo) in your pages, or vB forums.
|
#5
|
|||
|
|||
and $bbuserinfo is the a variable created upon login that contains the user's id and other info?
|
#6
|
||||
|
||||
$bbuserinfo variable works for all users including guests
|
#7
|
||||
|
||||
most of the values are returned NULL are they not, like location and that
|
#8
|
|||
|
|||
so if the user isn't signed in, the values are returned null, however, if the user is logged in, the variable is populated. is there a way to authenticate the user using the user id as well as the user's password -- not just checking to see if $bbuserinfo['userid'] is populated?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|