Log in

View Full Version : AdminCP link in footer


ernestdefoe
06-14-2003, 12:17 AM
Okay I would like to add a link to the AdminCP in the footer, and be visable to Admin only. How would I go about doing this. vB 2.3.0 Thanks for any help that can be given.

Edit: I would like for it to be where the Contact Us and website title is. So it would look like this <Contact Us - Site Title - AdminCP>

Edit2: Please break this down for me, cause I am an idiot when it comes to this stuff.

assassingod
06-14-2003, 12:38 AM
open up the phpinclude template and add after the last line:


if ($bbuserinfo[usergroupid]==6) {
$adminlink = '<a href=\"admin/index.php\">Admin CP</a>';
} else {
$adminlink = '';
}


Then place $adminlink wherever you want:)

ernestdefoe
06-14-2003, 12:44 AM
Thanks. Worked like a charm.