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)

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.


All times are GMT. The time now is 03:25 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.01968 seconds
  • Memory Usage 1,750KB
  • 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
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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