vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Minimum Posts Per Day to View Specified Forums (https://vborg.vbsupport.ru/showthread.php?t=53253)

Gary King 05-21-2003 10:00 PM

Minimum Posts Per Day to View Specified Forums
 
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

Quote:

Today at 08:41 PM insanctus said this in Post #5
Hmm it effects admins to :)
Fixed.

Gary King 05-22-2003 11:51 PM

Quote:

Today at 08:46 PM insanctus said this in Post #7
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
PHP Code:

// 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

PHP Code:

 // 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

Quote:

Yesterday at 11:35 PM Smoothie said this in Post #16
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.

kamu 05-23-2003 05:19 PM

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

Quote:

Today at 02:19 PM kamu said this in Post #18
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

Quote:

Today at 02:49 AM Talisman said this in Post #24
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 ;)


All times are GMT. The time now is 04:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01114 seconds
  • Memory Usage 1,774KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete