![]() |
Checking user group from a non vb page
I have the following code in my footer, which is included on every page:
PHP Code:
right now, it is showing the button regardless of log in status. what variable does vB use to store the user's usergroup? thanks, nick |
Bump
|
With conditionals I use:
Code:
<if condition="is_member_of($bbuserinfo, x)"> |
With:
PHP Code:
"Parse error: parse error, unexpected '<' in /home/.sites/22/site13/web/livexchange/footer.php on line 66" |
bump
|
You'll need to adjust the code to make it work. That was just an example conditional used in vB. I'm not sure exactly what the PHP protocol is but maybe:
Code:
if ($vbulletin->userinfo['usergroupid']=="6") |
Quote:
I think there needs to be some other code before it to tell the script that it is looking for a vB variable... |
You need to include the config.php I'd say.
|
No, Config.php just contains server-connect information.
You could do: PHP Code:
|
Doesn't seem to be working. I tried the code you gave me, but it just causes the page to sit forever, then asks me if i want to run or download the PHP file.
The whole footer is as follows: HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
All times are GMT. The time now is 02:25 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:
|