I have the following code in my footer, which is included on every page:
PHP Code:
<?php
$forumpath = "http://www.mysite.com/community/forums/";
if ($vbulletin->userinfo['groupid']=6) {
echo "Admin/Mod CP button goes here!";
}
?>
I want it to check to see if the user is logged into vB and is in the admin usergroup, and if so, to display a button that links to the admin cp.
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