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.");
}
|