View Full Version : Minimum Posts Per Day to View Specified Forums
Gary King
05-21-2003, 10:00 PM
Minimum Posts Per Day to View Specified Forums
What does this hack do?
It allows you to specify the minimum posts per day that a user must have, in order to view specified forum(s). This is especially useful, if you want only active users to view a specified forum, and disable access to those forums from less active users.
How do I install this hack?
Simply follow the attached instructions.
Gary King
05-22-2003, 09:42 PM
Screenshot in admin cp
Gary King
05-22-2003, 09:43 PM
Screenshot when someone tries to view a forum without reaching the specified amount of posts per day
insanctus
05-22-2003, 11:08 PM
Very cool hack ~ Installs.
insanctus
05-22-2003, 11:41 PM
Hmm it effects admins to :)
Gary King
05-22-2003, 11:43 PM
One second, I'll fix that.
insanctus
05-22-2003, 11:46 PM
Also I tested with making it lower one post a day .... and i get this
Sorry, you must have at least 1 posts per day to view this forum.
Gary King
05-22-2003, 11:51 PM
Today at 08:41 PM insanctus said this in Post #5 (https://vborg.vbsupport.ru/showthread.php?postid=398709#post398709)
Hmm it effects admins to :)
Fixed.
Gary King
05-22-2003, 11:51 PM
Today at 08:46 PM insanctus said this in Post #7 (https://vborg.vbsupport.ru/showthread.php?postid=398712#post398712)
Also I tested with making it lower one post a day .... and i get this
Sorry, you must have at least 1 posts per day to view this forum.
Do you mean you set it at 1 post per day, or lower than 1 post per day? And how many posts per day did you try viewing the forum with?
insanctus
05-23-2003, 12:02 AM
I set it to 1 post per day. Then I even made a post incase it was that.
Also if I set it to 0 then it lets me view. I have it set to 1 post perday and viewing it with 4 posts.
Gary King
05-23-2003, 12:24 AM
So, when did you receive the error messsage?
insanctus
05-23-2003, 12:29 AM
When I went to view the thread I set to 1 post per day minimum.
I been looking at it and have no clue why it will not work. I have the post perday hack and it says I have 2 posts per day average.
Also if you use view newest posts then they can skip the forumdisplay.php
Letting the users view it even if did not post
insanctus
05-23-2003, 01:02 AM
Ok I fixed it I replaced in forumdisplay
// if posts per day is less than specified, then do not allow to view forum/sub-forum
$jointime = (time() - $userinfo[joindate]) / 86400; // Days Joined
if ($jointime < 1) { // User has been a member for less than one day.
$postsperday = $bbuserinfo[posts];
} else {
$postsperday = sprintf("%.2f",($userinfo[posts] / $jointime));
}
if (($foruminfo[minpostsperday]>$postsperday) and !(ismoderator($foruminfo[forumid]))) {
eval("standarderror(\"".gettemplate("error_minpostsperday")."\");");
exit;
}
With
// if posts per day is less than specified, then do not allow to view forum/sub-forum
$jointime = (time() - $bbuserinfo[joindate]) / 86400; // Days Joined
if ($jointime < 1) { // User has been a member for less than one day.
$postsperday = $bbuserinfo[posts];
} else {
$postsperday = sprintf("%.2f",($bbuserinfo[posts] / $jointime));
}
if ($foruminfo[minpostsperday]>$postsperday) {
eval("standarderror(\"".gettemplate("error_minpostsperday")."\");");
exit;
}
Gary King
05-23-2003, 01:30 AM
Alright, fixed.
insanctus
05-23-2003, 02:09 AM
I been looking at showthread.php ..... If I find a way to add it in so that they can not veiw a thread in the forum I will post it.
Smoothie
05-23-2003, 02:35 AM
This is what we call a spam the board to get the required number of posts to access a forum hack.
Gary King
05-23-2003, 10:48 AM
Yesterday at 11:35 PM Smoothie said this in Post #16 (https://vborg.vbsupport.ru/showthread.php?postid=398779#post398779)
This is what we call a spam the board to get the required number of posts to access a forum hack.
It's the administrator's choice to install this, not mine.
If you have 3 forums set up. You set each forum to a minimum 1 post, your post only counts for one of the forums, as if you're paying a toll to get in. So with your one post you have access to one of the three forums, although you're going to have to post another 2 to get in to the other 2 forums. That might be your problem, you'd like it to work in the way that 1 post grants you access to all forums with a 1 post minimum. I hope that makes sence.
This is in reply to insanctus.
Gary King
05-23-2003, 06:54 PM
Today at 02:19 PM kamu said this in Post #18 (https://vborg.vbsupport.ru/showthread.php?postid=399025#post399025)
If you have 3 forums set up. You set each forum to a minimum 1 post, your post only counts for one of the forums, as if you're paying a toll to get in. So with your one post you have access to one of the three forums, although you're going to have to post another 2 to get in to the other 2 forums. That might be your problem, you'd like it to work in the way that 1 post grants you access to all forums with a 1 post minimum. I hope that makes sence.
This is in reply to insanctus.
If you have 1 post per day, and if all forums require at least 1 post per day to view them, then you WILL be able to view them all.
Although, the problem here would be that it would be impossible to get that initial post then ;)
insanctus
05-23-2003, 08:27 PM
The only trouble with this hack atm is that if you hit newest posts you skip the forumdisplay.php
And they can view all the new topic in there that way.
Gary King
05-23-2003, 08:37 PM
There are many other ways people could view new threads without going through the forumdisplay.php
I will not modify this hack so that it fixes all of those, because there isn't a high enough demand for this hack - if there were more people who wanted it, then I would do it. But, this is not the case at the moment, sorry.
Dribbles
05-24-2003, 12:17 AM
Thanx Gary! (I think you made this hack after my request??) :) Is there a way to integrate this with showthread.php? that way people can't just link their friends to the specific thread. thnx a million :)
Derek
06-18-2003, 05:42 AM
One idea: Why not instead of letting users know they do not have enough posts, make it so that the forum is invisible until they have enough posts? This may cut down on the spam, and let users who are truly active enjoy the benefits of secret forums?
Talisman
06-18-2003, 05:49 AM
Confused by the description. If the forum is set to one post per day, then how many days would a member have to be posting at that rate to get in?
Gary King
06-18-2003, 12:24 PM
Today at 02:49 AM Talisman said this in Post #24 (https://vborg.vbsupport.ru/showthread.php?postid=410180#post410180)
Confused by the description. If the forum is set to one post per day, then how many days would a member have to be posting at that rate to get in?
It doesn't matter how long the user has been a member for ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.