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.1 Addon - The Tetris King! (https://vborg.vbsupport.ru/showthread.php?t=42317)

michealo 08-15-2002 06:14 PM

i tried both methods (JW and lesane's above code) and get the same error

John 08-15-2002 06:49 PM

Quote:

Originally posted by Lesane
John, why do you place that query in showthread.php? U could also put it by the rest. If you put it by the rest then $DB_site is already globalised.
[/php]

Chen said to!

Kars10 08-15-2002 07:07 PM

I test both versions. The Code frome Lesane built the same error in showthread!! :confused:

John 08-15-2002 07:40 PM

To be honest with you, I'm losing the plot of this thread. I don't know who this works for and who it doesn't work for.

So far, most people with problems are on vB 2.2.5 - if you are having problems with this hack, you can find me on MSN under the username of "John@eovie.com"

Mr_P 08-15-2002 08:28 PM

Wll dont lose plot m8 it works fine on 2.2.6 and im a novice by all standards and i pulled it off eventually.

All in all top thanks to all involved.

Kars10 08-15-2002 08:49 PM

I meet you in Msn! :)

DestyNova 08-15-2002 08:53 PM

Um John.evoie, are you JohnW?

Lesane 08-15-2002 09:05 PM

Quote:

Originally posted by Lesane
John, why do you place that query in showthread.php? U could also put it by the rest. If you put it by the rest then $DB_site is already globalised.

admin/functions.php:

find:

PHP Code:

$datecut time() - $cookietimeout

Put after it:

PHP Code:

// King of Tetris Hack, by John Warwick
    
$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="https://vborg.vbsupport.ru/images/crown.gif" alt="King of Tetris!" />';
} else {
    
$crown '';



I just tested the code above for the 2nd time on a clean vbulletin and it works like a charm! :banana:

Schorsch 08-16-2002 01:19 AM

hi,

installed after john's installation guide, seems to work fine :banana: thanks john !!

@you guys with the error message, when exactly does this error appear ?

Ryangel 08-16-2002 02:26 AM

hmm crown does not show. *starts looking at code again ..*


All times are GMT. The time now is 06:34 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.01098 seconds
  • Memory Usage 1,742KB
  • 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
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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