ahh ok;
I already installed the vbpopup hack. Together with this i have the following code in global.php
Code:
if ($bbuserinfo['userid']==0) {
//new menu if user is not logged in
eval("\$xmenustyle = \"".gettemplate('xmenu_menustyle')."\";");
eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval("\$xmenucssexpr = \"".gettemplate('xmenu_cssexpr')."\";");
eval("\$xmenucode = \"".gettemplate('xmenu_menucode')."\";");
eval("\$xmenudef = \"".gettemplate('xmenu_menudef2')."\";");
eval("\$header .= \"".gettemplate('header')."\";");
// End Xmenu
eval("\$vbpopup .= \"".gettemplate('vbpopup')."\";");
eval("\$footer .= \"".gettemplate('footer')."\";");
} else {
//new menu if user is logged in
eval("\$xmenustyle = \"".gettemplate('xmenu_menustyle')."\";");
eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval("\$xmenucssexpr = \"".gettemplate('xmenu_cssexpr')."\";");
eval("\$xmenucode = \"".gettemplate('xmenu_menucode')."\";");
eval("\$xmenudef = \"".gettemplate('xmenu_menudef')."\";");
eval("\$header .= \"".gettemplate('header')."\";");
// End xmenu
eval("\$footer .= \"".gettemplate('footer')."\";");
}
Then i just copied the template xmenu_menudef and renamend to xmenu_menudef
2 and changed the menu content for users that are not logged in.
That's all.