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


All times are GMT. The time now is 10:38 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
  • Page Generation 0.01039 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete