tom322
Since $user_num_posts is generated after the language pack included, and this hack is applied for language pack, most probably it won't work.
Try to paste this at the top of bb_plugins.php:
/* Premium forums hack allowing access based on user_num_posts */
$premiumForums=array(9); // here define premium forums IDs $premiumForumsPosts=100; // here define amount of postings to access
if(in_array($forum, $premiumForums) and ($user_id==0 or $user_num_posts<$premiumForumsPosts) ){ $errorMSG='You can\'t access this forum until you make at least '.$premiumForumsPosts.' postings!'; $correctErr=''; $title=$title.$errorMSG; $metaRobots='NOINDEX,NOFOLLOW'; echo load_header(); echo ParseTpl(makeUp('main_warning')); //Loading footer $endtime=get_microtime(); $totaltime=sprintf ("%01.3f", ($endtime-$starttime)); if(isset($includeFooter) and $includeFooter!='') include($includeFooter); else echo ParseTpl(makeUp('main_footer')); exit; }
/* --Premium forums hack */ |