![]() |
Add Usergroup as Moderator
Add Usergroup as Moderator
Description This Hack allows you to add a whole Usergroup as Moderators. (Of course you can not only add but also remove it, change Permissions, etc. ;)) Details 1 Product XML with 1 Plugin, 16 Phrases and 2 Queries 1 ACP Navigation XML 1 ACP Applet 1 Datamanager Class History 1.0.0 Initial Version 1.0.1 Fixed a slight Bug regarding Table Prefixes 1.0.2 Removed Multi-Table DELETEs to improve mySQL compatibility 1.0.3 Fixed a missing s that caused Moderator Permissions not being removed when a User is being removed from the Moderator Usergroup 1.0.4 Fixed a Bug regarding Table Prefixes 1.0.5 Code optimization Usergroup is now being shown instead of individual Moderators on Forumhome/Forumdisplay 1.0.6 Fixed a Problem with conflicting column Names 1.0.7 Added a few checks to prevent Moderators of Moderator Usergroups from being modified/deleted individually 1.0.8 Added Support for moderated public Usergroups as Moderator Usergroup 1.0.9 Fixed a Bug which caused Moderator Usergroups not being displayed properly in subforums. 1.0.10 Fixed a a slight problem that could cause mySQL errors Please only click Install if you actually have installed/are using this Hack, and click Uninstall whan you don't use it any longer! |
[high]* Dean C wishes this was a default vB features :)[/high]
|
:)
I know it's not an ideal solution, but maybe better then nothing. |
*worship*
Thank you kind sir, I really really needed this and you have now saved me valuable time (which I dont have). Once again, thanks :) [edit] Doesnt work, getting mysql errors all over the place (including when editing a user). When usergroup is added. members of the usergroup (additional) dont have moderator rights. Code:
Database error in vBulletin 3.5.0 Release Candidate 1: |
Looks like this hack doesn't support table prefixes :D
|
It should support Table Prefixes.
But it needs an up-to-date mySQL Version @DarkSSJ3 Which mySQL Version do you use? |
4.0.24-standard
I have to go out for a bit, when I get back Ill load it back up and go through it more extensivly |
Aargh, there was a Problem with Table Prefixes - 1 Space where it should not have been.
ZIP updated. Just import the new Product XML to update. But I still think this isn't the cause for your Problem, as you don't seem to use Table Prefixes? |
Code:
Database error in vBulletin 3.5.0 Release Candidate 1: * BTW * This was from me just editing a user. Nothing more. ;) |
Hmm. Works fine on my Testboard that has a Table Prefix :(
Which Prefix do you use? |
Silly me, actually i have no prefix. :P. But it gives me the same error eventhough I did set a usergroup as moderator of a forum o_O.
Code:
Database error in vBulletin 3.5.0 Release Candidate 1: |
That's what I thought.
Seems like your mySQL Version does not support this Query Syntax. Can you try the following Query in phpMyAdmin if it generates errors? [sql] DELETE moderator FROM moderator AS moderator, moderatorusergroup AS moderatorusergroup WHERE moderator.userid = 11 AND moderator.moderatorusergroupid = moderatorusergroup.moderatorusergroupid AND NOT (moderatorusergroup.usergroupid IN (2)); [/sql] |
Code:
Database error in vBulletin 3.5.0 Release Candidate 1: :: EDIT :: Actually it didn't delete anything :I |
I have the same as Asterik. When editing a user it gives me that error.
|
Quote:
PS Not all MySQL versions support multi table deletes. |
The only place where I get that error is when editing a user. Also (the user already is a part of that group) the user doesnt have moderator rights.
|
Quote:
|
Hmpf. Ppl should use more up-to-date mySQL Versions ;)
OK, doing it the old-fashined way then - without multi-table DELETEs. |
Woho! Pretty please let us know when its updated :)
|
Will do.
Btw: If you add a Usergroup that already has Members (be it primary or secondary) as Moderator, do these members get Moderators? |
Quote:
|
4.0.2 up does ... if I understand the manual correctly.
But as there is one report from 4.0.24 where it is not working, maybe only 4.1.X does support this Syntax? Bob, could you test if it's working for you? |
I'm running 4.0.24-Standard, but I will install it and give it a shot. ;)
|
Thanks :)
I guess editing a User will not work, but I am interested if it does add Usergroup Members as Mods (when you add the Usergroup as Mod) on this Version |
Ok, installed fine and I just added the administrators as the mod group to a forum. Is that what you needed to know or do you need me to check something else while I am playing? ;)
|
And when I check the forum it shows each admin in the mods drop down listing.
|
Great, so this part is working - only the multi-table delete causing Problem then :)
|
What do I need to do to test that part of it to make sure it just isn't a fluke on another system?
|
Just Edit a User
|
Sorry, got the same error on that one. :(
|
I have removed the multi-table DELETEs.
Hopefully this does work with older mySQL Versions now too. |
everything seems like its working fine. Minus one thing, remove the user form the additional usergroup and the moderator access remains (yet disappears if the moderator usergroup is removed as such)
|
One missing s, aargh.
Should be fixed now, just import the new product XML. |
Looks like its working now :) Thanks again :)
|
Kirby, can I make a translation of this and post on vbulletin chinese's hacks forum (crediting you of course)?
|
Feel free to post an XML with Translated Phrases/Installation instructions, but the Product XML should only be available for Download from here.
Thanks for your understanding :) If you do, please send me a copy as well. |
Hm... aren't the phrases part of the product xml? I wonder how I'm gonna translate just the phrases without putting up a different xml :p oh well, I'll go probe around and see what I can do :)
|
Take a look at the 3.5 Modification Tips&Tricks Forum, I posted a How-To for translating Hacks :)
|
Oh man, it works perfect! This is exactly what I needed!
I know this is stupid and I probably shouldn't ask, but would there be anyway to just have the name of the usergroup as the moderator, instead of all of the moderators showing up? It's no biggy, it would just look nicer. *whistles* Oh man, but this is awesome. Thanks like.. A MILLION. Really. *worships* |
Quote:
|
All times are GMT. The time now is 10:22 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:
|