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:

Ed FvC 08-18-2002 08:27 PM

Sweet hack. I can't wait to get more games in. :)

What about old BBS door games?? God, that would RULE!

John 08-18-2002 08:28 PM

Quote:

Originally posted by Ed FvC
Sweet hack. I can't wait to get more games in. :)

What about old BBS door games?? God, that would RULE!

I don't even know what they are!

Ed FvC 08-18-2002 08:34 PM

Oh man... Way before your time, I suppose... I feel old now.

They were text-based games...some were RPGs, others were strategy...back in the old Pre-Internet days.

Search around on google for the following:
Trade Wars 2002
Barren Realms Elite
Legend of the Red Dragon

Oldskool. ;)

John 08-18-2002 08:36 PM

Well, probably not way before my time - but I've only been geeking it up for a few years ;)

Ninth Dimension 08-18-2002 08:51 PM

I guess that any game is possable, as long as the end score can be fowarded onto a script :)

John 08-18-2002 08:53 PM

Quote:

Originally posted by danielhollands
I guess that any game is possable, as long as the end score can be fowarded onto a script :)
Well, the fact that BBS games aren't web browser based it could be difficult...

Ninth Dimension 08-18-2002 08:59 PM

this is very true, unless they can be run via a java applett, in which case, yet again it's just a case of passing a score to a script :)

John 08-18-2002 09:02 PM

As far as I know they can't (I might be wrong there), but the point it that the web is a much better interface for something like this. It replaced the old BB system, why would anyone want to revert!

|DarkManX| 08-19-2002 01:37 AM

anyway to fix the who is online...it says unknown location or else tetris.php45646510665165165165151121032

thanks great hack'd worked perfectly on first install

John 08-19-2002 01:38 AM

Someone posted a solution to this in the thread somewhere - good luck finding it!

Ninth Dimension 08-19-2002 01:45 AM

Quote:

Originally posted by |DarkManX|
anyway to fix the who is online...it says unknown location or else tetris.php45646510665165165165151121032


thanks great hack'd worked perfectly on first install

https://vborg.vbsupport.ru/showthrea...031#post286031 gives you the info you need.

|DarkManX| 08-19-2002 01:45 AM

lol ok thanks

Odil 08-19-2002 02:04 AM

I have the following code on my main page:

<br><a href="$bburl/tetris.php?action=play&s=$session[sessionhash]"><b>Play Tetris!</a> | <a href="$bburl/tetris.php?action=leaderboard">View Leaderboard</b></a>

Yet the View Leaderboard link plays Tetris just like the Play Tetris Link.

Also, when I play Tetris, I still get the original startup screen saying Gauss.... Shouldn't it have changed?

Odil

Odil 08-19-2002 02:25 AM

Got it fixed, I just don't like the color scemes. The text is grey on my light blue background. How can I change the colors?
Thanks!

Odil


Quote:

Originally posted by Odil
I have the following code on my main page:

<br><a href="$bburl/tetris.php?action=play&s=$session[sessionhash]"><b>Play Tetris!</a> | <a href="$bburl/tetris.php?action=leaderboard">View Leaderboard</b></a>

Yet the View Leaderboard link plays Tetris just like the Play Tetris Link.

Also, when I play Tetris, I still get the original startup screen saying Gauss.... Shouldn't it have changed?

Odil


Bungie 08-19-2002 03:13 AM

Great hack, works flawlessly so far. One of my members has already gotten 120k points. *pushes install button* ;)

Odil 08-19-2002 03:54 AM

Agreed!! Excellent hack, got it all working. It turns out when I was copying the text to the templates, I missed some code.

Very happy and so are my members!! YOU RULE!!

Odil

BigJohnson 08-19-2002 01:18 PM

When will the store version be able to come on?

Ninth Dimension 08-19-2002 01:20 PM

Quote:

Originally posted by BigJohnson
When will the store version be able to come on?
once he has secured the script, and people stop getting error messages :)

portion 08-19-2002 01:52 PM

When playing the username is not showing up in the game:

I am using the following link:
/tetris.php?action=play&s=$session[sessionhash]

When completing any game i get the following:
ERROR, You have attempted to play tetris by unconventional means!

Anyone else?
-portion

John 08-19-2002 01:57 PM

Quote:

Originally posted by portion
When playing the username is not showing up in the game:

I am using the following link:
/tetris.php?action=play&s=$session[sessionhash]


When completing any game i get the following:
ERROR, You have attempted to play tetris by unconventional means!

Anyone else?
-portion

This is why I'm not releasing the Store hack version! There are too many problems with the current script, which I want to resolve before I release any of my other hacks.

Regarding the error, I have no idea why this happens. A couple of people are getting the same thing, and I have no idea why!

portion 08-19-2002 02:23 PM

OK keep us posted, I love the hack and cant wait to show it to my members.

I'm pretty sure its mainly because the flash game does not have the username whent he game is finished it tries to access the leaderboard and bam I get that message.

Can anyone provide any input on this one?

Pretty sure it has to do with this code segment:

PHP Code:

if($bbuserinfo[userid] != $userid){
    echo 
"ERROR, You have attempted to play tetris by unconventional means!";
    exit();




-portion

Ron ? DCS 08-19-2002 03:18 PM

First of all, I want to say this is an AWESOME HACK and thank you for all of your time and effort! My member base is just LOVING IT! :D

I aplogize if this has been stated before, but one member couldn't get it to work in Opera. He also has MSN Explorer, and it worked fine in there...are there browser compatibility problems? Personally, I really don't care, since my membership base that uses Opera has to be pretty low...I'm just pointing out a potential bug.

Among other things, he got the "ERROR, You have attempted to play tetris by unconventional means!" error message.

portion 08-19-2002 03:33 PM

Seems as though its working in IE, but not Netscape 6 or 4.79.

Just a heads up.

John 08-19-2002 05:10 PM

I'm going to release one total fix for all of the problems, including security and Netscape (hopefully).

[high]* john.eovie completes pong hack - and it's good ;)[/high]

John 08-19-2002 05:28 PM

If I do release the Store Addon hack, should I release it as another hack or in this thread?

Schorsch 08-19-2002 05:38 PM

Quote:

Originally posted by john.eovie
I'm going to release one total fix for all of the problems, including security and Netscape (hopefully).
Thanks John!!!! :banana: approximately, when do you think the fix is ready ? but take up time, don't wanna bustle you :)


Quote:

Originally posted by john.eovie
If I do release the Store Addon hack, should I release it as another hack or in this thread?
please another thread, this thread is complex enough...

lordofgun 08-19-2002 06:39 PM

AWESOME! Works perfectly on 2.2.6! Can't wait for the store integration!

/me clicks install

lordofgun 08-19-2002 06:40 PM

BTW, release the store integration on a new thread!

John 08-19-2002 06:42 PM

Quote:

Originally posted by lordofgun
AWESOME! Works perfectly on 2.2.6! Can't wait for the store integration!

* lordofgun clicks install

Glad to hear it :)

John 08-19-2002 06:43 PM

By the way, what happened to all of the people who said they were going to do some PayPal donating?!

lol, I'm not hinting through the avatar or anything ;)


All times are GMT. The time now is 01:40 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.01936 seconds
  • Memory Usage 1,832KB
  • 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
  • (5)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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