vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Tetris v2.5 | Leaderboard, Comments and High Score System v2.5 :) (https://vborg.vbsupport.ru/showthread.php?t=42293)

NexDog 08-27-2002 06:07 AM

/hastily checks to see if anyone has paid their hosting bill via PayPal in the last 24 hours......:)

Oh yea, how to add that button from vggermany. is that in a template or php file?

And how to add to Forum Jump? I should know that already, lol. I'm such a lazy a$$hole. :D

John 08-27-2002 06:08 AM

Quote:

Originally posted by NexDog
/hastily checks to see if anyone has paid their hosting bill via PayPal in the last 24 hours......:)

Oh yea, how to add that button from vggermany. is that in a template or php file?

And how to add to Forum Jump? I should know that already, lol. I'm such a lazy a$$hole. :D

You need to add it into the header template.

Give generously! (For I am poor :()

SemperFidelis 08-27-2002 06:12 AM

The arcade hack rocks John
Thankyou once again for this
I dont think anything will come close to it for hack of the month
:D

Im now on the look out for some more games to implement.
Will send any I find your way.

John 08-27-2002 06:14 AM

Quote:

Originally posted by v-net
The arcade hack rocks John
Thankyou once again for this
I dont think anything will come close to it for hack of the month
:D

Im now on the look out for some more games to implement.
Will send any I find your way.

It can never be hack of the month, because it's not public release :(

SemperFidelis 08-27-2002 06:19 AM

Quote:

Originally posted by john.eovie


It can never be hack of the month, because it's not public release :(

Only one way to fix that......
;)
lol

Even if the arcade hack doesnt go public, the tetris with addons will win it for you.

Odil 08-27-2002 07:18 AM

John,

I have run into one problem, when I click on any game, I get the following errors at the top of the page:

Warning: rand(): Invalid range: 100000000..999999999 in C:\DDVBBoard\upload\arcade.php on line 163

Warning: rand(): Invalid range: 100000000..999999999 in C:\DDVBBoard\upload\arcade.php on line 169

Also when I got to the end of a game, I recieved another error much like the one above but with a diffarent line number.

Any ideas?

Odil

John 08-27-2002 07:28 AM

This is a known problem, it only affects earlier versions of php. Check your PM inbox, I've sent you another version :)

vdinh 08-27-2002 06:20 PM

Thanks, John. Your arcade hack works great :) ...

I'm modifying an Original post by futureal about the Who's Online modification for this Arcade hack:


In online.php, find:

PHP Code:

    case 'spider':
      
$userinfo[where] = "Search Engine Spider";
      break; 

and right above it, add:

PHP Code:

         case 'arcade':
      
$userinfo[where] = "Viewing <a href='arcade.php'>Main Arcade</a>";
      break;
    case 
'tetris':
      
$userinfo[where] = "Playing <a href='arcade.php?action=play&game=tetris'>Tetris!</a>";
      break;
    case 
'snake':
      
$userinfo[where] = "Playing <a href='arcade.php?action=play&game=snake'>Snake!</a>";
      break;
    case 
'spaceinvaders':
      
$userinfo[where] = "Playing <a href='arcade.php?action=play&game=spaceinvaders'>Space Invaders!</a>";
      break;
    case 
'pacman':
      
$userinfo[where] = "Playing <a href='arcade.php?action=play&game=pacman'>Pac Man!</a>";
      break; 

then find:

PHP Code:

  case '/robots.txt':
    
$userinfo[activity] = 'spider';
    break; 

and right above it, add:

PHP Code:

  case 'arcade.php':
    if (
$token1 == 'action=play' && $token2 == 'game=pacman') {
      
$userinfo[activity] = 'pacman';
    } else if (
$token1 == 'action=play' && $token2 == 'game=snake') {
      
$userinfo[activity] = 'snake';
    } else if (
$token1 == 'action=play' && $token2 == 'game=spaceinvaders') {
      
$userinfo[activity] = 'spaceinvaders';
    } else if (
$token1 == 'action=play' && $token2 == 'game=tetris') {
      
$userinfo[activity] = 'tetris';
    } else {
      
$userinfo[activity] = 'arcade';
    }
    break; 


Kars10 08-27-2002 06:34 PM

Cool Vdinh!
Your Online-Thing works like a charm!!! :D

Question: Any Idea, how to make the "Tetris-King Addon" work with all other Arcade-Games (like on the Main Arcade Page)?

Heres the Functions-Code for 2.2.5:

Code:

// King of Tetris Hack, by John Warwick
    global $DB_site;
    $leaderboard = $DB_site->query_first('SELECT userid FROM arcade WHERE game = "tetris" ORDER BY score DESC');
    $kingid = $leaderboard['userid'];
    if ($post[userid] == $kingid) {
    $crown = '<img src="{imagesfolder}/crown.gif" alt="King of Tetris!" />';
} else {
    $crown = '';
}

Thanks!! ;)

LightBringer 08-27-2002 06:36 PM

Ahh yes..thanks for the update for "Who's Online" that worked great!


All times are GMT. The time now is 05:04 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
  • Page Generation 0.03346 seconds
  • Memory Usage 1,758KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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