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-16-2002 11:41 PM

John,

Any chance of fixing that link on the leaderboard?

John 08-16-2002 11:43 PM

If I had that problem I would just mess around with the colour code until it worked - I can't give you a solution off the top of my head...

Castel 08-17-2002 12:50 AM

Quote:

Originally posted by NexDog
John,

Any chance of fixing that link on the leaderboard?

look for:
PHP Code:

$thefooter "<normalfont color=\"{tableheadtextcolor}\"><center>Want to try again? Click <a href=\"$bburl/tetris.php?action=play&s=$session[sessionhash]\"><b>here</b></a>.</center></normalfont>"

and change it to:

PHP Code:

$thefooter "<normalfont color=\"{tableheadtextcolor}\"><center>Want to try again? Click <a href=\"$bburl/tetris.php?action=play&s=$session[sessionhash]\"><font color=\"{tableheadtextcolor}\"><b>here</b></font></a>.</center></normalfont>"

and the same principle of the other $thefooter line

NexDog 08-17-2002 12:55 AM

I tried this but it didn't work, no change.
Code:

$thefooter = "<normalfont color=\"{tableheadtextcolor}\"><center>Want to try again? Click </normalfont><a href=\"$bburl/tetris.php?action=play&s=$session[sessionhash]\"><b><font color=#FFE600>here</b></a>.</center></font>";

NexDog 08-17-2002 12:56 AM

Ah ok, cool, brb. :)

Castel 08-17-2002 12:58 AM

First of all nice hack john. I didn't read all of the posts in this thread so just ignore me if this was already mentioned. I wanted to change the amount of leaders displayed to 50 instead of 10 and noticed you have a single query for each user name on the list.

Edited with better instructions for Jashugan :)

All instruction below need to be done twice!

Change both instances of $leaderboard_q to (replace 10 with whatever number of leaders you want shown):

PHP Code:

$leaderboard_q $DB_site->query("SELECT arcade.*,user.username FROM arcade,user WHERE game='tetris' AND user.userid=arcade.userid ORDER BY score DESC LIMIT 10"); 

Under $s_userid = $leadloop['userid']; add:

PHP Code:

$s_username $leadloop['username']; 

Delete the following block

PHP Code:

$user_result $DB_site->query("SELECT username FROM user WHERE userid='$s_userid'");
$details_array=$DB_site->fetch_array($user_result);
$s_username $details_array['username']; 

This will save you 10 queries on the leader board or in my case 50 :D

NexDog 08-17-2002 01:04 AM

Tried that code but no change. saw a <normal font> tag out of place and rectified it with:
Code:

$thefooter = "<normalfont color=\"{tableheadtextcolor}\"><center>Want to try again? Click </normalfont><a href=\"$bburl/tetris.php?action=play&s=$session[sessionhash]\"><font color=\"{tableheadtextcolor}\"><b>here</b></font></a>.</center>";
But still no change. :(
http://www.hostnexus.com/forum/tetri...on=leaderboard

Jashugan 08-17-2002 01:13 AM

Castel

Umm, list of 50 members sounds good but where will we put these codes that you post above? If add then after or before which code, if replace then which?

Castel 08-17-2002 01:14 AM

NexDog, neither of the 2 samples you posted are an exact paste of the code I gave. I made some template edits moving hardcode stuff into the template but that really shouldn't matter.

My line looks like this:

PHP Code:

$thefooter "<a href=\"$bburl/tetris.php?action=play&s=$session[sessionhash]\"><font color=\"{tableheadtextcolor}\">Want to try again? Click here</font></a>"

With the rest of the tags moved to the template, previously I posted a line that should work with the default template.

NexDog 08-17-2002 01:21 AM

Could you post what needs to be added to the templates and where? I'm dealing with a HD failure right now. :(


All times are GMT. The time now is 12:09 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.01817 seconds
  • Memory Usage 1,753KB
  • 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_code_printable
  • (6)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