View Full Version : Can view X Forum before Y Posts?
vietkieu_cz
09-21-2006, 07:10 AM
On forum there are hakcs/mods like "Can view XXX before YYY Posts"
but I couldn't found something like Can view XXX Forum before YYY Posts
Please can someone help me?
darnoldy
09-21-2006, 10:53 AM
I couldn't found something like Can view XXX Forum before YYY PostsYou shouldn't need a modification for that. It can be achieved through forum permissions, user groups and automatic promotions.
The basic steps are:
Set up a user group that has one set of permissions--call it "new members" and set everyone to become a member of that group upon joining.
Set up another user group that has a different set of permissions--call it "seasoned members"
Set up the automatic promotions to move users from the first group to the second when they make YYY posts.
--don
vietkieu_cz
09-21-2006, 11:46 AM
But I have too much Usergroups :( So I need this hack
darnoldy
09-21-2006, 01:43 PM
But I have too much Usergroups You're the second person this week to tell me that you have too many usergroups, so you need a hack to do something with permissions!
How many user groups do you have? Are you using secondary as well as primary usergroups? A user can be a member of several usergroups--and the permissions add.
Maybe you can find somebody to write a modification for you, but there are built-in ways to do what you want.
vietkieu_cz
09-21-2006, 09:12 PM
You got excited my friend :)
Here is the code which require min post to view a forum (default by tnguy3n - Required X Posts to Make New Thread in Y Forum(s)
Support: http://www.vbviet.org )
<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 X posts, I don't know how to add script to Hide the X Forums
Please can someone help me?
Thank you :( and sorry for my bad English
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.