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)

Lanigironu 08-20-2002 11:28 PM

The PHP version we have on the server is 4.2.2.

drives fast 08-21-2002 03:25 AM

for the vb2.2.5 users....here is what works.....

in admin/functions find:
PHP Code:

$datecut time() - $cookietimeout

place under it this:
PHP 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="http://www.yoursite.com/forum/images/crown.gif" alt="King of Tetris!" />';
} else {
    
$crown '';


the
PHP Code:

global $DB_site

was missing from Lesane's fix

p.s.
don't forget to set your url to the crown gif

John 08-21-2002 10:50 AM

Or use:

$crown = '<img src="{ imagesfolder}/crown.gif" alt="King of Tetris!" />';

(Without the space between { and imagesfolder})

drives fast 08-21-2002 05:17 PM

yea....I made that change in mine too but forgot to document it when I posted

Lanigironu 08-21-2002 06:15 PM

Atill doesn't show.

Lanigironu 08-21-2002 06:56 PM

Ok, I fixed it. It was a screw up on my behalf. I use the contract posts hack on my board, and I added $crown to the contracted view only by mistake.

kypdurron 08-21-2002 09:11 PM

I still get the same erros on showthreads.php, anyone else?

drives fast 08-21-2002 09:42 PM

if you are using vb2.2.5 and have removed the hack completely from both admin/functions.php and showthread.php and do it the way shown above (which doesn't have any code added to showthread.php) it will work

I got it to work on mine with that code

kypdurron 08-23-2002 08:25 PM

You are right! it works great now!
I changed it so it auto takes you to the game.
Thanks again

N9ne 08-23-2002 11:40 PM

I have PHP 4.2.2 and run 2.2.6 and I have https://vborg.vbsupport.ru/showthrea...threadid=42293 installed, will THIS hack work for me?


All times are GMT. The time now is 09:33 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.01256 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_php_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