Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Add Usergroup as Moderator Details »»
Add Usergroup as Moderator
Version: 1.0.10, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 08-02-2005 Last Update: 01-15-2006 Installs: 177
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 10-06-2005, 08:31 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, this Query works just fine for me.
Which mySQL Version do you use?
Reply With Quote
  #83  
Old 10-06-2005, 08:32 AM
diretur diretur is offline
 
Join Date: Sep 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

3.23.58-log
Reply With Quote
  #84  
Old 10-06-2005, 08:36 AM
diretur diretur is offline
 
Join Date: Sep 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wait, maybe I have it!
Table 'db32351_14.vb3_moderatorusergroup' doesn't exist

I did't create any table because I haven't seen it in the readme file!
Reply With Quote
  #85  
Old 10-06-2005, 08:40 AM
diretur diretur is offline
 
Join Date: Sep 2005
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry for the chaos: now I uninstalled the mod, so the table should have been deleted from the database. right?
Reply With Quote
  #86  
Old 10-06-2005, 08:40 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think that 3.23 is too old.
The table should have been automatically created by the product install code.
Reply With Quote
  #87  
Old 10-06-2005, 03:09 PM
trilljester's Avatar
trilljester trilljester is offline
 
Join Date: Jul 2005
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Kirby: Can you limit this usergroup's moderator functions, meaning, they can have the same limitations as moderators as a single user moderator, right? Like if I don't want them deleting posts or what not, I can restrict that, correct?
Reply With Quote
  #88  
Old 10-06-2005, 06:55 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay I installed this mod and the first thing I noticed is when I try to edit any of the usergroups i get an SQL dB error. I tried to deactivate the hack and make the changes but it still does the same so I guess there have been changes made to the tables that cause the error.

I will try and uninstall then try to edit the usergroups to see if the same problem occurs. One thing for sure is once the hack is installed, it almost certainly leads us to edit or refine the usergroups to better fit the group system in forum home so the SQL error will almost definately take place.

Okay I uninstalled the hack and the error still occurs so I guess the MOD is noit cleaning up the tables after uninstallation.

Here is the error
Code:
Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
	`title` = 'Site moderator',
	`description` = '',
	`usertitle` = '',
	`opentag` = '<span style=\"color: #6A0000;\">',
	`closetag` = '</span>',
	`passwordexpires` = '0',
	`passwordhistory` = '0',
	`forumpermissions` = '1048575',
	`attachlimit` = '0',
	`pmquota` = '50',
	`pmpermissions` = '1',
	`pmsendmax` = '5',
	`calendarpermissions` = '63',
	`wolpermissions` = '15',
	`adminpermissions` = '0',
	`genericpermissions` = '204193695',
	`genericoptions` = '23',
	`profilepicmaxwidth` = '100',
	`profilepicmaxheight` = '120',
	`profilepicmaxsize` = '65535',
	`avatarmaxwidth` = '100',
	`avatarmaxheight` = '120',
	`avatarmaxsize` = '50000',
	`imghost` = '0'
WHERE usergroupid=7;

MySQL Error  : Unknown column 'imghost' in 'field list'
Error Number : 1054
Date         : Thursday, October 6th 2005 @ 03:57:34 PM
Script       : http://www.mysite.com/www/forum/admincp/usergroup.php
Referrer     : http://www.mysite.com/www/forum/admincp/usergroup.php?do=edit&usergroupid=7
IP Address   : ***.***.**.**
Username     : Xxxxxx
Classname    : vb_database
Looking forward to a fix.
Reply With Quote
  #89  
Old 10-06-2005, 07:43 PM
Mephisteus's Avatar
Mephisteus Mephisteus is offline
 
Join Date: Dec 2001
Location: The Netherlands
Posts: 288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its messing up at the imghost field. Its neither a defeault field nor is it part of this hack, Id be looking at another hack... (though I do not know which one, Im guessing one that hosts images on a usergroup basis or something )

@trilljester, yes it does
Reply With Quote
  #90  
Old 10-06-2005, 07:53 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@trilljester
The permissions are the same as for normal moderators.

@JohnBee
Field imghost definitely has nothing to do with this Hack, so this error is caused by another Hack.
=> Remove all Bitfield XMLs from Hacks you don't use (any longer) and rebuilt the bitfield cache.
Reply With Quote
  #91  
Old 10-06-2005, 09:07 PM
trilljester's Avatar
trilljester trilljester is offline
 
Join Date: Jul 2005
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome. Thanks for this, Kirby! I really wish this was a feature in VBulletin, I'm surprised it's not. It's actually a feature in most forum softwares.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:44 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
  • Page Generation 0.12479 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete