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

Closed Thread
 
Thread Tools
Store/Arcade Addon: Arcade Pass (BETA) Details »»
Store/Arcade Addon: Arcade Pass (BETA)
Version: 1.00, by Link14716 Link14716 is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-13-2002 Last Update: Never Installs: 26
Is in Beta Stage  
No support by the author.

Lesane's Store Hack /// INTEGRATION /// futureal's Arcade Hack


To use this, you must have the following two hacks installed:

futureal's Arcade Hacck: https://vborg.vbsupport.ru/showthrea...threadid=42880
Lesane's Store Hack: https://vborg.vbsupport.ru/showthrea...threadid=36991

Now, what does this hack do, you ask? It requires your users to pay x amount of money through the store to obtain an "Arcade Pass". This arcade pass permits users to play an unlimited amount of games in the arcade for an unlimited amount of time. Yes, there is alreay an arcade/store integration, but this isn't on a per-game basis. Have fun!

UPDATE
The Admin CP addon of setting the timeout time is complete. By setting 0 in the timeout box, you get it to be a lifetime pass, any other numeral, and the pass timesout after that many seconds (so expect HUGE numbers to be imputed ) Upgrade from the 1 Month BETA is included, so UPGRADE!

Attachment Edited Out. v2.0 is released in full releases.
https://vborg.vbsupport.ru/showthrea...threadid=43700

Show Your Support

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

Comments
  #12  
Old 09-14-2002, 09:14 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hope to have a rough temperary passes addition out by tommorow, then later a CP integrated one
  #13  
Old 09-14-2002, 09:26 PM
mewgood mewgood is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Link14716
Please post any bugs, addons, corrections, or suggestions here.

Planned Features:
  • Arcade Pass timeout after x number of days. or...
  • Arcade Pass timeout after x number of games played.
  • Admin CP Integration.
  • Whether a user has an arcade pass or not shown up in postbit/getinfo.
Great, I will install when you have these features.
  #14  
Old 09-14-2002, 09:32 PM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, one of you try this out.

Install the hack from the attached zip in the first post.

Then....

Open store.php:

Find:
Code:
 $DB_site->query("UPDATE user SET arcadepass='1',storep=storep-$cost  WHERE userid='$bbuserinfo[userid]'");
Replace With:
Code:
 $DB_site->query("UPDATE user SET arcadepass='".time()."',storep=storep-$cost  WHERE userid='$bbuserinfo[userid]'");
Open up proarcade.php.
Find:
Code:
    $arcadepass_u=$DB_site->query_first("SELECT * FROM user WHERE userid='$bbuserinfo[userid]'");
Add Under:
Code:
  $arcadepass=$arcadepass_u[arcadepass];
  $expiretime=$arcadepass+155520000;
Find:
Code:
  if ($arcadepass_u[arcadepass]<1) {
  eval("standarderror(\"".gettemplate('arcade_nopass')."\");");
Replace With:
Code:
  if ($expiretime < ".time().") {
  eval("standarderror(\"".gettemplate('arcade_passexpired')."\");");
Make a new template: arcade_passexpired:
Code:
We are sorry, your arcade pass has expired, please buy a <a href="store.php?action=arcadepass">new one.</a>
Tell me if you get any parse errors or DB error in either of the files. Then, buy an arcade pass and see if it lets you in. Finally, (to test out), change
Code:
$expiretime=$arcadepass+155520000;
to
Code:
$expiretime=$arcadepass+1;
and tell me the results of all. :cheeky:

(of course on the last edit, after seeing if it lest you in, change it back )
  #15  
Old 09-15-2002, 12:11 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I changed my mind. A one month pass will be avalible once I write the instructions and ZIP it
  #16  
Old 09-15-2002, 12:19 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here we go.....

1 MONTH ARCADE PASS BETA 1.1!

Test it out. I know it works, as I have tested it, but test anyways.

Attachment edited out, not the current attachment. If you want the hack, grab the attachment in the first post
  #17  
Old 09-15-2002, 01:07 AM
Goldknight's Avatar
Goldknight Goldknight is offline
 
Join Date: Aug 2002
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[high]* Goldknight kiss Link's feet
[/high]

I m going to test this hack right away

Thanks

Edit: now I have to wait for AdminCP
  #18  
Old 09-15-2002, 01:13 AM
mewgood mewgood is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 222
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you make a optiopn in the admin cp and let you set how long can the pass be?
  #19  
Old 09-15-2002, 01:16 AM
futureal futureal is offline
 
Join Date: Feb 2002
Location: Del Mar, CA, USA
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks good.

I found a bug, though: temporary is spelled incorrectly.
  #20  
Old 09-15-2002, 01:16 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mewgod, that is the next thing on my to-do list, I might do it right now. For now.....

Start Menu --> Programs --> Accessories --> Calculator

and found out how many seconds are in however long you want the pass of time to be. Then, grab that number and replace 155520000 with it (in proarcade.php after you installed the hack).
  #21  
Old 09-15-2002, 01:17 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bah, I knew it looked funny

Yea, that bug is tearing board's to peices isn't it lol
Closed Thread


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 11:22 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.04607 seconds
  • Memory Usage 2,307KB
  • 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
  • (9)bbcode_code
  • (1)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
  • (3)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