Ok, got it working after a few hours.
Had to do everything in the "PHP Parsed Code", and create a bunch of string variables and write them out to the headers. It doesn't really follow the development style of the site, but I guess it works...
Parsed Code
PHP Code:
// **** Lets find out what usergroup this user belongs to... ****
//6 = Admin
//8 = NewsAdmin
//9 = ScriptsAdmin
if ($bbuserinfo[usergroupid] == 6){
$strMenuFile = "adminmenu";
}elseif ($bbuserinfo[usergroupid] == 8){
$strMenuFile = "newsmenu";
}elseif ($bbuserinfo[usergroupid] == 9){
$strMenuFile = "scriptsmenu";
}else{
$strMenuFile = "menu";
}
if ($bbuserinfo[userid]!=0)
{
$strLoggedInMsg = " You are logged in as $bbuserinfo[username]";
$strLogInOutLink = "/forums/member.php?action=logout";
$strLogInOutText = "<B>Logout</B>";
}else{
$strLoggedInMsg = "";
$strLogInOutLink = "/login.php";
$strLogInOutText = "<B>Login</B>";
}
Header Code
PHP Code:
$strLoggedInMsg
<a href="{siteRoot}$LogInOutLink">$strLogInOutText</a>