Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Minimum Posts Per Day to View Specified Forums Details »»
Minimum Posts Per Day to View Specified Forums
Version: 1.00, by Gary King Gary King is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 05-21-2003 Last Update: Never Installs: 12
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-23-2003, 12:24 AM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, when did you receive the error messsage?
Reply With Quote
  #13  
Old 05-23-2003, 12:29 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 05-23-2003, 01:02 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;

Reply With Quote
  #15  
Old 05-23-2003, 01:30 AM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright, fixed.
Reply With Quote
  #16  
Old 05-23-2003, 02:09 AM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 05-23-2003, 02:35 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what we call a spam the board to get the required number of posts to access a forum hack.
Reply With Quote
  #18  
Old 05-23-2003, 10:48 AM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #19  
Old 05-23-2003, 05:19 PM
kamu kamu is offline
 
Join Date: Aug 2002
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #20  
Old 05-23-2003, 06:54 PM
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Posts: 2,046
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #21  
Old 05-23-2003, 08:27 PM
insanctus's Avatar
insanctus insanctus is offline
 
Join Date: Feb 2003
Location: Michigan
Posts: 582
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:58 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05954 seconds
  • Memory Usage 2,318KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete