The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hack to block posting unless you have x # of posts?
Is there a hack or way to have a forum set so that the user must have a set # of posts in order to post in that particular forum?
|
#2
|
||||
|
||||
This has been released. Try searching and you'll find it
|
#3
|
|||
|
|||
I've run a search already and there were some similar hacks but they were all for v. 2.2 . I'm running v. 2.3.4.
The similar ones I saw restricted the ability to reply to threads and not necessarily make threads.... Can you point me to the version that works with 2.3.4? |
#4
|
||||
|
||||
you should be more clear
if you made a hack that did what you really wanted it to no user could ever post ever |
#5
|
||||
|
||||
He's just asking for a hack that sets a forum unaccessible unless you have a certain amount of posts.
I thought this was a standard vB feature. All you need to do is edit newreply.php and newthread.php and find the following: PHP Code:
PHP Code:
You can check more forums by just adding more cases to the switch. |
#6
|
|||
|
|||
thanks V!! that's exactly what I'm talking about dude!! THANKS...but i don't know much about variables so what variable do i put in there to replace $certain_amount_of_posts? do i just add a # there?
|
#7
|
||||
|
||||
Yes. Here is an example, with 3 forums:
Code:
switch ($foruminfo['forumid']) { case 43: // this is the forum id if ($bbuserinfo['posts'] < 50) // if the users post count is less than 50 posts { print_no_permission(); // print a no permissions error } break; // this is needed for all cases in a switch except the last case 23: // this is the forum id if ($bbuserinfo['posts'] < 70) // if the users post count is less than 70 posts { print_no_permission(); // print a no permissions error } break; case 5: // this is the forum id if ($bbuserinfo['posts'] < 150) // if the users post count is less than 150 posts { print_no_permission(); // print a no permissions error } } |
#8
|
|||
|
|||
marvelous!!! i'm gonna test that out right now.
|
#9
|
|||
|
|||
one last thing...can i edit what the no permission page says through the templates in the admin cp somehow?
|
#10
|
|||
|
|||
Code:
PLEASE DO NOT ATTACH/PASTE WHOLE vB FILES |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|