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

Reply
 
Thread Tools
Throttle Posts/Threads (restrict number of posts/threads by usergroup/forum by time) Details »»
Throttle Posts/Threads (restrict number of posts/threads by usergroup/forum by time)
Version: 2.1, by CyberRanger CyberRanger is offline
Developer Last Online: Jan 2015 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.7 Rating:
Released: 11-06-2006 Last Update: 06-28-2007 Installs: 189
Uses Plugins
Re-useable Code Additional Files Translations  
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
aaronhaul, akz645, TAIFUN_T

Comments
  #22  
Old 05-17-2007, 02:01 PM
fotografik fotografik is offline
 
Join Date: Jun 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!"
Reply With Quote
  #23  
Old 05-17-2007, 02:24 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fotografik View Post
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 View Post
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 View Post
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?
Reply With Quote
  #24  
Old 05-18-2007, 01:19 AM
fotografik fotografik is offline
 
Join Date: Jun 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CyberRanger View Post
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?
Reply With Quote
  #25  
Old 05-18-2007, 11:05 AM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fotografik View Post
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.
Reply With Quote
  #26  
Old 05-28-2007, 08:59 PM
nickster nickster is offline
 
Join Date: Feb 2007
Location: Ottawa, Canada
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #27  
Old 05-30-2007, 01:54 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nickster View Post
Hmmm.... I get this Database Error when importing the product
Can you see if you get the same error using the attached product file?
Reply With Quote
  #28  
Old 05-30-2007, 06:26 PM
nickster nickster is offline
 
Join Date: Feb 2007
Location: Ottawa, Canada
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CyberRanger View Post
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!
Reply With Quote
  #29  
Old 05-30-2007, 06:57 PM
theFAILURE's Avatar
theFAILURE theFAILURE is offline
 
Join Date: Jan 2005
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #30  
Old 05-30-2007, 07:12 PM
CyberRanger's Avatar
CyberRanger CyberRanger is offline
 
Join Date: Mar 2004
Posts: 1,319
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by theFAILURE View Post
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.
Reply With Quote
  #31  
Old 05-30-2007, 07:33 PM
theFAILURE's Avatar
theFAILURE theFAILURE is offline
 
Join Date: Jan 2005
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for that simple explanation, it's my fault that I missed that LOL.
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 06:22 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.05918 seconds
  • Memory Usage 2,323KB
  • 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
  • (8)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (3)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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