![]() |
1 Attachment(s)
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. |
Will try this in the morning. This is actually on my request list :)
|
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 |
I wasn't thinking of moderators from another forums. Silly me. :)
Thanks Freddie, package updated. |
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 |
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. |
I'm not sure either. I need some more info or even better - the link to your pages.
|
is there a way to uses this under vb 1.1.x also? the varialbe "ismoderator" dosn't work
|
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.
|
Don't find the utility of this hack!
|
Quote:
That's not good :( |
I'm uninstalling the hack, but now i have another problem.
Because the template system of vb2 sucks, i've edited the templates through phpmyadmin. Because of that, i can't simply 'revert to original'. Normally, I can just follow the hack backwards, and so uninstall the hack. But in these hack instructions, there's only Code:
************************************************ Now i don't know to what i have to change it to!!! :(:(:(:( |
Fiished. Finally.
I had to beg my host for a second database, and installed vb2 again, temporarily, and then copy the original showthread and forumdisplay templates to the ones that are ****ed up. I hate the way vbulletin2 is going with the templates. If vb2 had the same template system as in 1.1.x, then i didn't even have to use phpmyadmin, but i could do it in the control panel! I'm strongly considering uninstalling vb2, despite all the good features that my users love.. and installing 1.1.6.. /me Out. |
I'll update the package as soon as possible and take a closer look at the issues described here. I'll also update installation instructions.
The wierd thing is it works perfectly on my site. If anyone experience any problems, feel free to describe them here as X-PhoeniX did. I've found template system in vB 2.0 more valuable and efficient than in older versions. I've never been forced to use phpMyAdmin or whatever else to edit my templates or even worse, repair them. I have to confess I experience less troubles with vB 2.0 than with vB 1.1.x. My users love new features and new version so do I. |
Quote:
Feel free to contact me, I'll try to help you as much as possible to make it run if still interested. |
Quote:
|
Quote:
Cuz that one has always worked perfectly for me, in contradiction to the template system of vB 2.. Quote:
I should have written it to a file or something, my mistake :) Sorry to post all this in 'your' topic, i just was a little pissed-off :) I've got it all working again.. Thank goodness :) Oh and the ismoderator function you're calling.. doesn't it only get the moderators for that forum, and not the admins? If that's true, then that's the cause of my problem, and probably of someone i read higher up in the thread.. |
All hacks are use at your own risk.
Remember they are doing it for free! |
PeF, does this add a query to showthread to check for moderator status?
|
Oups sorry pef :)
|
Quote:
|
Quote:
Why not just 'edit', 'remove' and 'add'?! That's enough.. noo things like custom templates, templatesets, revert to original... All that stuff isn't nesaserry(spelling?).. |
Quote:
change original -> add revert to original -> remove |
Quote:
Let me know if that fixes your problems. |
Quote:
I'll install the hack again this week, and set the admin usergroup to 'is supermod' to yes.. Then i'll post here if that has worked or not. |
Does this hack work with VB 2.0.1?
|
Its encluded in it :)
|
All times are GMT. The time now is 12:11 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|