Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Moderation per usergroup Details »»
Moderation per usergroup
Version: 1.00, by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-28-2002 Last Update: Never Installs: 32
 
No support by the author.

This hack was requested by Burns:
https://vborg.vbsupport.ru/showthrea...threadid=36517

With it you can turn on moderation only for certain usergroups, so you can have a group of "trusted" users that don't need moderation.
I also split it to two options: moderate new threads and new replies, so you can only moderate new threads and not replies if you want.

To install this hack download the attached file (modusergroup.hack.php), upload to your /admin folder and use vbHacker.

Anyway, have fun, hope this is useful.

Show Your Support

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

Comments
  #22  
Old 09-02-2002, 06:12 PM
steveprice steveprice is offline
 
Join Date: Dec 2001
Location: Virginia
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi David,

This is probably the most useful hack in my forums. It really lets me keep the morons from getting their messages into view by the public, yet I never have to bother moderating messages from the rest of the users.

If you go to the very first message in this thread, the word "VBHacker" is a link to the VBHacker. Installation is a piece of cake, and I doubt that you'll need any instructions beyond what you find there. If you do, please feel free to e-mail me.

Regards,

Steve Price
Reply With Quote
  #23  
Old 09-02-2002, 08:46 PM
D. Hollingworth D. Hollingworth is offline
 
Join Date: Nov 2001
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by steveprice
Hi David,

This is probably the most useful hack in my forums. It really lets me keep the morons from getting their messages into view by the public, yet I never have to bother moderating messages from the rest of the users.
Exaaaactly!

I have a forum, which has its fair share of new sign-ups that flagrantly violate the no-spam policy, and sometimes to amazing extremes. For this reason, I too am forced to moderate just about everything. The only other option is to assign, (the good users) moderator privileges, and scale back the options, but it?s tedious, and also causes confusion for the other users--- Um.. Why are there 30 moderators? Hehe... I eventually gave up on this one

Quote:
Originally posted by steveprice

If you go to the very first message in this thread, the word "VBHacker" is a link to the VBHacker. Installation is a piece of cake, and I doubt that you'll need any instructions beyond what you find there. If you do, please feel free to e-mail me.

Appreciate the help Steve. Everything is installed, and works awesome! I would also like to extend a thanks to Firefly for his many wonderful contributions that never cease to amaze me.

Excellent work!

Dave Hollingworth
Reply With Quote
  #24  
Old 09-02-2002, 08:46 PM
Ang Ang is offline
 
Join Date: Mar 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, I wouldn't mind having a few more instructions either. I installed it (quite easily) on my board (2.2.7) and there were boxes under user groups asking whether I wanted to moderate the group or not. However, even after marking them "yes" the groups were able to post freely. I'm guessing there are some other settings that need to be changed in order for it to work, but I have no clue what they are.
Reply With Quote
  #25  
Old 09-02-2002, 09:10 PM
D. Hollingworth D. Hollingworth is offline
 
Join Date: Nov 2001
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm? How to explain this.

This is the step I stumbled on as well.

Try this. In your CP:

- Go to Forums & Moderators
- Select Modify
- Select the ?Edit? on the forum that was previously set to ?moderate the posts.?
- If moderation is enabled, ?disabled? it.

Now, go to:

- Modify User Groups--- Select ?Modify.?
- Select ?Edit? on the forum you want to moderate
- Scroll down to the ?moderate? option and turn it on.
- In your ?trusted? group, scroll down and do that same thing, except ?disable? moderation.

As I see it, the hack controls moderation from through the individual Usergroups, as opposed to the ?actual? single forum itself. I thing I got that right

In any event, if this is not the problem, sorry for wasting your time, but I hope it helps to some degree.

Dave Hollingworth
http://nightclubbiz.net/
Reply With Quote
  #26  
Old 09-02-2002, 09:30 PM
Ang Ang is offline
 
Join Date: Mar 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for replying. I tried doing it that way, but it didn't work. It's still either totally moderating or not by forum.
Reply With Quote
  #27  
Old 09-04-2002, 01:58 AM
wolfman wolfman is offline
 
Join Date: Aug 2002
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a small problem with this one I do the sql query and I get this during the install

Quote:
Query number 1:
The query "ALTER TABLE usergroup ADD moderatethread SMALLINT(6) UNSIGNED DEFAULT "0"
NOT NULL, ADD moderatepost SMALLINT(6) UNSIGNED DEFAULT "0" NOT NULL" was not executed due to database errors.
I got this trying to do the same thing in phpmyadmin

Quote:
Error

SQL-query :

ALTER TABLE usergroup ADD moderatethread SMALLINT(6) UNSIGNED DEFAULT "0" NOT NULL, ADD moderatepost SMALLINT(6) UNSIGNED DEFAULT "0" NOT NULL

MySQL said:


Duplicate column name 'moderatethread'
I do have several mods installed so I am thinking it is having a conflict with something I had to do in another mod.

Thanks
Reply With Quote
  #28  
Old 09-04-2002, 02:13 AM
wolfman wolfman is offline
 
Join Date: Aug 2002
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Blah never mind that last post of mine, this is a nice mod thanks
Reply With Quote
  #29  
Old 09-06-2002, 09:08 PM
Ang Ang is offline
 
Join Date: Mar 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm still having problems. I have the hack installed on my live board now and it doesn't seem to work there either. Any help would be greatly appreciated.
Reply With Quote
  #30  
Old 09-06-2002, 10:20 PM
Ang Ang is offline
 
Join Date: Mar 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I figured out what the problem(s) were. Or at least, I got it working now (I have essentially no knowledge in php or mysql, so this may have been obvious to others but it wasn't to me). In case anyone cares, in newreply.php this code was put in
Quote:
// auto bypass queueing for admins/mods
if (ismoderator($foruminfo[forumid])) {
$visible=1;
} elseif ($permissions['moderatepost']) {
$visible=0;
}
I had to take out the apostrophes around moderatepost (and moderatethread for newthread.php) in order for it to read the correct value from the table.

Even after that, the moderation didn't work on replies, just new threads.
Reply With Quote
  #31  
Old 09-10-2002, 06:46 PM
ptenthus ptenthus is offline
 
Join Date: Jan 2002
Location: Lyons, CO
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm getting similar results to what Ang is seeing.

Any idea what is wrong?
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:13 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04693 seconds
  • Memory Usage 2,301KB
  • 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
  • (5)bbcode_quote
  • (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
  • (3)pagenav_pagelink
  • (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