View Full Version : Using Username/Email Info Outside of Board
DanJKroll
02-04-2004, 12:08 AM
I was wondering if there is a snippet of PHP code that can be implemented on pages OUTSIDE of the vBulletin section of a site to allow users to log-in to registration-required features. Ideally, the snippet would be able to pass along Username and email address information... I don't want to have to have the hassle of having users sign up or log in more than once.
Any help anyone can offer is appreciated.
g-force2k2
02-04-2004, 05:07 AM
if you change to the forum directory and then use:
require_once ( './global.php' ) ;
probably along the beginning of the file depending on what you have in mind, but it allows for the use fo all vbulletin features if used correctly. Just by using that line you can use the
$bbuserinfo
array, which allows for $bbuserinfo[username], $bbuserinfo[userid], $bbuserinfo[email] etc.
Hope that helps.
Cheers,
g-force2k2
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.