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)

John 08-16-2002 08:40 PM

Yeah, did you get my reply?

John 08-16-2002 08:40 PM

My users want the Tetris theme music tho, they're not into house much...

Kars10 08-16-2002 08:41 PM

@ John, how can we get the Tetris-Backroundmusik in the Flash??
Is this possible?? :confused:

xxxsaint 08-16-2002 08:44 PM

any luck on the space invaders ?

madhouse 08-16-2002 08:49 PM

Ziggy any luck with the music part of this hack?

Steve Machol 08-16-2002 08:58 PM

Question - with all the security updates, is it simply a matter of uploading and overwriting the tetris.* files? I hope we don't have to reinstall the templates as well. (I have multiple stype sets.)

ziggy 08-16-2002 09:02 PM

No reply? just checked my spam folder too, NADA!

I could'nt find any Tetris WAV's?
I don't install free/shareware on my system & thats the only thing I saw for converting MID's to WAV?

MIDI is usually nothing but the butt of bad jokes LOL

I thought House1, GameGroove & Roundabout were pretty cool game loops? Velocity ain't bad either? I don't hardly ever play the things though?
Ya gotta click "PLAYLIST" to choose what ya want!
I personally like BossMan, SpaceCowboy & HeadBang myself :D

view MuzikHak: http://www.crashsoftware.com/muzikhak/

Ian 08-16-2002 10:25 PM

Secuirty wise, I don't think anything like this can be 100% hack proof. The main reason for this, or at least I think, is because of memory editors. I havn't tried this yet but couldn't I just start a game and put my score up to like 99999999?

John 08-16-2002 10:28 PM

Quote:

Originally posted by smachol
Question - with all the security updates, is it simply a matter of uploading and overwriting the tetris.* files? I hope we don't have to reinstall the templates as well. (I have multiple stype sets.)
Just the tetris.* files :)

Ninth Dimension 08-16-2002 10:30 PM

I'm currently working on an idea to fix the security hole, i'll let you know if I succed :)

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. :(

Castel 08-17-2002 01:23 AM

Quote:

Originally posted by Jashugan
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?

Check edited post above

Castel 08-17-2002 01:28 AM

Quote:

Originally posted by NexDog
Could you post what needs to be added to the templates and where? I'm dealing with a HD failure right now. :(
My last row of tetris_leader_main looks liek this:

PHP Code:

<tr
          <
td bgcolor="{tableheadbgcolor}" colspan="4" align="center"><smallfont color="{tableheadtextcolor}">&nbsp; <b>$thefooter</b> &nbsp;</smallfont></td>
        </
tr


Jashugan 08-17-2002 01:29 AM

Castel

TY :)

NexDog 08-17-2002 04:52 AM

All well and good, but none of this changes the link colour for the word, "here".

Lesane 08-17-2002 09:40 AM

Quote:

Originally posted by Stuwee
I actually can't think of a 100% reliable way around this right now - the referrer is the best way I can think of, but as we all know, it can be easily poisoned.
From the manual:

Quote:

PHP Manual:
The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
http://www.php.net/manual/en/reserve...riables.server

Basically, do not use it for any form of validation. (as the manual says) trust it.

I will secure my tetris and i will let you know when i'm done with it, then you can check if it's 100% secure if you want.

Souly 08-17-2002 09:48 AM

I have found one Problem in the Game.swf:

Is it not good, that you can stop (Pause) the Game and see the next item and all other from the game :D .. In the original tetris a very big Pausescreen will show and you can?t see anything. Is it possible to make the Pausescreen bigger?

Schumi 08-17-2002 10:51 AM

Hello.

I want play Tetris on my forum. I opened the play, but I got the notice that I have no permisson. Many user got this notice.

What can I do?

Ninth Dimension 08-17-2002 12:43 PM

I've just discovered another bug, it's not anything that would bother me personally because of the way I've got my forum set-up, but for anyone with a forum that requires either moderation of new members, or forums that require email checks on new members, this hack totally by-passes it, alloing someone to sign-up with a fake email, or ignore the sign-up email, and go stright to the tetris game.

I'm guessing that this can be fixed by changing the
PHP Code:

error_reporting(7); 

code, but I don't know what to.

ps. Castel nice add-on :)

Ninth Dimension 08-17-2002 12:44 PM

OK, i've just realised that it's not the error_reporting thing that needs changing, but the:
PHP Code:

if ($bbuserinfo[username] == "Unregistered") {
  
show_nopermission();


but yet again, I don't know what it needs to be changed to.

Ninth Dimension 08-17-2002 01:03 PM

Right, I can NOT gurantee that this will fix the problem I suggested above, but here is what I think you need to do:

Find:
PHP Code:

if ($bbuserinfo[username] == "Unregistered") {
  
show_nopermission();


Replacewith
PHP Code:

if (($bbuserinfo[usergroupid] == "1") or ($bbuserinfo[usergroupid] == "3") or ($bbuserinfo[usergroupid] == "4")) {
  
show_nopermission();


this will have to be done 4 times (I think).

I've not tested this yet, i'm just about to, if you do try it, MAKE A BACK UP of tetris.php first.

PS, 1 is Unregistered / Not Logged In
3 is Users Awaiting Email Confirmation
and 4 is (COPPA) Users Awaiting Moderation.

if you have any other usergroups that you don't want to give access to, you need to add them as well (like i've got 8 which is BANNED!! :))

edit - fixed code :)

John 08-17-2002 01:15 PM

Castel, good work! Could you send me your tetris.php please?

Ninth Dimension 08-17-2002 01:36 PM

I've just tested my own code, and it's working fine, i've got it running on my forum now - http://gamevine.co.uk/forum/tetris.php and i've just had one of my users help me test it by changing his usergroup to each of the available ones, and he was denied access on all the ones I did not want him to have access with.

please feel free to make the changes I have suggested, esp if you are using a foregn board, but as i said before, make sure you BACKUP tetris.php before making the changes :)

Jalrock 08-17-2002 04:55 PM

Great hack. Fresh install. no problems. Thank you

lichtflits 08-17-2002 05:03 PM

when you finished all the 10 levels you see "game over"
but your scores are not sub mitted

a bug? :ermm:

Ninth Dimension 08-17-2002 05:53 PM

Quote:

Originally posted by lichtflits
when you finished all the 10 levels you see "game over"
but your scores are not sub mitted

a bug? :ermm:

Yes, this is a bug in the flash file, a number of my users have reported it.

If anyone good with flash, or know someone that's good get them to look at the flash code and add some more levels or something :)

JaZz0r 08-17-2002 08:02 PM

My users are complaining about how the pieces rotate backwards (counter-clockwise). Heh, guess I've got some true Tetris nuts as users, but I consider it a legitimate claim. Any way to fix this?

Castel 08-17-2002 08:08 PM

Quote:

Originally posted by JaZz0r
My users are complaining about how the pieces rotate backwards (counter-clockwise). Heh, guess I've got some true Tetris nuts as users, but I consider it a legitimate claim. Any way to fix this?
Hahah, various comments on my leader list are screaming for counter-clockwise as well, this is serious business now :) This has to be by far the most popular hack from a users perspective!

JaZz0r 08-17-2002 08:21 PM

Very true. This is in my list of the Top 5 vB hacks. :)

I attempted to edit the .FLA file myself in hopes to fix this problem, but alas, I have no experience with Flash, and it is quite intimidating (ESPECIALLY when most of the code is in a foreign language!).

I tried to look for someone who could assist me on an IRC network I frequent, but I think I scared everyone away with my wording - "Anyone fluent in Italian and an advanced Flash programmer?"

Oh well, keep up the good work, guys!! :D

Link14716 08-17-2002 08:27 PM

Here is a nice game ;)

http://www.flashkit.com/movies/Games...6921/index.php

John 08-17-2002 09:44 PM

In a couple of days time I'm going to start work on a 99.9% secure version of the leaderboard, along with a few more options and extra features. :banana:


All times are GMT. The time now is 01:05 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.02359 seconds
  • Memory Usage 1,847KB
  • 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
  • (11)bbcode_php_printable
  • (8)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