Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Restrict Posting By Forum Details »»
Restrict Posting By Forum
Version: 1.9.6, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.x.x Rating:
Released: 11-26-2015 Last Update: 03-02-2016 Installs: 26
Uses Plugins
Translations  
No support by the author.

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.



Support for this product can be found here:

Download Now

File Type: zip MarkFL - Restrict Posting By Forum v1.9.6.zip (5.9 KB, 102 views)

Screenshots

File Type: jpg markfl_rpbf_acp.jpg (78.5 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
5 благодарности(ей) от:
Elixar, RichieBoy67, socialteenz, sodasusu, zorcocuq

Comments
  #32  
Old 12-19-2015, 06:24 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update 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.
Reply With Quote
  #33  
Old 12-20-2015, 03:46 PM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the updates, makes your work better and double better for us :up:

Something else.
In previous versions you had the phrase:
"You have made the maximum number of posts in this forum and cannot post any further."
After that I see:
"You are restricted from posting in this thread."

I have translated this to my needs and in Greek language. Some users ask my team members
why they are restricted and some of them don't know that they have reached the maximum number of posts.

Perhaps it would be better if they know to how many post they are restricted?
So in the phrase if its possible to include the code {1} or what else to show how many post is the restriction. sorry for my bad English


Thanks for all stuff and help you give us

P.S. If its possible and if others here likes it? when ever make an update again include this...
Reply With Quote
2 благодарности(ей) от:
jagtpf, MarkFL
  #34  
Old 12-28-2015, 03:11 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I take a look at the code and see it wouldn't be very easy to change this mod in restricting posting in certain threads. But, if you found time and will to make it, it would be great if only certain threads can be restricted.

On my site is popular for people to ask questions, but some really ask too many questions. I don't want to block them from writing at all in certain forums, but if certain threads would be only for asking questions, this would control them.
Reply With Quote
2 благодарности(ей) от:
jagtpf, MarkFL
  #35  
Old 01-07-2016, 03:10 AM
tanzeelniazi tanzeelniazi is offline
 
Join Date: Apr 2012
Posts: 375
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you please add
Posting Limit in Different forums
Threads Limit in different forum
Usergroup Posting limit in different forum
Please add more tabs to select posting limit by usegroup for different forums/Sections
Reply With Quote
  #36  
Old 01-24-2016, 08:54 AM
jagtpf jagtpf is offline
 
Join Date: Mar 2015
Location: Scotland
Posts: 176
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this Mark.
Reply With Quote
Благодарность от:
MarkFL
  #37  
Old 01-26-2016, 08:09 AM
jagtpf jagtpf is offline
 
Join Date: Mar 2015
Location: Scotland
Posts: 176
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Confusingly 20 odd Forums are under restriction for "Members" -
the limit for New Threads -
within 1440 minutes,
and yet a newbie posted 4 within 28 minutes.

That suggests to me that the restriction is limiting 2 in each of these Forums - not across the whole of the 20+.
Reply With Quote
  #38  
Old 01-26-2016, 01:32 PM
jagtpf jagtpf is offline
 
Join Date: Mar 2015
Location: Scotland
Posts: 176
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had the checks along side each Child Forum as appropriate.

I stripped out the settings and, instead, checked by Forum instead of Child-Forum - but the result is the same.

I guess that's how the mod was designed?
Reply With Quote
  #39  
Old 01-26-2016, 03:01 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jagtpf View Post
Confusingly 20 odd Forums are under restriction for "Members" -
the limit for New Threads -
within 1440 minutes,
and yet a newbie posted 4 within 28 minutes.

That suggests to me that the restriction is limiting 2 in each of these Forums - not across the whole of the 20+.
Yes, if you have several forums restricted, users will be able to post up to the limit in each of the restricted forums. Suppose you have the restriction set to a maximum of 5 posts, then they can post up to 5 times in each restricted forum, not a total of 5 posts over all of the restricted forums.

Would you like a setting that will allow the restriction to be totaled over all restricted forums?

Quote:
Originally Posted by jagtpf View Post
I had the checks along side each Child Forum as appropriate.

I stripped out the settings and, instead, checked by Forum instead of Child-Forum - but the result is the same.

I guess that's how the mod was designed?
Yes, child forums are included in the restriction by design. I should have made a note of that in the setting description, but didn't.

Would you prefer a setting to let you decide whether child forums are included?
Reply With Quote
Благодарность от:
jagtpf
  #40  
Old 01-26-2016, 03:29 PM
jagtpf jagtpf is offline
 
Join Date: Mar 2015
Location: Scotland
Posts: 176
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Mark - It was hoped that the restriction would affect all Forums as if they were grouped. As you rightly say, 20+ Child-Forums, restricted to 2, would equal 40+ new threads whereas the hope was those 20+ Child-Forums would be restricted enmass to 2 new threads.

Using Forums, rather than Child-Forums; would that be an easier way to go about it? Those 20+ Children are over 3 Forums.
Reply With Quote
Благодарность от:
MarkFL
  #41  
Old 01-26-2016, 03:35 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jagtpf View Post
Hi Mark - It was hoped that the restriction would affect all Forums as if they were grouped. As you rightly say, 20+ Child-Forums, restricted to 2, would equal 40+ new threads whereas the hope was those 20+ Child-Forums would be restricted enmass to 2.
Okay, I will add a setting that lets you decide whether each restricted forum is restricted separately or all restricted forums are restricted as a group.

Quote:
Originally Posted by jagtpf View Post
Using Forums, rather than Child-Forums; would that be an easier way to go about it? Those 20+ Children are over 3 Forums.
I initially felt that including child forums would make things easier. I will include a setting that allows you to decide whether child forums are included or not, to give you more precise control.

Look for this update to come within a couple of days.
Reply With Quote
Reply


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 07:59 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.05373 seconds
  • Memory Usage 2,366KB
  • Queries Executed 29 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (12)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete