vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=324605

Restricting new threads/post to members with less than x number of posts
by Snowhog
06 Mar 2017 02:02

I want to be able to restrict new threads/posts in one of our forums based on the member having less than x number of posts to their credit. Can this be done? Is there a MOD that has this feature?

MarkFL 06 Mar 2017 04:24

1 Attachment(s)
Hey Paul! :)

I have attached a product that should do just what you want. Give it a try, and let me know if there are any issues, or there are any features you'd like added. ;)

Once you import the product, you'll have to visit the settings to enable the product, and to define your forums and their minimum post counts. Everything is explained in the settings.

Once I know you are happy with it, I will publish it and cite you as the co-author since it was your idea. :up:

Snowhog 06 Mar 2017 04:27

Thank you. Won't get to it tonight; just to tired (did a 3 hour, 41.8 mile bicycle ride this afternoon). But tomorrow I'll install it and let you know.

Much appreciated, as always!

MarkFL 06 Mar 2017 04:37

Quote:

Originally Posted by Snowhog (Post 2583292)
Thank you. Won't get to it tonight; just to tired (did a 3 hour, 41.8 mile bicycle ride this afternoon). But tomorrow I'll install it and let you know.

Much appreciated, as always!

Wow! I'm more tired now just thinking about a 41.8 mile bike ride! :eek: :p

Stratis 06 Mar 2017 12:42

More complicated many options.. And this one to http://www.vbulletin.org/forum/showthread.php?t=233979 :)
Marks is easier

Snowhog 06 Mar 2017 15:34

Quote:

Originally Posted by MarkFL (Post 2583291)
Hey Paul! :)

I have attached a product that should do just what you want. Give it a try, and let me know if there are any issues, or there are any features you'd like added. ;)

Once you import the product, you'll have to visit the settings to enable the product, and to define your forums and their minimum post counts. Everything is explained in the settings.

Once I know you are happy with it, I will publish it and cite you as the co-author since it was your idea. :up:

Installed. I'm looking at the settings now, and what you put together is the opposite of what I want.

This MOD allows one to set 'minimum' posts a member must have before they are permitted to post to specified forums. I have, at this time, a single forum area I want to limit who can post to.

The forum I want to limit members posting in is called Help the New Guy. I want to be able to set a 'maximum' number of posts a member can have and still be permitted to post in this forum. Once they have more than x number of posts (the 'maximum' allowed), they would be blocked from posting in this forum; they would have to choose among the many other 'topic specific' forums we have.

So, say I set a limit of 50 posts. Any member who has 50 or less posts would be able to post in this forum. Once any member reaches 51 or more posts, they would be blocked from being able to post in this forum.

MarkFL 06 Mar 2017 15:43

When you said:

Quote:

Originally Posted by Snowhog (Post 2583289)
I want to be able to restrict new threads/posts in one of our forums based on the member having less than x number of posts to their credit. Can this be done? Is there a MOD that has this feature?

I thought you meant the restriction would be imposed on those having less than x posts. :eek:

Snowhog 06 Mar 2017 15:45

That's the problem with trying to communicate only in written form. One has to be very careful, doing their best to 'say' what they want the other person to 'hear'.

Did my last post make my need any clearer?

MarkFL 06 Mar 2017 16:03

Quote:

Originally Posted by Snowhog (Post 2583312)
That's the problem with trying to communicate only in written form. One has to be very careful, doing their best to 'say' what they want the other person to 'hear'.

Did my last post make my need any clearer?

Yes, and so what I'll do is add a second setting that allows for defining a maximum post count. But let me ask you, in this "Help The New Guy" forum, you want only those with a low post count to be able to help the new guy? Should this restriction just be on posting new threads but not on posting replies to existing threads?

Snowhog 06 Mar 2017 16:13

Quote:

Originally Posted by MarkFL (Post 2583314)
Yes, and so what I'll do is add a second setting that allows for defining a maximum post count. But let me ask you, in this "Help The New Guy" forum, you want only those with a low post count to be able to help the new guy? Should this restriction just be on posting new threads but not on posting replies to existing threads?

Ah, I hadn't thought about that aspect. Hmm.

Okay, yes, I want to restrict creation of 'new threads' in this forum based on a member having no more than x posts, but anyone can reply to the threads in this forum.

MarkFL 06 Mar 2017 16:23

Okay, I will see what I can do. :)

MarkFL 08 Mar 2017 17:04

1 Attachment(s)
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Let me know if this fits the bill, and if you need any additional features. :)

Snowhog 08 Mar 2017 18:06

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.

MarkFL 08 Mar 2017 19:28

Quote:

Originally Posted by Snowhog (Post 2583460)
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 (Post 2583460)
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 (Post 2583460)
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:

Snowhog 08 Mar 2017 20:37

Ah, okay.

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



All times are GMT. The time now is 00:52.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.