Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Need x post to view
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Need x post to view
There isn't really a definite nice solution through conditionals.  But I guess you could always try something like: (requires PHP)

PHP Code:
1
2
3
4
5
6
7
8
9
<?php
if($mybb->user['uid']) {
global $db;
$postcount_day = $db->fetch_field($db->simple_select('posts', 'count(pid) as pc', 'uid='.$mybb->user['uid'].' AND dateline>'.(TIME_NOW-86400)), 'pc');
if($postcount_day >= 5 && $mybb->user['usergroup'] == 5) {
  echo 'some custom message';
}
}
?>


My Blog
08-10-2011 09:08 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Need x post to view - blakefire - 08-10-2011, 07:50 AM
RE: Need x post to view - ZiNgA BuRgA - 08-10-2011 09:08 AM
RE: Need x post to view - blakefire - 08-10-2011, 02:49 PM
RE: Need x post to view - ZiNgA BuRgA - 08-10-2011, 04:03 PM
RE: Need x post to view - blakefire - 08-10-2011, 04:06 PM
RE: Need x post to view - ZiNgA BuRgA - 08-10-2011, 05:03 PM

 Standard Tools
Forum Jump: