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

Closed Thread
 
Thread Tools
vB Tetris v2.5 | Leaderboard, Comments and High Score System v2.5 :) Details »»
vB Tetris v2.5 | Leaderboard, Comments and High Score System v2.5 :)
Version: 1.00, by John John is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-13-2002 Last Update: Never Installs: 93
 
No support by the author.

hack removed, someone please delete this thread.

Apparently the 6 days solid I spend supporting this wasn't good enough (not to mention the 65 page total).

Thanks

Show Your Support

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

Comments
  #972  
Old 08-27-2002, 06:07 AM
NexDog's Avatar
NexDog NexDog is offline
 
Join Date: Mar 2002
Location: Lost in the Nexus
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/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.
  #973  
Old 08-27-2002, 06:08 AM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
You need to add it into the header template.

Give generously! (For I am poor )
  #974  
Old 08-27-2002, 06:12 AM
SemperFidelis SemperFidelis is offline
 
Join Date: May 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Im now on the look out for some more games to implement.
Will send any I find your way.
  #975  
Old 08-27-2002, 06:14 AM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


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
  #976  
Old 08-27-2002, 06:19 AM
SemperFidelis SemperFidelis is offline
 
Join Date: May 2002
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
  #977  
Old 08-27-2002, 07:18 AM
Odil Odil is offline
 
Join Date: Apr 2002
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #978  
Old 08-27-2002, 07:28 AM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a known problem, it only affects earlier versions of php. Check your PM inbox, I've sent you another version
  #979  
Old 08-27-2002, 06:20 PM
vdinh vdinh is offline
 
Join Date: Feb 2002
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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; 
  #980  
Old 08-27-2002, 06:34 PM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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!!
  #981  
Old 08-27-2002, 06:36 PM
LightBringer's Avatar
LightBringer LightBringer is offline
 
Join Date: Oct 2001
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahh yes..thanks for the update for "Who's Online" that worked great!
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:12 PM.


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.05573 seconds
  • Memory Usage 2,321KB
  • 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_code
  • (4)bbcode_php
  • (3)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
  • (2)pagenav_pagelinkrel
  • (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