![]() |
Help - I need to get usergroupid from VBB for use elsewhere
I have a login script for my site that uses the VBB database to authenticate.
This works fine. I also want it to grab the authenticated users usergroupid so I can have different options on the non VBB part of the site depending on the persons usergroup. The code below registers the session valid_user just fine. I also want to register $usergroup as a session. Problem I get is that the value I get for usergroupid is blank. What am I doing wrong and how do I fix it? PHP Code:
|
Why don't you just use require_once('./global.php'); then use vBulletin functions, etc.? I think life would be much easier :D
|
Never really thought of doing that.
I would prefer to do it the way im trying to do it now (since Im a bit of a PHP n00b and struggling as is, learning the vB functions may be a little too complex for me). However, Is there any documentation on the vB functions including samples? |
All times are GMT. The time now is 05:00 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|