The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Is there such a hack that when you log-on u see the admin link *if ur an admin* and same thing if your a mod but you see nothing if ur just a normal member. I had it on invision board so figured id ask if there was one thnx!.
|
|
#2
|
||||
|
||||
|
I just added this to phpinclude (under styles in the cp) and put $adminpanel in the footer where I wanted the link to show.
Code:
if ($bbuserinfo[usergroupid]==6) {
//admins
$adminpanel = "<a href=\"admin/index.php\">Administration Panel</a><br>";
} else if (($bbuserinfo[usergroupid] ==5) || ($bbuserinfo[usergroupid] ==7)) {
//mods and super mods
$adminpanel = "<a href=\"mod/index.php\">Moderation Panel</a><br>";
} else {
//everyone else
$adminpanel = "";
}
|
|
#3
|
||||
|
||||
|
thnx! worked great ^^.
|
|
#4
|
||||
|
||||
|
such things are also possible with template conditional hacks
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|