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)

NexDog 08-15-2002 12:11 PM

Yep, did that and it works. Clicks install for the 4th time today. :)

John 08-15-2002 12:12 PM

:banana:

DestyNova 08-15-2002 03:27 PM

LOL! thanks JohnW :thumbup: I m going definetly use it! :banana:

michealo 08-15-2002 03:55 PM

JW, with this step

Code:

In showthread.php
2. FIND:
###########################

// words to highlight from the search engine

###########################

AND ABOVE IT ADD:
###########################

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

###########################

i get this error

Quote:

Fatal error: Call to a member function on a non-object in /home/sites/home/web/forums/showthread.php on line 6
ONLY when clicking on links that contain the "king tetris" member. everything else seems to be fine

Kars10 08-15-2002 04:04 PM

@ Michealo, the same error i get!!
John is watching my showthread.php...hope it works!! :confused:

xxxsaint 08-15-2002 04:17 PM

i think that saying this hack needs to go under the tetris thread would be like saying every store related add on for lesane's store needs to go in that thread.

Thanks for the great hack , and this , the great ADD ON !! :thumbsup:

John 08-15-2002 04:26 PM

michealo and Minifreunde -

Change
#########################

$leaderboard = $DB_site->query_first

#########################

to
#########################
$leaderboard = $DB_site->query
#########################

And tell me if it works

michealo 08-15-2002 04:35 PM

no good im afraid

Quote:

Fatal error: Call to a member function on a non-object in /home/sites/home/web/forums/showthread.php on line 7"
but now no links work, every thread i click gives that error

kypdurron 08-15-2002 04:37 PM

I did that and still didn't work. I think the problem is that it doesn't know what $DB_Site is, not the query itself.
I am using 2.2.5. Is there an "include" command somewhere on your showthread.php before this query?
here is my first few lines of my showthread.php:

PHP Code:

<?php

error_reporting
(7);
if ( isset(
$goto) and ($goto=='lastpost' or $goto=='newpost')) {
  
$noheader=1;
}
//$leaderboard = $DB_site->query("SELECT userid FROM arcade WHERE game = 'tetris
' ORDER BY score DESC");
//$kingid = $leaderboard['
userid'];

// words to highlight from the search engine

I commented out your code cause it causes the error right now.

Lesane 08-15-2002 04:42 PM

You need to global the function: "$DB_site".


All times are GMT. The time now is 07:30 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.01174 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_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