![]() |
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?
|
This has been released. Try searching and you'll find it:)
|
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? |
you should be more clear
if you made a hack that did what you really wanted it to no user could ever post ever :) |
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. |
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?
|
Yes. Here is an example, with 3 forums:
Code:
switch ($foruminfo['forumid']) |
marvelous!!! i'm gonna test that out right now.
|
one last thing...can i edit what the no permission page says through the templates in the admin cp somehow?
|
Code:
PLEASE DO NOT ATTACH/PASTE WHOLE vB FILES |
I thought there might have been a variable you could place before the standarderror() function that would change the message, much like $url for standardredirect().
You can do this instead though: Code:
eval('print_output("' . fetch_template('template_name') . '");'); |
Quote:
Put it below this line instead: Code:
$foruminfo=getforuminfo($forumid); |
Oh, also please remove that chunk of code you just posted of newthread.php (which is all of it), as that is against vBulletin.org rules.
|
Thanks V!!! (sorry about the big chunk of code..won't happen again)
I'll try this out and see how it goes. |
also, am i replacing the print error line of code with the eval line you just listed?
|
nevermind ^^ V. I got it to work with New Threads. (which i REALLY appreciate dude!!!!)
I couldn't however find the particular line to replace in the newreply.php. I couldn't find the [forumid] line of code to insert the switch under. |
All times are GMT. The time now is 09:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|