vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Require X posts in the last Y hours to play games in the arcade (https://vborg.vbsupport.ru/showthread.php?t=65735)

007 06-01-2004 10:00 PM

Require X posts in the last Y hours to play games in the arcade
 
Require X posts in the last Y hours to play games in the arcade

by ~006

Let me start out by saying that I made this hack for the V3Arcade system. All credit for that hack goes to John. If you can think of any other pages that this limitation hack could be used for, let me know and I can code it.

I know ever since the V3Arcade was released, we all have been noticeing new members signing up only to spend time in the arcade. They may post once or twice, but for the most part they do not post. Instead they just suck your bandwidth. What can you do about this? Well, with this hack you can customize the number (x) posts required in the last (y) hours. This is all on a per usergroup basis.

There are other ways people have been doing this, such as base arcade access on postsperday. This is a bad way to do this because if somebody goes out of town for a week, their posts per day will suffer. Soon it becomes impossible to get your posts back to the minimum posts per day level. This hack is fair to all members based on usergroups.

This hack adds two new usergroup fields, and adds the option to edit these fields directly form your admincp. It is very self explanatory.

The hack may not seem like much, but I put a lot of time into it, so I would appreciate it if everyone would click install!

PLEASE CLICK INSTALL! That's all I ask. :)

*Please do not edit or redistribute this hack without my permission. Thanks!

~~~~~~~~~~~~
Queries: 2
File edits: 2
New Phrases: 1
~~~~~~~~~~~~

TOTAL INSTALL TIME: ~5 minutes or less

~006

SnowBot 06-02-2004 02:53 AM

well i will be the first to say THANKS :)

SnowBot 06-02-2004 03:44 AM

small question before i install, if i have a min post required to enter the arcade via another user hack will this only then take effect after that post count has been made?

007 06-02-2004 04:09 AM

Most likely yes. They shold both work together just fine. :)

Osterling 06-02-2004 04:47 AM

Fatal error: Call to a member function on a non-object in /ww.exasko.info/forum/arcade.php on line 515


any idea what the problem is? and if ur qondering this is line 515

Quote:

$minimumposts = $DB_site->query_first("

007 06-02-2004 04:59 AM

Sounds like you didn't add the tables. Make sure you add both queries. I have this running perfecty and exactly the same as the install file shows. Make sure you follow the install. Let me know if you still have trouble after double checking the instructions. :)

Osterling 06-02-2004 05:01 AM

i doubled checked.. copied and pasted the querys in the run box.. :confused:

Osterling 06-02-2004 05:03 AM

Quote:

ALTER TABLE `usergroup` ADD `arcademinposts` INT( 11 ) DEFAULT '0' NOT NULL ;
Quote:

ALTER TABLE `usergroup` ADD `arcademintime` INT( 11 ) DEFAULT '0' NOT NULL ;
those two i ran exactly liek that

007 06-02-2004 05:08 AM

Go to your usergroup manager and set values for the groups. Maybe I need to make the defaults greater than 0. Try setting values and try it then.

Osterling 06-02-2004 05:11 AM

i have both set up.. and yet i still get the error :confused:


All times are GMT. The time now is 08:24 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.01109 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)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