PDA

View Full Version : Can't view X Forum before Y Posts


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

tazB.ca
09-23-2006, 12:07 AM
If U Wanna Hide Them,mite Aswell Just Make A New Users Group Hide Tha Forums U Want Hide From The, And Make A Promotion To Members After Thy Get Y Posts

Ntfu2
09-23-2006, 03:15 AM
look for the Cyb - Advanced forum permissions

vietkieu_cz
09-23-2006, 08:26 PM
Thank you Ntfu2, but this hack is only hide forums Link, not hide forums :(
this is not I need :((