MyBB Hacks

Full Version: post X count before view category
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

PHP Code:
<if $mybb->user['postnum'] >= 500 || in_array($GLOBALS['mybb']->user['usergroup'], array(1,2,3,and else)) || $fid != "your forum id here" then>
<else>

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead"><strong>Requirement</strong></td>
</tr>
<tr>
<td class="trow1">
<span class="smalltext">
Some Rules Here by indolokal http://indo-lokal.com
</span>
</td>
</tr>
</table>

</if>

can someone make this code work in template?

PHP Code:
	if ($power != "0" && in_array($group,$groups) && in_array($fid,$forums) && !in_array($mybb->user['uid'],$uids) && $mybb->user['postnum'] < $req_posts){
		error("We are sorry but you are not allowed to access <strong>".$forum_name."</strong> forum. Minimum amount of posts required to access <strong>".$foruminfo['name']."</strong> forum is <strong>".$req_posts."</strong> posts but your post count is just <strong>".$mybb->user['postnum']."</strong> posts.");
	}

Nope.
Reference URL's