drews
11-24-2002, 11:50 PM
Ok, I would like add an admin button to the top along with the other buttons (user cp, register, search, etc). So I created a new template called forumhome_loggedin_admin and the added:
<a href="admin/index.phps=$session[sessionhash]"><img src="https://vborg.vbsupport.ru/images/top_admin.gif"></a>
and then in global.php I replaced:
eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval("\$header .= \"".gettemplate('header')."\";");
eval("\$footer .= \"".gettemplate('footer')."\";");
with
eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval("\$header .= \"".gettemplate('header')."\";");
if($bbuserinfo['usergroup']==6) {
eval("\$loggedinadmin .= \"".gettemplate('forumhome_loggedin_admin')."\";");
eval("\$footer .= \"".gettemplate('footer')."\";");
} else {
eval("\$footer .= \"".gettemplate('footer')."\";");
}
And then in the template header I added $loggedinadmin where I wanted it.
However for some reason, it doesn't show up...There are no errors and the other buttons work, I am using vB 2.2.9 if that helps..
Can anyone think of what I am missing, or did I change the code in the wrong spot?
Please help!
<a href="admin/index.phps=$session[sessionhash]"><img src="https://vborg.vbsupport.ru/images/top_admin.gif"></a>
and then in global.php I replaced:
eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval("\$header .= \"".gettemplate('header')."\";");
eval("\$footer .= \"".gettemplate('footer')."\";");
with
eval("\$headinclude = \"".gettemplate('headinclude')."\";");
eval("\$header .= \"".gettemplate('header')."\";");
if($bbuserinfo['usergroup']==6) {
eval("\$loggedinadmin .= \"".gettemplate('forumhome_loggedin_admin')."\";");
eval("\$footer .= \"".gettemplate('footer')."\";");
} else {
eval("\$footer .= \"".gettemplate('footer')."\";");
}
And then in the template header I added $loggedinadmin where I wanted it.
However for some reason, it doesn't show up...There are no errors and the other buttons work, I am using vB 2.2.9 if that helps..
Can anyone think of what I am missing, or did I change the code in the wrong spot?
Please help!