vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Restrict Posting By Forum (https://vborg.vbsupport.ru/showthread.php?t=320912)

MarkFL 11-26-2015 10:00 PM

Restrict Posting By Forum
 
1 Attachment(s)
The add-on is in response to a request posted by Stratis in this thread:

Deny more than x posts in a specific forum

Stratis has been instrumental in the testing and development of this add-on. :up:

Overview:

This product allows you to select forums in which posting is restricted to a maximum number of posts, which you decide. Restrictions can be for all new posts including new threads, or new posts excluding new threads, or to posting within the threads of others only or posting new threads only. You may exclude selected usergroups from the restriction. Users who attempt to circumvent the product by manually entering URLs in their browsers will be shown the no permission message. You may decide to only count posts within the last x days to determine whether a user may post or not.

Updates:

Version 1.1:
  • Added a setting whereby individual users may be excluded from the posting restriction regardless of usergroup.

Version 1.2:
  • Added informative message to users for who posting is restricted.
  • All posting links are now hidden by setting appropriate variables used in template conditionals rather than simply hiding them using CSS.

Version 1.3:
  • Bug fixed where users were told they have no permission to post.

Version 1.4:
  • Exempt userlist trimmed for greater compatibility across platforms.

Version 1.4.1:
  • Made $threadinfo global for wider compatibility.

Version 1.5:
  • Added setting which allows only posts made within the last x days to be counted for the restriction.

Version 1.6:
  • Added setting which allows users to be restricted from posting new threads.
  • Added setting which allows a choice of time unit for counting posts/threads.

Version 1.7:
  • Post counts calculated immediately prior to posting new threads/replies so that posting from tab with no restriction by opening new tab with posting link is no longer possible.

Version 1.8:
  • Added setting to allow control over whether child forums are included in the slected restricted forums.
  • Added setting to allow all restricted forums to be treated as a group, or to be treated separately.

Version 1.9:
  • Added setting to allow for individually defined post limits for the restricted forums.

Version 1.9.5:
  • Restricted posting message on both the "forum display" and "show thread" pages now displayed both above and below threads/posts.

Version 1.9.6:
  • Fixed bug where only last individual forum|restriction was recognized on some servers.

Compatibility:

Tested and working on VB 4.2.x and should work on all 4.x versions of vBulletin.

Backup/Warning:

This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:
  1. Download and extract the attached .zip file.
  2. Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  3. Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  4. Click "Import."
  5. You MUST enable the product in the settings before it will function.
  6. Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.

https://vborg.vbsupport.ru/attachmen...1&d=1454043772

Support for this product can be found here:

akz645 11-27-2015 03:49 PM

Questions:
1) If person A was in usergroup X and lets say usergroup X had a 'post limit' of 5.
Lets say person A posted 4 times.
Now person B is also in usergroup X and posted 3 times.
Is this possible?
So basically, I want to know if it restricts the entire usergroup to 5 posts or just a single user in that usergroup to 5 posts.

2) What if I wanted different 'post limit' on different forums?

3) What if I wanted different 'Nature of restriction' on different forums?

MarkFL 11-27-2015 03:57 PM

Quote:

Originally Posted by akz645 (Post 2559418)
Questions:
1) If person A was in usergroup X and lets say usergroup X had a 'post limit' of 5.
Lets say person A posted 4 times.
Now person B is also in usergroup X and posted 3 times.
Is this possible?
So basically, I want to know if it restricts the entire usergroup to 5 posts or just a single user in that usergroup to 5 posts.

The restriction does not apply for each usergroup as a whole, but for each individual.

Quote:

Originally Posted by akz645 (Post 2559418)
2) What if I wanted different 'post limit' on different forums?

3) What if I wanted different 'Nature of restriction' on different forums?

At this time, both the post limit and the nature of the restriction apply to all restricted forums. I may look into allowing defining separate restrictions for each forum. :)

MarkFL 11-28-2015 07:17 PM

Update Version 1.1:
  • Added a setting whereby individual users may be excluded from the posting restriction regardless of usergroup.

Stratis 11-28-2015 07:38 PM

New future tested, excellent, works like a charm and very useful. :up:

MarkFL 11-29-2015 03:15 AM

Update Version 1.2:
  • Added informative message to users for who posting is restricted.
  • All posting links are now hidden by setting appropriate variables used in template conditionals rather than simply hiding them using CSS.

MarkFL 12-04-2015 08:58 AM

Update Version 1.4:
  • Exempt userlist trimmed for greater compatibility across platforms.

Stratis 12-04-2015 03:47 PM

Great success to all. Thanks Mark for another time :up:

socialteenz 12-10-2015 06:37 PM

Great work Mark.

Thank you.

jagtpf 12-14-2015 02:42 PM

Would it be possible to extend this to limit new threads in a 24 hour period, by Forum and Usergroup, whilst allowing unlimited posts?

We use good will to limit one Usergroup to 2 New, another Usergroup to 3 New - whilst posting is unlimited. It mostly works except for excitable newbies and the occasional mis-counter :D


All times are GMT. The time now is 01:35 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.01189 seconds
  • Memory Usage 1,749KB
  • 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_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
  • (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