The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||||
Description:
This hack will display admin options only to moderators, super moderators and administrators. vBulletin versions supported: 2.0 Beta 2 Files to edit: forumdisplay.php, showthread.php Templates to modify: 2 - forumdisplay, showthread Number of new queries: 0 Number of new templates: 2 Size: 1,10KB Demo: N/A Known bugs and issues: Just test it and let me know. Instructions: Included in the attached ZIP file. Download Now
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Will try this in the morning. This is actually on my request list
|
|
#3
|
|||
|
|||
|
Usergroupid 7 is not necessarily a moderator, as that group is a group added by the admin. Moderators are determined by there inclusion in the moderator table outside of Admins at usergroup 6 and Super Mods at usergroup 5.
Would be better (may add a query) to use this as it would catch all moderators in addition to hiding options from moderators in forums that they do not moderate. Code:
// Hide admin options to members
if (ismoderator($thread[forumid)) {
eval("\$forum_adminoptions = \"".gettemplate('forumdisplay_admin_options')."\";");
} else {
$forum_adminoptions = "";
}
|
|
#4
|
|||
|
|||
|
I wasn't thinking of moderators from another forums. Silly me.
![]() Thanks Freddie, package updated. |
|
#5
|
|||
|
|||
|
Nevermind that, stupid typo on my part that i hadn't noticed. Fixed now
Awesome script and keeps my users from being confused about what those extra options are! Very useful Maz |
|
#6
|
|||
|
|||
|
I did everything I was supposed to and it only works with my default template.
Not sure why it doesn't work. it just prints nothing for the other templates. Even though I am logged in as admin. |
|
#7
|
|||
|
|||
|
I'm not sure either. I need some more info or even better - the link to your pages.
|
|
#8
|
|||
|
|||
|
is there a way to uses this under vb 1.1.x also? the varialbe "ismoderator" dosn't work
|
|
#9
|
|||
|
|||
|
I'm not going to hack this for versions lower than 2.0 because of time. This hack should be compatible with all 2.0 betas.
|
|
#10
|
|||
|
|||
|
Don't find the utility of this hack!
|
![]() |
|
|