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 01: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 03: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 03: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 03: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 11: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 14: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 14: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 14: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 15: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 15: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 15:23

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

MarkFL 08 Mar 2017 16: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 17: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 18: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 19: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.


MarkFL 08 Mar 2017 20:00

2 Attachment(s)
Quote:

Originally Posted by Snowhog (Post 2583479)
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.

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:


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

Then, I get the following:

http://www.vbulletin.org/forum/attac...1&d=1489006711

Snowhog 08 Mar 2017 20:20

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?

MarkFL 08 Mar 2017 20:26

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. :)

Snowhog 08 Mar 2017 21:28

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!

MarkFL 08 Mar 2017 23:03

Quote:

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

MarkFL 09 Mar 2017 18:20

I have updated and published the product here:

Restricted Forums By Post Count

:)

Prince 08 Sep 2019 20:28

Does this mod or is there a mod that restricts users from even seeing a forum or sub-forum based on either being logged in or post count?

HM666 09 Sep 2019 02:27

Quote:

Originally Posted by Prince (Post 2600588)
Does this mod or is there a mod that restricts users from even seeing a forum or sub-forum based on either being logged in or post count?

You could set that up within vB without installing anything new. You can create a usergroup that has access to that particular forum and if you want you can make it where no other usergroups other than staff can see or post in that forum. As for post count when you create the usergroup create a usergroup promotion that will give access after they reach the post count amount. As for being logged in you can restrict forums so they are not seen when someone is logged out.


All times are GMT. The time now is 01:22.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, 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.