![]() |
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 |
well i will be the first to say THANKS :)
|
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?
|
Most likely yes. They shold both work together just fine. :)
|
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:
|
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. :)
|
i doubled checked.. copied and pasted the querys in the run box.. :confused:
|
Quote:
Quote:
|
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.
|
i have both set up.. and yet i still get the error :confused:
|
What version of VB3 are you running? I am using 3.01. I noticed at least your profile shows 3.0. Perhaps upgrading first wouldn't be a bad idea?
|
has anyone else got this to work?
|
I definitely need this. I had the same problem too.
|
Installed and no errors, now just to hang about for 24h to see if the 2 hacks work together, the first hack worked by saying i have not got enough posts.
Set to 2 posts in 24h /me clicked installed already |
It's dynamic. Set it to 30 posts in 24 hours temporarily for your usergroup and try playing a game. :) Basically, it runs a query and counts your total posts in the defined period of time. No need to wait to see results. :) Should take effect immediately.
I have added a step in the arcade.php edits. My appologies. Redownload the file and look at the arcade.php edits. You may have to clear your history to get the most recent file. Sorry for the extra troubles! Everything should work fine now. :) ~006 |
i am running none extra hacks for arcade...
all i've done is made a post requirement for user groups to be able to play in it.. but that shouldn't be causin a problem |
hhhmm infact i got the error now.
Quote:
|
I updated the install file. Did you rehack the arcade.php edits? It should work now.
|
Quote:
Quote:
|
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 :)
|
Quote:
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:
your hack Quote:
Is there anyway to delay it for 24h before the hack kicks in ? or anything like that? |
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. :)
|
Quote:
|
works now (smile) glad it wasn't due to my error.. great hack!
|
This one sound nice
|
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 |
Quote:
2 24 2 is for the ammount of time they have to make there 2 posts within. Quote:
Quote:
Quote:
Quote:
I have this Quote:
|
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 ? |
Okay. Now I have this
PHP Code:
|
Quote:
|
Don't change any numbers in the code. If you do, the hack will not work properly. Add all the code and then to change the time and posts variables, go to your usergroup settings and enter the numbers there.
|
/me installs. Thanks!
|
OK, I ran the queries, did the file edits, added the phrase, retraced my steps to double check I did everything right and even clicked install :), but I must be missing something. Can't find any new user group fields in ACP. Where do I set the values? Please help because I've really been waiting for this hack. Thanks.
|
You MUST not have done the admincp/usergroup.php edits. Go double check that part. :)
|
I really want to install this hack. But it's being like you have an error in the last lines of your code. Which is only like eval = ARCADE and fetching those templates. :( So I reuploaded the other files :(
|
You installed it wrong. Where it says "find," do just that. Then ADD below the template code. You mentioned something about changing that code. There are no changes. Just adding the next section that says "add below" below it..
|
Quote:
|
Go to yourforums.com/forums/admincp/usergroup.php?do=modify
Click "Go" next to a usergroup. Scroll down to the "Arcade Permissions" It should show two new options there. |
Guess I'm not that familiar with usergroups... :surprised: You are my hero, seriously you are! :banana: I wish I could see the faces of the arcade addicted freeloaders when the get the error message. Woohoo!!!
|
Haha! Sorry for not releasing this earlier. I had originally coded it right after installing the arcade for this very reason, bandwith freeloaders.. :) Who needs em! ;)
|
All times are GMT. The time now is 04:47 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|