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)

E 08-16-2002 03:54 AM

nice job, my leader has 99,845 points, damn, i cant touch it, lol

Kars10 08-16-2002 05:40 AM

@ Lesane, but the fact is i don?t use a clean version...
All other stuff works great for me. The same to Michealo. I PM with him yesterday. The same Errors instead.
@ Schorsch, wenn ich das Forum aufmache kein Fehler. Aber sobald ich in einen Thread reingehe(also in die Showthread.php)-parse Error in line 7. Bei Michealo Line 6. Also muss doch irgendwas nicht stimmen....:confused:

kypdurron 08-16-2002 10:42 AM

Mine does not work either.

I have installed a series of hacks, here are the ones I can remember:

custom title, picture on post, link to photo album on post, I'm not
sure if avatar on post is standard or not anymore :) .

For the ones that are not working, are you using any of those hacks?

Kars10 08-16-2002 11:28 AM

@ Kypdurron, no i?m using not one of those hacks.... :confused:
I think it?s a other Problem. If you got a couple of hacks installed and all work fine, whats the point that specially this one solves a error in the showthread.
Question: can anybody have a look at my showthread.php please?? Maybe its a tiny little mistake in the code..i don?t know.
But the Crown-Thingi whould be pretty cool! ;)

NexDog 08-16-2002 12:33 PM

Worked here first time. Of course I forgot to re-upload showthread.php first. ;)

John 08-16-2002 12:37 PM

Quote:

Originally posted by NexDog
Worked here first time. Of course I forgot to re-upload showthread.php first. ;)
And you're on vB 2.2.6 right?

You know, Chen should install something so we can all specify the version of vB we're running!

Lionel 08-16-2002 08:16 PM

I am using 2.21. I am able to play tetris, but after a game, I am unable to display the comment. I get this error on top of the page

Warning: MySQL: A link to the server could not be established in /var/www/forums/tetris.php on line 41...telling me that the score is too low, and it still records it.

John 08-16-2002 08:20 PM

it seems that this hack only really works well with 2.2.6, for some unknown reason...

Kars10 08-16-2002 08:37 PM

@ John, can you please have a look at my showthred i send to you. You the right guy for this. I?m not so good with php-errorreading...have you read my question in the Main-Tetris Thread?? how can i put the Topscore in the Index.php? Like Tetris-Topscore: XXXX (by XXX). Thanks man. :)

John 08-16-2002 08:45 PM

I have no idea why your showthread.php is doing what it is. It
just doesn't seem to like any versions of vB below 2.26!

I've already produced a hack that puts a mini leaderboard on
the front page, but I'm not sure whether I should release it
or not...

= = = Original message = = =

Hello john.eovie,

Minifreunde has just replied to a thread you have subscribed
to entitled - vB Tetris v2.1 Addon - The Tetris King! - in the
Full Releases forum of vBulletin.org Forum.

~~~~~ NEW ~~~~~
New at vBulletin.org!
You can now reply to the thread by replying to this message.
All you need to do is to make sure this code appears in the e-mail
subject:

You should also remove this text to ensure your reply is readable
by other forum users.
~~~~~ NEW ~~~~~

Here are the contents of the post:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ John, can you please have a look at my showthred i send to
you. You the right guy for this. I~m not so good with php-errorreading...have
you read my question in the Main-Tetris Thread?? how can i put
the Topscore in the Index.php? Like Tetris-Topscore: XXXX (by
XXX). Thanks man. :)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This thread is located at:
https://vborg.vbsupport.ru/showthrea...7&goto=newpost

There may be other replies also, but you will not receive any
more notifications until you visit the board again.

Yours,
vBulletin.org Forum team

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unsubscription information:

To unsubscribe from this thread, please visit this page:
https://vborg.vbsupport.ru/member2.p...threadid=42317

To unsubscribe from ALL threads, please visit this page:
https://vborg.vbsupport.ru/member2.p...type=allthread


__________________________________________________ _________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

John 08-16-2002 08:45 PM

I have no idea why your showthread.php is doing what it is. It
just doesn't seem to like any versions of vB below 2.26!

I've already produced a hack that puts a mini leaderboard on
the front page, but I'm not sure whether I should release it
or not...

NexDog 08-16-2002 11:30 PM

Yea, I just recently upped to 2.2.6. Leaderboard on the home page is no good for me as it is a hosting forum. ;)

Lesane 08-17-2002 07:09 AM

Quote:

Originally posted by john.eovie
it seems that this hack only really works well with 2.2.6, for some unknown reason...
It works perfect on my board with vb 2.2.2 installed and i also installed it on my test board with vb 2.2.4. :smoke:

Kars10 08-17-2002 09:10 AM

Quote:

Originally posted by Lesane


It works perfect on my board with vb 2.2.2 installed and i also installed it on my test board with vb 2.2.4. :smoke:

But what can the Problem be, that specially in my case the crown thing dosent work??
I mean some others have the same Problems. I am doing exactly what the Hack-Manual says.
All other hacks ive installed work fine for me.
Can somebaody have a look at my file? :bored:

Lanigironu 08-20-2002 06:01 PM

I am running a vB 2.2.6, but this hack doesn't work for me. The Tetris works perfectly, and records everything right, and the code is there, but the crown doesn't show.

I tried Lesan's way and kept getting an error, I don't know what to do.

I don't get any errors right now, but the crown isn't showing.

Courage 08-20-2002 06:34 PM

I'm running vb 2.2.2 and I get a blank page when I want to see a thread :(

IO also haveproblems with the tetris add-on. I can play it, but I get this message:

"Unfortunately your score wasn't good enough to get onto the leaderboard."

- but the score is recorded. + I cannot add comments :(

John 08-20-2002 06:34 PM

Lanigironu, what version of php is your server running?

John 08-20-2002 06:36 PM

Quote:

Originally posted by Courage
I'm running vb 2.2.2 and I get a blank page when I want to see a thread :(

IO also haveproblems with the tetris add-on. I can play it, but I get this message:

"Unfortunately your score wasn't good enough to get onto the leaderboard."

- but the score is recorded. + I cannot add comments :(

Never heard of that before... probably an installation mistake.

Courage 08-20-2002 07:00 PM

Quote:

Never heard of that before... probably an installation mistake.
yep... it is a very complicated hack ! :(
I have a lot of hacks applied on my board...
And ALL work !

John 08-20-2002 07:05 PM

Quote:

Originally posted by Courage


yep... it is a very complicated hack ! :(
I have a lot of hacks applied on my board...
And ALL work !

1. I was talking about the original tetris hack not being installed, not this one.

2. I'm no longer supporting any versions of vB lower than 2.2.4 - if I find a fix for earlier versions, I'll post it.

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?

John 08-23-2002 11:43 PM

Quote:

Originally posted by Tha Rock
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?
Well, you're running exactly the same setup as me, and it works on my board.

Put it this way - most of the cases where it hasn't worked for a person were due to "installation mistakes". :|

Courage 08-24-2002 12:31 AM

still this stupid thing.. I get the blank pages when accesing showthread.php
The tetris is now working, but NOT the ADD-ON ;(

I'm running vb 2.2.2

Courage 08-24-2002 12:38 AM

I made it !!!

Is working now.!!!

For 2.2.2 you must use the instructions for 2.2.5
https://vborg.vbsupport.ru/showthrea...147#post288147

Thank you drives fast :)

P.S. NO changes made in showthread.php !!!!

N9ne 08-24-2002 12:42 AM

installed, working, great :)

John 08-24-2002 12:44 AM

Glad to hear it's working well for both of you :)

N9ne 08-24-2002 12:58 AM

and it's pretty cool apart from the fact that I have some members that are very bored and they're king and not me :(

Courage 08-24-2002 01:00 AM

Any ideea how to implement this addon in the Leaderboard Results ?

drives fast 08-24-2002 02:00 PM

Courage,
I cannot take credit for all of that.....Lesane came up with that new method.....I only added the global to it to get it to work with the other version but glad I could help


All times are GMT. The time now is 07:46 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.01272 seconds
  • Memory Usage 1,818KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (38)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