vietkieu_cz
09-22-2006, 10:18 PM
I've changed this hack default by tnguy3n - Can't post Thread on X Forum before Y Posts
<hookname>forumdisplay_start</hookname>
// min post required to create thread
$minpost = 5;
// special groups which isn't restricted by this hack
$specialgroups = array(5,6,7);
// forums where this rule effects, use commas to seperate multiple forums
$forumid_req_minpost = array(2);
if (!in_array($vbulletin->userinfo['usergroupid'], $specialgroups) AND ($vbulletin->userinfo[posts]< $minpost) AND in_array($foruminfo['forumid'], $forumid_req_minpost))
{
standard_error(fetch_error('cant_create_thread_wit hout_x_posts'));
}
// end mim post to create new thread
this script works fine but still show the forum which user has less than Y posts, I don't know how to add script to Hide the X Forums
Please can someone help me? - I know that code can't make corders problem
Thank you :( and sorry for my bad English
<hookname>forumdisplay_start</hookname>
// min post required to create thread
$minpost = 5;
// special groups which isn't restricted by this hack
$specialgroups = array(5,6,7);
// forums where this rule effects, use commas to seperate multiple forums
$forumid_req_minpost = array(2);
if (!in_array($vbulletin->userinfo['usergroupid'], $specialgroups) AND ($vbulletin->userinfo[posts]< $minpost) AND in_array($foruminfo['forumid'], $forumid_req_minpost))
{
standard_error(fetch_error('cant_create_thread_wit hout_x_posts'));
}
// end mim post to create new thread
this script works fine but still show the forum which user has less than Y posts, I don't know how to add script to Hide the X Forums
Please can someone help me? - I know that code can't make corders problem
Thank you :( and sorry for my bad English