MyBB Community Forums

Full Version: What plugin is this?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey sorry if this isn't the correct forum, i just wanted to ask what plugin is it that requires a certain amount of posts to access a page?

Kind Regards.
Custom page?

Include global.php first (See this tutorial to know how to create custom PHP pages)

Then use something like below condition:

if($mybb->user['postnum'] != 10)
{
error("Your custom error");
}

Edit 10 with whatever amount of post restriction you want to keep.
What if user has 11 posts? You shoul use > or <. In this case:
if($mybb->user['postnum'] < 10)
{
error_no_permission();
}
Where do i put this?
Snap, sorry. Just went off my head. Sad

Use this:

if($mybb->user['postnum'] < 10)
{
error("Your custom error");
} 
Where in templates do i put this in?
page or forum section......?
I Want this to be on a specific forum, and maybe page.