Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Restricted Forums By Post Count Details »»
Restricted Forums By Post Count
Version: 1.1, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: New Posting Features - Version: 4.2.x Rating:
Released: 03-08-2017 Last Update: 03-26-2017 Installs: 14
Uses Plugins Auto-Templates
Translations  
No support by the author.

This product is the result of a request posted by Snowhog here:

Restricting new threads/post to members with less than x number of posts

Overview:

This product allows you to designate forums by forumid where posting is restricted based on post count. You may set either a minimum or maximum post count required. You may set whether new threads, new replies, or both are restricted. You may designate usergroups that are exempt from any restrictions. You may define global CSS to be applied to the user alert message, that will override the CSS for the element defined by the product's StyleVars. You may decide not to show an alert message, to show a message only stating the user's post count prohibits them from posting, or to show a message that also includes why their post count prevents them from posting.



Product Settings:
  • Enable Product?: Set whether product is active or not (Yes or No).
  • Forumids And Their Restrictions: Enter on separate lines, the comma-delimited lists of forumids, followed by the pipe "|" followed by the restriction type (threads, posts, or both) another pipe whether the postcount will be a max or a min, and finally the post count used as the threshold.

    For example:

    2,4,7|threads|max|10
    3,5,6|both|min|50

    will require users to have no more than 10 posts in their post count to post new threads in forums 2, 4, or 7 and at least 50 posts in their post count to post new threads and replies to threads in forums 3,5, or 6.
  • Exempt Usergroups: Select the usergroups who will be exempt from the posting restrictions.
  • Exempt Users: Enter the usernames of users who will be exempt from this product, each on a separate line. Usernames are case-insensitive.
  • Message CSS: Enter any additional CSS you'd like to be applied to the message to restricted users, in all styles.

    Note: Any CSS entered here will override the product's StyleVars.
  • Show Explanation?: Set whether to explain to users that they cannot post. You may choose either:

    No
    Yes (Only that posting is not allowed)
    Yes (Include why posting is not allowed)
Alert Message Phrases:


  • markfl_rfbpc_nonewreplies: This phrase is shown to users who are restricted from posting new replies in threads within restricted forums if you choose any option other than "No" in the "Show Explanation?" setting. The default value is:

    Your post count prohibits you from posting new replies in this forum!
  • markfl_rfbpc_nonewthreads: This phrase is shown to users who are restricted from posting new threads within restricted forums if you choose any option other than "No" in the "Show Explanation?" setting. The default value is:

    Your post count prohibits you from posting new threads in this forum!
  • markfl_rfbpc_toofew_replies: This phrase is shown to users who are restricted from posting new replies in threads within restricted forums because their post count is too low if you choose "Yes (Include why posting is not allowed)" in the "Show Explanation?" setting. The default value is:

    Users with less than {1} posts cannot reply to threads here. Your post count is currently {2}.
  • markfl_rfbpc_toofew_threads: This phrase is shown to users who are restricted from posting new threads within restricted forums because their post count is too low if you choose "Yes (Include why posting is not allowed)" in the "Show Explanation?" setting. The default value is:

    Users with less than {1} posts cannot create new threads here. Your post count is currently {2}.
  • markfl_rfbpc_toomany_replies: This phrase is shown to users who are restricted from posting new replies in threads within restricted forums because their post count is too high if you choose "Yes (Include why posting is not allowed)" in the "Show Explanation?" setting. The default value is:

    Users with more than {1} posts cannot reply to threads here. Your post count is currently {2}.
  • markfl_rfbpc_toomany_threads: This phrase is shown to users who are restricted from posting new threads within restricted forums because their post count is too high if you choose "Yes (Include why posting is not allowed)" in the "Show Explanation?" setting. The default value is:

    Users with more than {1} posts cannot create new threads here. Your post count is currently {2}.
StyleVars:



You will find this product's StyleVars in the group labeled "MarkFL_Restricted_Forums_By_Post_Count" and they are as follows:
  • markfl_rfbpc_alertbackground: The background color of the user alert messages.
  • markfl_rfbpc_alertborder: The border for the user alert message element.
  • markfl_rfbpc_alertborderradius: The border radius for the user alert message element.
  • markfl_rfbpc_alertcolor: The text color of the user alert messages.
  • markfl_rfbpc_alertfont: The font for the user alert messages.
  • markfl_rfbpc_alertmisc: Any additional style specific CSS.
As stated previously, you may set global CSS that will override any style specific CSS defined by the StyleVras in the product setting labeled "Message CSS."

Updates:

Version 1.1:
  • Added setting to allow exempting individual users by username.

Compatibility:

Tested and working on VB 4.2.x and may 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 - Restricted Forums By Post Count v1.1.zip (6.9 KB, 69 views)

Screenshots

File Type: png markfl_rfbpc_message.png (19.4 KB, 0 views)
File Type: png markfl_rfbpc_phrases.png (22.9 KB, 0 views)
File Type: jpg markfl_rfbpc_stylevars.jpg (101.8 KB, 0 views)
File Type: jpg markfl_rfbpc_acp.jpg (67.0 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-09-2017, 06:23 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why such a MOD? Well, for us; a Linux (Kubuntu) support forum; we have many topic specific forums (for individual versions of Kubuntu) as well as some general topic and one Help the New Guy forum.

Our Help the New Guy forum has been generally overused by some of our members, with new threads made there that should properly have been made in a topic specific forum.

Newbie members; those for whom that forum was created; who have little to no experience with Kubuntu Linux; see them selves as 'the new guy' and gravitate to this forum (as they generally don't know what the real issue of their problem is, so aren't comfortable choosing a topic specific forum). Our problem is/was that a number of these 'newbies' are no longer 'the new guy'; they have been members for quite some time (even a long time), having made many, many new threads/posts, but continue to use this forum for new issues. This MOD allows me to establish controls on who can create new threads (the 'overused' issue) in that forum, and for me, solves the overuse issue.

This is version 1.0, but I think it likely that some additions/changes will ensue, as one almost never gets it 'perfect' the first time out of the gate!

Thank you MarkFL for another extremely useful MOD.
Reply With Quote
Благодарность от:
MarkFL
  #3  
Old 03-12-2017, 02:43 PM
mitch84 mitch84 is offline
 
Join Date: Mar 2008
Location: france
Posts: 516
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great idea, thx!
Reply With Quote
Благодарность от:
MarkFL
  #4  
Old 03-16-2017, 03:13 AM
Elixar's Avatar
Elixar Elixar is offline
 
Join Date: Jan 2014
Posts: 579
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nicely done Mark.
Reply With Quote
Благодарность от:
MarkFL
  #5  
Old 03-26-2017, 12:07 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need a modification to this MOD. I need to be able to identify individual excluded users; users who won't be affected by this MOD. For us, this is important.

Additionally, I would like to be able to customize the Statement(s) presented, instead of them being hard coded.
Reply With Quote
Благодарность от:
MarkFL
  #6  
Old 03-27-2017, 03:40 AM
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 Snowhog View Post
I need a modification to this MOD. I need to be able to identify individual excluded users; users who won't be affected by this MOD. For us, this is important.
Update - Version 1.1:
  • Added setting to allow exempting individual users by username.

Quote:
Originally Posted by Snowhog View Post
Additionally, I would like to be able to customize the Statement(s) presented, instead of them being hard coded.
They aren't actually hard-coded. You can change them by editing the "Alert Message Phrases."
Reply With Quote
  #7  
Old 03-27-2017, 07:59 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I start to be confused with this one now Restrict Posting By Forum
Reply With Quote
Благодарность от:
MarkFL
  #8  
Old 03-27-2017, 05:19 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
Update - Version 1.1:
  • Added setting to allow exempting individual users by username.



They aren't actually hard-coded. You can change them by editing the "Alert Message Phrases."
Thank you.

This request for modification of the MOD was the result of it's impact on one specific member on our forum. He is an elderly man, isolated (mainly) from the rest of the world, and his only real contact with 'people' is through our forum. He has memory issues as well, and he uses our Help the New Guy forum exclusively, even though he has been a member now for quite a long time and has made many, many posts. But he (still) considers himself "the new guy" and so, posts exclusively in that forum. He was taken aback when he tried to make a new thread (in that forum) and receive the message that he could not. He thought that he had become 'non grata' for some reason he didn't understand, and reached out to me.
Reply With Quote
Благодарность от:
Alan_SP
  #9  
Old 03-27-2017, 08:41 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Downloaded and installed. I've added my affected member to the Exempt Users section. Thank you for this addition (I should have thought of this in the beginning).

The restriction 'type' I will be using is threads, so if I want to change the alert messages associated with that type, would I edit the phrases in markfl_rfbpc_nonewthreads and markfl_rfbpc_toomany_threads?
Reply With Quote
  #10  
Old 03-27-2017, 09:04 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, as long as the restriction is a maximum.
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 12:00 AM.


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.05219 seconds
  • Memory Usage 2,352KB
  • Queries Executed 27 (?)
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
  • (3)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (6)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (5)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • 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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete