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)

Ninth Dimension 08-17-2002 10:44 PM

Please let me know if you want or need any help, i'm eager to help this project progress :)

xxxsaint 08-17-2002 11:51 PM

when you secure this one , will that also mean the space invaders with the rankings system will be good to go too ? I'm really looking forward to that one as well. :D

John 08-17-2002 11:58 PM

I'm working on the arcade hack, has many games.

Link14716 08-18-2002 02:01 AM

I think once he gets done with this, the rest will be easy..... er. lol

lichtflits 08-18-2002 08:41 AM

a request.

is it posibel to use smilies in your comment?

GeOrGe 08-18-2002 10:58 AM

I whant that my User display the Highscore in Postbit.

How should i do that?

Ninth Dimension 08-18-2002 11:54 AM

This is how you add the score to your post bit. These instructsion have been written as if you already have the tetris king hack installed.

In /admin/functions.php, find
PHP Code:

// King of Tetris Hack, by John Warwick
    
$kingid $GLOBALS['kingid'];
    if (
$post[userid] == $kingid) {
    
$crown '<img src="{imagesfolder}/crown.gif" alt="King of Tetris!" />';
} else {
    
$crown '';


replace with
PHP Code:

// King of Tetris Hack, by John Warwick
    
$kingid $GLOBALS['kingid'];
    if (
$post[userid] == $kingid) {
    
$crown '<img src="{imagesfolder}/crown.gif" alt="King of Tetris!" />';
    
$tscore $kingscore;
} else {
    
$crown '';
    
$tscore '';


In showthread.php, find
PHP Code:

$leaderboard $DB_site->query_first('SELECT userid FROM arcade WHERE game = "tetris" ORDER BY score DESC');
$kingid $leaderboard['userid']; 

replace with
PHP Code:

$leaderboard $DB_site->query_first('SELECT userid,score FROM arcade WHERE game = "tetris" ORDER BY score DESC');
$kingid $leaderboard['userid'];
$kingscore $leaderboard['score']; 

then just add $tscore where you want thr score to apear in the postbit template.

The above code should work, but i've not tested it yet., make sure you get a back-up of all files b4 you apply this modification

John 08-18-2002 01:24 PM

Just curious, what happens if you don't have a score?

Ninth Dimension 08-18-2002 04:27 PM

Quote:

Originally posted by john.eovie
Just curious, what happens if you don't have a score?
Nothing, it's set-up so that the score will only be displayed next to the king's name, no one elses.

John 08-18-2002 06:06 PM

I see... nice :banana:


All times are GMT. The time now is 05:52 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.03553 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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