vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - Throttle Posts/Threads (restrict number of posts/threads by usergroup/forum by time) (https://vborg.vbsupport.ru/showthread.php?t=131014)

CyberRanger 11-06-2006 10:00 PM

Throttle Posts/Threads (restrict number of posts/threads by usergroup/forum by time)
 
Users can be restricted to a set number of posts and/or new threads per a defined time period. The settings can be global for all forums by usergroup and/or specific to certain usergroups by forum.

FAQ:
  1. I don't understand!!! Why would I use this? Say, for example, you wanted to have a sub-forum where registered users could only post 2 messages a day but a premium group could post unlimited messages. This mod will let you configure that! Here's another example. You want registered users to be able to only create 1 thread per 6 hours in a sub-forum but they can have an unlimited number of replies in that sub-forum. This product will let you do that!
  2. Do I have to configure every usergroup and forum combination?
    Nope! By default, all usergroups (that normally can post or create threads) can create and unlimited amount of threads and posts. You have the option to create settings by usergroup that apply to all sub-forums for that usergroup. Plus, you can fine tune the settings on a usergroup/sub-forum basis.
  3. I have a lot of forums and usergroups. How will I keep up with all my custom throttle settings? In the admincp, there is a feature that gives a summary of all settings by usergroup and forum. You can filter based on usergroup or forum and change the sort order.
  4. What does the "-1" mean in the settings? "-1" indicates unlimited. So, a usergroup with a -1 setting for the time period means there is no time restriction.
  5. Is this fully phrases? YES! 100% fully phrased including all admincp text!
Product will work with any version of vb 3.5.x and up (including 3.7.x).


Installation


1. Upload the contents of 'upload' to your forum directory
2. From the admincp, import the product file product-throttle_posts.xml
3. REFRESH your admincp page.
4. Change the usergroup setting for any usergroup you want to restrict.
5. OPTIONAL - To set per forum/usergroup settings, set "Activate per Forum/Usergroup Checking" (under Throttle Posts/Threads -> General Settings) to "Yes"
6. OPTIONAL - Set any forum/usergroup settings under Throttle Posts/Threads -> Per Forum/Usergroup Settings.
7. Done!

Special note: a new thread does NOT count as a post (for the purpose of this mod) but a new thread does count as a post! :)

Enjoy!

CyberRanger 11-07-2006 07:54 PM

Created in response to:

Quote:

you got those damn users that post 20-30 posts a day full of crap ... (and they get on your nerves, and they never say anything usefull or that really contributes to the thread ...)

is there a mod or script that limits the number of posts per user per day ???

i haven't found it yet ...


thanks ...

ChavMagnet 11-07-2006 08:53 PM

This is very good stops spammers. Thanks

TexasDreams 11-07-2006 09:42 PM

Outstanding add-on. Installed and nominated for Mod of the Month. :banana:

COBRAws 11-09-2006 03:04 AM

Can this be set up for specific forums only, or for every forum but a few?
And also, can this be set for X amount of posts in each thread in overral forums?

If so, I'll be glad to send a few carrots to your paypal for your time :D

letsjoy 11-11-2006 06:49 PM

very nice... i want that

letsjoy 11-11-2006 07:09 PM

https://vborg.vbsupport.ru/external/2006/11/7.gif
thanks

Jay... 11-26-2006 09:06 PM

Quote:

Originally Posted by COBRAws (Post 1113449)
Can this be set up for specific forums only, or for every forum but a few?
And also, can this be set for X amount of posts in each thread in overral forums?

If so, I'll be glad to send a few carrots to your paypal for your time :D

i want that. 10 posts per day in Forum X, unlimited posts per day in Forum Y... im sure it wouldn't be too much to change.

CyberRanger 11-27-2006 03:39 AM

Quote:

Originally Posted by Jay... (Post 1125883)
i want that. 10 posts per day in Forum X, unlimited posts per day in Forum Y... im sure it wouldn't be too much to change.

Actually, it's a huge change but let me see what I can figure out.;)

dilek 12-04-2006 07:07 PM

how can i restrict the number of threads per 24 hours?
Can you help me?

dilek 12-17-2006 01:51 PM

how can i restrict the number of threads per 24 hours?
Can you help me?

CyberRanger 12-21-2006 12:57 PM

Quote:

Originally Posted by dilek (Post 1140340)
how can i restrict the number of threads per 24 hours?
Can you help me?

Done!

Version 1.1 includes an option to restrict the number of new threads that can be created in a 24 hour period (by usergroup).

CNC Venture 04-11-2007 02:24 AM

Would it be possible to change it from being over a 24 hour period to being over a 1 hour period - because I find that more often than not the spammers are only on the forums for like 30 - 60 minutes spamming up the forum. I would much prefer a mod that limited the number of posts to 3 in an hour than a mod that limited the number of threads to 10 in a day.

R1lover 04-11-2007 02:39 AM

Awesome hack...... I actually had to ban a couple users because they would not slow down... this would have been much better. :)

Thanks for the work

nishant 04-11-2007 12:14 PM

Great hack CyberRanger, was just looking for it.

Could you please add another feature into this hack so that the "number of posts/threads per 24 hour period" can be configured on per forum basis.

Also if possible, can you also allow the administrator of the forum to configure the period of the limit instead of capping it at 24 hours.

CyberRanger 04-12-2007 02:39 PM

Quote:

Originally Posted by nishant (Post 1224911)
Could you please add another feature into this hack so that the "number of posts/threads per 24 hour period" can be configured on per forum basis.

Also if possible, can you also allow the administrator of the forum to configure the period of the limit instead of capping it at 24 hours.

Both of these features will be coming within days. You will be able to set restrictions per usergroup/forum and limit can be set per usergroup/forum in increments of minutes.

lordofgun 04-14-2007 09:54 PM

Awesome!

CyberRanger 04-20-2007 06:31 PM

My programming time got a little delayed but I hope to finish this up next week. Here's a small taste.

btolley 05-11-2007 02:50 PM

cool, looks just what i'm looking for - can't wait much longer !!! ;)

CyberRanger 05-15-2007 03:01 PM

Version 2 is out! The capabilities have been vastly expanded. You can now create throttles at the usergroup/sub-forum level! Plus, the throttle time increment is set in minutes.

Enjoy!

FAQ:
  1. I don't understand!!! Why would I use this?
    Say, for example, you wanted to have a sub-forum where registered users could only post 2 messages a day but a premium group could post unlimited messages. This mod will let you configure that! Here's another example. You want registered users to be able to only create 1 thread per 6 hours in a sub-forum but they can have an unlimited number of replies in that sub-forum. This product will let you do that!
  2. Do I have to configure every usergroup and forum combination?
    Nope! By default, all usergroups (that normally can post or create threads) can create and unlimited amount of threads and posts. You have the option to create settings by usergroup that apply to all sub-forums for that usergroup. Plus, you can fine tune the settings on a usergroup/sub-forum basis.
  3. I have a lot of forums and usergroups. How will I keep up with all my custom throttle settings?
    In the admincp, there is a feature that gives a summary of all settings by usergroup and forum. You can filter based on usergroup or forum and change the sort order.
  4. What does the "-1" mean in the settings?
    "-1" indicates unlimited. So, a usergroup with a -1 setting for the time period means there is no time restriction.
  5. Is this fully phrases?
    YES! 100% fully phrased including all admincp text!

fotografik 05-17-2007 02:01 PM

Looks very promising and is something that I have been looking for. Before I download and install, I do have a couple of questions

a) If the thread/post limit is set to 10 threads per week, can a member delete off his old thread/posts (to reduce his count) and then post some more?

b) Does this mod override the forum permissions already set? Eg. Usergroup A cannot post at all, while Usergroup B has full access - and I want to continue blocking Usergroup A from posting (using already set permissions), and Usergroup B to create only X threads/posts per time limit (using this mod).

c) Also, I do not understand your last statement about "a new thread does NOT count as a post (for the purpose of this mod) but a new thread does count as a post!"

CyberRanger 05-17-2007 02:24 PM

Quote:

Originally Posted by fotografik (Post 1249506)
a) If the thread/post limit is set to 10 threads per week, can a member delete off his old thread/posts (to reduce his count) and then post some more?

Currently, soft (the record is still in the database) deleted posts and threads are not counted. However, it would be a two second change to the plugins if you wanted them to count.
Quote:

Originally Posted by fotografik (Post 1249506)
b) Does this mod override the forum permissions already set? Eg. Usergroup A cannot post at all, while Usergroup B has full access - and I want to continue blocking Usergroup A from posting (using already set permissions), and Usergroup B to create only X threads/posts per time limit (using this mod).

vb forum permissions are NOT overridden. The vb permissions are checked first, then the special throttle settings, so your example would work.
Quote:

Originally Posted by fotografik (Post 1249506)
c) Also, I do not understand your last statement about "a new thread does NOT count as a post (for the purpose of this mod) but a new thread does count as a post!"

When a user creates a new thread, a new database record is added by vbulletin to the thread and the post tables.

For my mod, when the number of threads allowed to be created is checked against what the user has started, obviously only the thread table is checked. What may not be quite as obvious is that when a user attempts to create a new post, any new thread he has created will also count as a new post.

So, for example, if you have a usergroup that is set to only be able to create one post and one thread per day, creating the one thread will also use up the one post that can be created since creating a thread also creates a new post record.

Clear as mud? :p

fotografik 05-18-2007 01:19 AM

Quote:

Originally Posted by CyberRanger (Post 1249516)
Currently, soft (the record is still in the database) deleted posts and threads are not counted. However, it would be a two second change to the plugins if you wanted them to count.

Thanks for the clarification, and I have a follow-on question to your response above.

Does your statement mean that currently, the mod does not count soft-deleted posts/threads towards the user post/thread limit?

Example - Limit is set to 10 threads in a 24-hr period; I post 10 threads in the first hour; delete 5 in the next hour and post another 5; then delete all 10 in the 3rd hour and post another 10 - thus "bypassing" the limit?

CyberRanger 05-18-2007 11:05 AM

Quote:

Originally Posted by fotografik (Post 1249886)
Thanks for the clarification, and I have a follow-on question to your response above.

Does your statement mean that currently, the mod does not count soft-deleted posts/threads towards the user post/thread limit?

Example - Limit is set to 10 threads in a 24-hr period; I post 10 threads in the first hour; delete 5 in the next hour and post another 5; then delete all 10 in the 3rd hour and post another 10 - thus "bypassing" the limit?

Correct, that is the current setting. Changing it to count soft deletes would be very simple.

nickster 05-28-2007 08:59 PM

Hmmm.... I get this Database Error when importing the product

Code:

Database error in vBulletin 3.6.7:
Invalid SQL:
CREATE TABLE `keybase_tp_throttleposts` (
                `tp_id` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
                `tp_forumid` INT( 10 ) UNSIGNED NOT NULL ,
                `tp_usergroupid` INT( 10 ) UNSIGNED NOT NULL ,
                `tp_postlimit` INT( 5 ) NOT NULL DEFAULT '-1',
                `tp_threadlimit` INT( 5 ) NOT NULL DEFAULT '-1',
                `tp_posttime` INT( 10 ) NOT NULL DEFAULT '-1',
                `tp_threadtime` INT( 10 ) NOT NULL DEFAULT '-1',
                INDEX ( `tp_forumid` , `tp_usergroupid` )
                ) ENGINE = MYISAM ;;

Any help please? :confused:

CyberRanger 05-30-2007 01:54 PM

Quote:

Originally Posted by nickster (Post 1256461)
Hmmm.... I get this Database Error when importing the product

Can you see if you get the same error using the attached product file?

nickster 05-30-2007 06:26 PM

Quote:

Originally Posted by CyberRanger (Post 1257611)
Can you see if you get the same error using the attached product file?

WORKS! Thanks a million CyberRanger!

You should post this on mod page! ;)

theFAILURE 05-30-2007 06:57 PM

If I set a limit for GUESTS, will this also put a limit on the Spiders that crawl my site all day?

I'd really hate to limit them :(

CyberRanger 05-30-2007 07:12 PM

Quote:

Originally Posted by theFAILURE (Post 1257827)
If I set a limit for GUESTS, will this also put a limit on the Spiders that crawl my site all day?

I'd really hate to limit them :(

No, it only restricts creating posts or threads, not reading them.

theFAILURE 05-30-2007 07:33 PM

Thanks for that simple explanation, it's my fault that I missed that LOL.

bigcurt 06-12-2007 04:57 PM

OK, I really the idea of this hack; as I am the one who requested the original hack ( something like this ) to Marco. However, I do have a question..can I make it so that a specific forum - can only have 1 thread per user..ever? Not just by time.

CyberRanger 06-12-2007 05:10 PM

Quote:

Originally Posted by bigcurt (Post 1267039)
OK, I really the idea of this hack; as I am the one who requested the original hack ( something like this ) to Marco. However, I do have a question..can I make it so that a specific forum - can only have 1 thread per user..ever? Not just by time.

That isn't literally an option BUT the amount of time between threads by a user can be set as high as 999,999,999 minutes or 1902 years! So, practically speaking that's the same as forever!

:D

bigcurt 06-13-2007 01:38 AM

I don't see where to limit the amount of threads per forum..I see the limit # of threads and how long to wait...but where is the per-forum basis??

CyberRanger 06-13-2007 02:22 AM

Quote:

Originally Posted by bigcurt (Post 1267315)
I don't see where to limit the amount of threads per forum..I see the limit # of threads and how long to wait...but where is the per-forum basis??

  1. First, make sure under admincp -> Throttle Posts/Threads -> General Settings that "Activate per Forum/Usergroup Checking" is set to Yes
  2. Now, click on Throttle Posts/Threads -> Per Forum/UserGroup Settings.
  3. Select the forum and usergroup from the drop down menu and set the delays how you want.

bigcurt 06-13-2007 08:32 PM

OK, I got it to work..thanks. What is the phrase/where can I edit the denial box for people that can't post a thread/post in that forum? What is the phrase name?

CMGU 06-14-2007 12:51 AM

mmm very nice

bigcurt 06-16-2007 05:42 PM

OK, so this is a great mod and all..but after having it installed for a while. Whens someone posts in my Introductions forum, and then tries to post in another section ( in that same forum group ) it doesn't let them..so I am not sure what the problem is, but I think it records the entire forum group and not just sub-forums, even though I have it input to just do one specific sub-forum.

Chad Beattie 06-17-2007 12:28 AM

Thank you for writing this! We really needed it. One question, shouldn't it state that allowed number of threads is in hours and not minutes? Meaning, when someone tries posting, and you have it set to 24, it says, number of posts/threads allowed for 24 minutes instead of 24 hours. Unless I'm reading this wrong. But in the code it takes your minute value times 60 which I assume it is taking hours and converting to minutes. So if you put '1' as the value, 1 * 60 would be 1 hour. But it would show the user, 1 minute.

CyberRanger 06-17-2007 01:11 AM

Quote:

Originally Posted by bigcurt (Post 1269866)
OK, so this is a great mod and all..but after having it installed for a while. Whens someone posts in my Introductions forum, and then tries to post in another section ( in that same forum group ) it doesn't let them..so I am not sure what the problem is, but I think it records the entire forum group and not just sub-forums, even though I have it input to just do one specific sub-forum.

It should only apply to the forum that the user is posting in and not impact sub-forums. If you want, PM me your site url with an admin login and password and I'll check it out.

CyberRanger 06-17-2007 01:13 AM

Quote:

Originally Posted by Chad Beattie (Post 1270075)
Thank you for writing this! We really needed it. One question, shouldn't it state that allowed number of threads is in hours and not minutes? Meaning, when someone tries posting, and you have it set to 24, it says, number of posts/threads allowed for 24 minutes instead of 24 hours. Unless I'm reading this wrong. But in the code it takes your minute value times 60 which I assume it is taking hours and converting to minutes. So if you put '1' as the value, 1 * 60 would be 1 hour. But it would show the user, 1 minute.

No, the time is in minutes. I originally had the defaults in hours, hence the 24. But, I changed it to minutes so that admins had more granular control. The time 60 is to bring the value in the time field into the right factor as the vb time stamp.


All times are GMT. The time now is 12:02 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.02280 seconds
  • Memory Usage 1,847KB
  • 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
  • (1)bbcode_code_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete