The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
trying to make admin cp button visible only to admins
okay I used this hack here to hide the register and user cp depending on if you are logged in or out, I also successfully modified it to hide the logout button from guests.
Code:
// guest/member register/usercp hack if($bbuserinfo['userid'] != 0) { $reg_ucp = "<a href=\"/forum/usercp.php?s=$session[sessionhash]\">". "<img src=\"https://vborg.vbsupport.ru/images/top_profile.gif\" ". "alt=\"Here you can view your subscribed threads, work with private messages and edit your profile and preferences\" ". "border=\"0\"></a>"; }else{ $reg_ucp = "<a href=\"/forum/register.php?s=$session[sessionhash]&action=signup\">". "<img src=\"https://vborg.vbsupport.ru/images/top_register.gif\" ". "alt=\"Registration is free!\" border=\"0\"></a>"; } // guest/member log out hack if($bbuserinfo['userid'] != 0) { $log_gone = "<a href=\"/forum/member.php?s=$session[sessionhash]&action=logout\">". "<img src=\"https://vborg.vbsupport.ru/images/top_logout.gif\" ". "alt=\"Logout\" border=\"0\"></a>"; }else{ $log_gone = ""; } Code:
// admin button hack if($bbuserinfo['userid'] != 6) { $adcp = "<a href=\"/forum/admin/index.php?s=$session[sessionhash]\">". "<img src=\"https://vborg.vbsupport.ru/images/top_admincp.gif\" ". "alt=\"Admin CP\" border=\"0\"></a>"; }else{ $adcp = ""; } edit: the above for the admincp works, but guests can also view it :\ |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|