Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 03-06-2017, 02:23 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I will see what I can do.
Reply With Quote
  #12  
Old 03-08-2017, 03:04 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Paul,

I have updated the product (and attached it here), and instead of adding more settings, I allowed more flexibility in the existing setting. Now you can define whether new threads, new replies, or both are restricted, and whether the post count is a maximum or a minimum.

For your application, where X is the forumid of your "Help The New Guy" forum, enter into the setting "Forumids And Their Restrictions" the following:

Code:
X|threads|max|50
Let me know if this fits the bill, and if you need any additional features.
Attached Files
File Type: xml product-markflrestrictedforums.xml (9.4 KB, 6 views)
Reply With Quote
  #13  
Old 03-08-2017, 04:06 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you. It's installed and set as active, specifying 15|threads|max|50.

The only thing left would be for a message to be displayed to an affected member, such as:

Quote:
15|threads|max|50|You are not permitted to create your new thread here. Please use a topic specific forum.
Settings for the message box itself would need to be added, but I think that would be simple enough, as several of your other MODs already have the coding to do that.

I remain extremely grateful for your assistance and believe in supporting those from whom I derive a benefit. Free support isn't free; there is always a cost, even if it is just the expenditure of time put in to making something available for others 'at no cost'. A persons time and talents are a valued commodity and should not be taken for granted.

I can't support you directly here, so I've made a contribution to http://mathhelpboards.com. It's the very least I can do for the assistance you've provided and that I've benefited from.
Reply With Quote
Благодарность от:
MarkFL
  #14  
Old 03-08-2017, 05:28 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 Snowhog View Post
Thank you. It's installed and set as active, specifying 15|threads|max|50.

The only thing left would be for a message to be displayed to an affected member...
A message is already displayed to affected users.

Quote:
Originally Posted by Snowhog View Post
Settings for the message box itself would need to be added, but I think that would be simple enough, as several of your other MODs already have the coding to do that.
I could add an "Additional CSS" setting to be applied to the message element.

Quote:
Originally Posted by Snowhog View Post
I remain extremely grateful for your assistance and believe in supporting those from whom I derive a benefit. Free support isn't free; there is always a cost, even if it is just the expenditure of time put in to making something available for others 'at no cost'. A persons time and talents are a valued commodity and should not be taken for granted.

I can't support you directly here, so I've made a contribution to http://mathhelpboards.com. It's the very least I can do for the assistance you've provided and that I've benefited from.
While not necessary, that is certainly appreciated! :up:
Reply With Quote
  #15  
Old 03-08-2017, 06:37 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, okay.

Are these the only two elements in the .xml file that handle the message?

Code:
			<phrase name="markfl_rfbpc_nonewreplies" date="1488990604" username="MarkFL" version="1.0"><![CDATA[Your post count prohibits you from posting new replies in this forum!]]></phrase>
			<phrase name="markfl_rfbpc_nonewthreads" date="1488990639" username="MarkFL" version="1.0"><![CDATA[Your post count prohibits you from posting new threads in this forum!]]></phrase>
Reply With Quote
  #16  
Old 03-08-2017, 07:00 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 Snowhog View Post
Ah, okay.

Are these the only two elements in the .xml file that handle the message?

Code:
			<phrase name="markfl_rfbpc_nonewreplies" date="1488990604" username="MarkFL" version="1.0"><![CDATA[Your post count prohibits you from posting new replies in this forum!]]></phrase>
			<phrase name="markfl_rfbpc_nonewthreads" date="1488990639" username="MarkFL" version="1.0"><![CDATA[Your post count prohibits you from posting new threads in this forum!]]></phrase>
Yes, those are the only phrases controlling the user messages.

I have attached an update which will allow you to add CSS to the message elements.

For example, when I add the following CSS to the "Message CSS" setting:

Code:
width: 75%;
padding: 5px;
border: 1px solid #FF0000;
border-radius: 6px;
background :#FFFF00;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
Then, I get the following:

Attached Images
File Type: jpg rmessage.jpg (60.6 KB, 0 views)
Attached Files
File Type: xml product-markflrestrictedforums.xml (10.3 KB, 4 views)
Reply With Quote
  #17  
Old 03-08-2017, 07:20 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your screenshot raises a question:

As your MOD is written, at what point does the check against the members post count occur? It looks as if, based on the screenshot, it happens when they enter the affected forum. If that is the case, that isn't good. Anyone, regardless of post count, should be able to enter the forum and read it's content. Only affected members should be prevented from creating within the forum.

Or am I misleading myself by the screenshot; by what I see?
Reply With Quote
  #18  
Old 03-08-2017, 07:26 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The screenshot just shows that the message explains to the user why there are no "Post New Thread" buttons...they can still browse the threads, and if the restriction is only on creating new threads, they can still reply to the existing threads.
Reply With Quote
  #19  
Old 03-08-2017, 08:28 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I tested by logging in with a testing user account (with 51 posts).

When I select (go into) our Help the New Guy forum I see the banner message at the top of the Thread Listing as shown in your screenshot and the Post New Thread button is absent. When I click on any of the threads, the banner message isn't displayed.

So, this looks quite nice and accomplishes what I wanted. Good job!
Reply With Quote
  #20  
Old 03-08-2017, 10:03 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 Snowhog View Post
Okay, I tested by logging in with a testing user account (with 51 posts).

When I select (go into) our Help the New Guy forum I see the banner message at the top of the Thread Listing as shown in your screenshot and the Post New Thread button is absent. When I click on any of the threads, the banner message isn't displayed.

So, this looks quite nice and accomplishes what I wanted. Good job!
Alright...good deal!Thank you for the feedback.

I'll likely go over it for a bit to see if there's anything I missed and then publish it.
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 04:37 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.08350 seconds
  • Memory Usage 2,300KB
  • Queries Executed 12 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (3)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_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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • 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