Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 post X count before view category
bekti Offline
Junior Member
**
Posts: 43
Joined: Mar 2012
Post: #1
post X count before view category

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<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>

(This post was last modified: 08-30-2012 12:38 AM by bekti.)
08-29-2012 11:53 PM
Find all posts by this user Quote this message in a reply
bekti Offline
Junior Member
**
Posts: 43
Joined: Mar 2012
Post: #2
RE: post X count before view category
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.");
	}

08-30-2012 02:11 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #3
RE: post X count before view category
Nope.

My Blog
08-30-2012 03:39 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: