vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   [Request] Removing flood control from mods (https://vborg.vbsupport.ru/showthread.php?t=58962)

siLk 12-02-2003 04:18 PM

[Request] Removing flood control from mods
 
We are running a clean version of vB 2.2.1 at www.warcraftreplays.com

Super-Mods / Admins are not restricted to the flood control settings, such as 1 post only 30 seconds rule. However, our forum is huge (80,000+ members), so our post time is set at 60 seconds. This is annoying for our staff of 50+ because they need to be able to post threads in quick succession and it is annoying as hell for them to have to wait 60 seconds to post another thread.

If there is a quick way to do this, and does not require a hack, then that would be great. Otherwise, is there anyone here that that would be willing to create a small hack to set this setting up per usergroup/forum (and not a overall board setting) basis?

If you have any questions or would like to talk to me directly, you can contact me on AIM at vendetta1g or on ICQ at 123595 or MSN at jtotten1@nc.rr.com

Thanks.

magnus 12-02-2003 05:13 PM

This is untested, plus I'm going on 2.3.3 source, but it should be the same:

In newthread.php AND newreply.php -

Find:
PHP Code:

    if ($enablefloodcheck) {
      if (
$bbuserinfo[userid]!=and time()-$bbuserinfo[lastpost]<=$floodchecktime and !ismoderator($foruminfo[forumid])) { 

Replace with:
PHP Code:

    if ($enablefloodcheck) {
      if (
$bbuserinfo[userid]!=and time()-$bbuserinfo[lastpost]<=$floodchecktime and !ismoderator($foruminfo[forumid]) and $bbuserinfo[usergroupid]!=7) { 

** edited to reflect correct default vB USERGROUPID (7). Change if needed.

Logician 12-02-2003 05:44 PM

Magnus's solution is very close but just that moderator's usergroupid is not 5 or 6. ;)

So replace "6" with your moderators' usergroupid which is 7 in default vb.

siLk 12-02-2003 06:37 PM

ok, thanks a lot guys, I will try this as soon as I can

magnus 12-02-2003 06:45 PM

Quote:

Originally Posted by Logician
Magnus's solution is very close but just that moderator's usergroupid is not 5 or 6. ;)

So replace "6" with your moderators' usergroupid which is 7 in default vb.

It would help if I read things thorougly, all I saw was "Super-Mods / Admins . . ." so I immediately snagged those groupid's, lol. :)


All times are GMT. The time now is 07:07 AM.

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.01125 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete