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

Reply
 
Thread Tools
Require X posts in the last Y hours to play games in the arcade Details »»
Require X posts in the last Y hours to play games in the arcade
Version: 1.00, by 007 007 is offline
Developer Last Online: Apr 2020 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 06-01-2004 Last Update: Never Installs: 73
 
No support by the author.

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

Show Your Support

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

Comments
  #22  
Old 06-02-2004, 06:14 AM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 006
Correct. I forgot to put that in the install file. It's been added now though. Try that and let me know how it works
works but with the other hack its not realy working...

I set the other hack to require 1 post to get to the arcade.

I have set yours to 2 posts in 24h.

So its now saying

Original hack


Quote:




Synergy you do not have enough posts to play in the Arcade.

In order to play in the Synergy arcade you need a total of 1 posts. Please make these required posts of a non spamming nature or they will be deleted.


Thank you.
Synergy Staff





this works off post count so if posts are deleted they may loose arcade rights depending on what number is set. I only have it at 1 for the moment.




your hack
Quote:
You cannot play games in the arcade unless you have made 2 posts within the last 24 hours
so i have to set these 2 fields to the same i guess but its a shame as it would be good to allow new reged people just to make 1 post so they can see the arcade and then after 24h they loose it unless they post X number.

Is there anyway to delay it for 24h before the hack kicks in ? or anything like that?
Reply With Quote
  #23  
Old 06-02-2004, 06:19 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well my hack will check for whatever value you set for minimum posts. If another hack checks for less, and you have this set for more, the other won't work. There is an easy way to get what you want by adding a quick if else statement. I don't have time now to look into it now though because I have to get up in the morning and go to work.
Reply With Quote
  #24  
Old 06-02-2004, 06:27 AM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 006
Well my hack will check for whatever value you set for minimum posts. If another hack checks for less, and you have this set for more, the other won't work. There is an easy way to get what you want by adding a quick if else statement. I don't have time now to look into it now though because I have to get up in the morning and go to work.
ok np but can you PM me the code and where to add it when you have time please ?
Reply With Quote
  #25  
Old 06-02-2004, 06:28 AM
Osterling Osterling is offline
 
Join Date: Jan 2004
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works now (smile) glad it wasn't due to my error.. great hack!
Reply With Quote
  #26  
Old 06-02-2004, 07:18 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This one sound nice
Reply With Quote
  #27  
Old 06-02-2004, 03:06 PM
Fluous Fluous is offline
 
Join Date: Apr 2004
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Umm. I need to know which pieces to edit. Theres like a piece that says

Enter time requirements here (in hours) // what would i put there?

'arcademinposts' => 2, 'arcademintime' => 24 // What are those 2 numbers mean? 24 as in hours?

and then this

$definedtime = ($minimumtime[time] * 3600 // whats that number?

Also why I'm here. Does this work with 3.0.0? Hope it does.

You cannot play games in the arcade unless you have made $minimumposts[number] posts within the last $minimumtime[time] hours. << Do I have to take out the $minimumposts[number] and replace that with a number. or replace number with the number.? same for the time.. sorry i'm just coding stupid
Reply With Quote
  #28  
Old 06-02-2004, 03:39 PM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fluous
Theres like a piece that says

Enter time requirements here (in hours) // what would i put there?
Add the number in hours that they have to make a post within. So you may do something like this.....

2
24

2 is for the ammount of time they have to make there 2 posts within.

Quote:
'arcademinposts' => 2, 'arcademintime' => 24 // What are those 2 numbers mean? 24 as in hours?
thats just code needed to make the hack work like it should, just do all the changes it says and it will work fine, dont change the code.

Quote:
and then this

$definedtime = ($minimumtime[time] * 3600 // whats that number?
Same for this do not change it as they are variables the hack looks for in order for it to function.

Quote:
Also why I'm here. Does this work with 3.0.0? Hope it does.
It should work fine.

Quote:
You cannot play games in the arcade unless you have made $minimumposts[number] posts within the last $minimumtime[time] hours. << Do I have to take out the $minimumposts[number] and replace that with a number. or replace number with the number.? same for the time..
NO DO NOT change these, they are variables it has to look for, they will check what you have set in the usergroup settings and display that amount, if you change these it will not work. But you can add other phrases to it such as $bbuserinfo[username] to dispay the username of whoever is doing it.

I have this

Quote:
$bbuserinfo[username]

You cannot play games in the $vboptions[bbtitle] arcade unless you have made $minimumposts[number] posts within the last $minimumtime[time] hours.

Please make these required posts of a non spamming nature or they will be deleted.
<a href="$vboptions[forumhome].php?$session[sessionurl]">Return to forums index</a></li> </ul>
Thank you.

$vboptions[bbtitle] Staff
Reply With Quote
  #29  
Old 06-02-2004, 03:44 PM
Fluous Fluous is offline
 
Join Date: Apr 2004
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so I only change these: Enter time requirements here (in hours) // the posts one too. and then the

'arcademinposts' => 2, 'arcademintime' => 24 If I wanted 5 posts in the last 2 hours it would be like

'arcademinposts' => 5, 'arcademintime' => 2

?
Reply With Quote
  #30  
Old 06-02-2004, 04:08 PM
Fluous Fluous is offline
 
Join Date: Apr 2004
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay. Now I have this
PHP Code:
// Arcade header template
eval('$arcadeheader = "' fetch_template('arcade_header') . '";');
eval(
'print_output("' fetch_template('ARCADE') . '");');?> 
The eval $arcade header is that line. any ideas? www.gameraxis.com/forum/arcade.php
Reply With Quote
  #31  
Old 06-02-2004, 04:57 PM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fluous
so I only change these: Enter time requirements here (in hours) // the posts one too. and then the

'arcademinposts' => 2, 'arcademintime' => 24 If I wanted 5 posts in the last 2 hours it would be like

'arcademinposts' => 5, 'arcademintime' => 2

?
leave that as it says in the instructions. thats just code.
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:01 AM.


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.05172 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_php
  • (11)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
  • (4)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_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