vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Store/Arcade Addon: Arcade Pass (BETA) (https://vborg.vbsupport.ru/showthread.php?t=43535)

Link14716 09-14-2002 09:14 PM

I hope to have a rough temperary passes addition out by tommorow, then later a CP integrated one :)

mewgood 09-14-2002 09:26 PM

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.

Link14716 09-14-2002 09:32 PM

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. :):D;):cool::cheeky:

(of course on the last edit, after seeing if it lest you in, change it back :))

Link14716 09-15-2002 12:11 AM

Well, I changed my mind. A one month pass will be avalible once I write the instructions and ZIP it :)

Link14716 09-15-2002 12:19 AM

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 :)

Goldknight 09-15-2002 01:07 AM

[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 ;)

mewgood 09-15-2002 01:13 AM

can you make a optiopn in the admin cp and let you set how long can the pass be?

Link14716 09-15-2002 01:16 AM

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). :)

futureal 09-15-2002 01:16 AM

Looks good.

I found a bug, though: temporary is spelled incorrectly. :)

Link14716 09-15-2002 01:17 AM

Bah, I knew it looked funny :)

Yea, that bug is tearing board's to peices isn't it ;) lol


All times are GMT. The time now is 01:45 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.01131 seconds
  • Memory Usage 1,739KB
  • 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
  • (9)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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