sean-zigster
10-21-2009, 02:50 PM
Is it possible or is there a mod out there that restricts a forum access to the number of posts that a user has done , ie
As soon as a user gets to 20 posts then a certain forum appears to them or until they make 20 posts they cannot post in that forum
Many Thanks
Sean
James Birkett
10-21-2009, 03:19 PM
Hook: forumdisplay_complete
PHP Code:
if((in_array($foruminfo['forumid'], array(1,2,3,4))) AND ($post['posts'] < 100)){
print_no_permission();
}
Where it says: array(1,2,3,4) you want the forum IDs of the forum(s) you want to restrict access to.
Where it says "$post['posts']" you want the post count needed to access those forums.
Alternatively you could do:
if((in_array($foruminfo['forumid'], array(1,2,3,4))) AND ($post['posts'] < 100)){
$vbulletin->url = 'index.php?' . $vbulletin->session->vars['sessionurl'];
eval(print_standard_redirect('You are unable to view this forum because your post count is less than 100.', false, true));
}
Which will print the standard redirect (that you see when closing a thread/logging in etc) saying: "You are unable to view this forum because your post count is less than 100."
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.