plugin/mod
#1
is there a plugin/mod that can actually HIDES the forum until they reach a certain amount of posts...not like nickmans plugin/mod.
If You Are En I Tee, You Are Eeh

Blush Cool
Reply
#2
Open inc/functions_forumlist.php

Find
$plugins->run_hooks("build_forumbits_forum");

Add Above
			$fids = array('2');
			if(is_array($fids))		
			{
				if(in_array($forum['fid'], $fids) && $mybb->user['postnum'] < x)
				{
					continue;
				}
			}

Change $fids array with the FIDS to hide when they didn't reach a min of posts. Replace x with the minimum of posts they need to have.
Reply
#3
thanks man[/size]
If You Are En I Tee, You Are Eeh

Blush Cool
Reply
#4
how do u hide a certain forum, example : the downloads.
If You Are En I Tee, You Are Eeh

Blush Cool
Reply
#5
And what are the conditions ? Only viewable for admins / supermods / ... ?
Reply
#6
until the reach the posts they need
If You Are En I Tee, You Are Eeh

Blush Cool
Reply
#7
You'd want to use LeX's code. You'd need to get the forum ID of the downloads forum. To get it, simply go to the download forum, then look at the URL. Find the part that says "fid=#". Get the number. Then, add it to the $fids array in the code. Then, replace 'x' with the number of posts the user will need.

LeX- Wrote:Open inc/functions_forumlist.php

Find
$plugins->run_hooks("build_forumbits_forum");

Add Above
			$fids = array('2');
			if(is_array($fids))		
			{
				if(in_array($forum['fid'], $fids) && $mybb->user['postnum'] < x)
				{
					continue;
				}
			}

Just copy and paste the new code into the file. Then re-upload the file to your server. You're done!

Please do not PM me about problems you might be having with MyBB. Post a thread, and someone on the support or development team will take a look at it.
Reply
#8
where do you add the forum id in the code??
If You Are En I Tee, You Are Eeh

Blush Cool
Reply
#9
krazygamers Wrote:where do you add the forum id in the code??

Did you read my first post ? I've said add them to the fids array ...

$fids = array('2');
Reply
#10
For each extra FID that you add, instead of putting them all inside the same quotes, do this:

, 'FID'
so that the final result looks something like this:

$fids = array('2', '3');

Please do not PM me about problems you might be having with MyBB. Post a thread, and someone on the support or development team will take a look at it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)