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-21-2002 12:47 AM

Quote:

Originally posted by lordofgun
If I was a policeman, I would shoot john.eovie. :(
everyone in favour of the above action - SHOOT JOHN!!!

(sorry john, i don't mean it realy *G*)

John 08-21-2002 01:04 AM

And at the risk of being unpopular, here's Pacman :)

http://www.eovie.co.uk/pics/11.gif
http://www.eovie.co.uk/pics/12.gif

Ryangel 08-21-2002 01:08 AM

RISK OF BEING UNPOPULAR?
*faints*

You're joooooooking right?

JJR512 08-21-2002 01:12 AM

So you're selling this now? Or rather, selling the good stuff? Like giving away marijuana to get people to come back and buy crack?

What you are you going to do for those of us that don't have (and cannot use) PayPal? Tell us we're screwed?

John 08-21-2002 01:15 AM

JJR512 - if you want it, I've got no problem in giving it to you. (Seeing as I'm planning on installing your brilliant news hack! :))

JJR512 08-21-2002 01:24 AM

Ah, excellent! :D

BTW, which news hack? I've done so many...let's see: Any-forum news hack (post a thread in any forum and have it show as a news blurb on another page); XML Headlines (XML feeds providing headlines linked to full articles); or Forum News (a variation of XML Headlines, it puts the headlines from a specific feed at the top of a forum).

Erwin 08-21-2002 02:05 AM

What about me, John? I did get you started with the original Tetris hack... ;)

Schorsch 08-21-2002 02:26 AM

yeah and what about me ? I didn't release any hack yet :( :bunny:

Ninth Dimension 08-21-2002 02:29 AM

John, I feel really sorry for you right now :)

Erwin 08-21-2002 03:41 AM

LOL! This is what happens when you tease... ;)

Steve Machol 08-21-2002 05:06 AM

Just forund another problem with 2.41, After 'lining out' I was taken to the 'No permission' page. This was the URL used:

tetris.php?action=reg

John 08-21-2002 07:51 AM

Quote:

Originally posted by smachol
Just forund another problem with 2.41, After 'lining out' I was taken to the 'No permission' page. This was the URL used:

tetris.php?action=reg

Weird - it took me back onto the leaderboard :\

John 08-21-2002 09:36 AM

One thing - you have to make sure that you don't use the back button to play again or it overwrites your record...

ahbao 08-21-2002 10:31 AM

Quote:

Originally posted by smachol
Just forund another problem with 2.41, After 'lining out' I was taken to the 'No permission' page. This was the URL used:

tetris.php?action=reg

me too .. :dead:

my member was complain to me that I am cheating because their highest score is not recorded and instead they get a no permission error

John 08-21-2002 10:34 AM

Quote:

Originally posted by ahbao


me too .. :dead:

my member was complain to me that I am cheating because their highest score is not recorded and instead they get a no permission error

I think this must be the session timeout issue coming up again. Change "Cookie timeout" in your vB options to 1800 instead of 900, see if it makes a difference

ahbao 08-21-2002 10:38 AM

oh i saw this

// If the user doesn't belong to certain usergroups, show the no permission page
if (($bbuserinfo[usergroupid] == "1") or ($bbuserinfo[usergroupid] == "3") or ($bbuserinfo[usergroupid] == "4")) {
show_nopermission();
}

so I guess maybe because of this my user get no permission problem

ahbao 08-21-2002 10:39 AM

Quote:

Originally posted by john.eovie


I think this must be the session timeout issue coming up again. Change "Cookie timeout" in your vB options to 1800 instead of 900, see if it makes a difference

will try .. :) thanks thanks, a nice hack

Grover 08-21-2002 11:29 AM

Supercool this is! I am a total newbie on hacks, but this Tetris thing is way cool!

I've just tried it out on: http://www.fetter-esel.com/vB/tetris.php?action=play&s= on I was wondering if we could set the amount of posters that will get into the TOP list. I mean, you now have to gain soooooooooooo much points to get anywhere near the top 10. Ofcourse, I KNOW this is the whole point of having a TOP 10 in the first place, but I think a lot of my members on my board would find it very very nice to be able to get just their NAME and comment on this Tetris-list. So I was wondering.... could you make an option so that we can set how long the TOP list will be? 10, 30, 40, whatever? When you make a TOP 20 list, you can alsways HIGHLIGHT those TOP 10 members or something, I just think that MORE people will play along if it wasn't to hard to get your name on this list. Just an idea.....

John 08-21-2002 11:34 AM

Easy Grover - all you have to do is open tetris.php and replace

LIMIT 10

with

LIMIT [number in top list]

(It occurs twice)

Ninth Dimension 08-21-2002 11:36 AM

FIND:
PHP Code:

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

REPLACE WITH:
PHP Code:

$leaderboard_q $DB_site->query("SELECT * FROM arcade WHERE game='tetris' ORDER BY score DESC LIMIT <number>"); 

This will need to be done twice, and <number> needs to be replaced with whatever number you want on the highscore.

This however produces produces more queries based on the number you are showing in the leader board (one extra for each person). There was another suggestion in this thread about how to reduce this, but I don't know if it works with the latest verson or not.

Hope this helps?

Kars10 08-21-2002 11:38 AM

Quote:

Originally posted by danielhollands
FIND:
PHP Code:

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

REPLACE WITH:
PHP Code:

$leaderboard_q $DB_site->query("SELECT * FROM arcade WHERE game='tetris' ORDER BY score DESC LIMIT <number>"); 

This will need to be done twice, and <number> needs to be replaced with whatever number you want on the highscore.

This however produces produces more queries based on the number you are showing in the leader board (one extra for each person). There was another suggestion in this thread about how to reduce this, but I don't know if it works with the latest verson or not.

Hope this helps?

It works with the new version. Thanx! :rambo:

John 08-21-2002 11:43 AM

thanks to Minifreunde for voting for this on Hack of the Month :) :banana:

*nudge* https://vborg.vbsupport.ru/showthrea...215#post288215 *nudge*

Ninth Dimension 08-21-2002 11:44 AM

*WOOF!*
Private joke

NexDog 08-21-2002 11:48 AM

Daniel,

Changing the limits in tetris.php is the easiestoption and doesn't produce any more queries.

John 08-21-2002 11:51 AM

That's exactly what his code does.. :\

Ninth Dimension 08-21-2002 11:53 AM

Quote:

Originally posted by NexDog
Daniel,

Changing the limits in tetris.php is the easiestoption and doesn't produce any more queries.

I could be wrong, but from the code I can see that for each score in the leader board it does another query to get the users username, this line:
PHP Code:

$user_result $DB_site->query("SELECT username FROM user WHERE userid='$s_userid'"); 

This will result in a query for each person listed on the leaderboard

NexDog 08-21-2002 11:56 AM

Okay, me baka. :)

Kars10 08-21-2002 11:57 AM

Quote:

Originally posted by john.eovie
thanks to Minifreunde for voting for this on Hack of the Month :) :banana:

*nudge* https://vborg.vbsupport.ru/showthrea...215#post288215 *nudge*

I thank you John for giving us this great hack!!
Like i said you create a Monster!! *lol* :bunny:

John 08-21-2002 12:26 PM

Ok, I think this *should* fix the session timeouts and no permission problems...

Give me feedback :)

Ninth Dimension 08-21-2002 12:34 PM

I've just uploaded the new tetris.php file, and so far as I can see there are no problems, but then I was not getting problems in the first place.

Zombie 08-21-2002 12:40 PM

I just got a "No Permission" error with the new php file

John 08-21-2002 12:42 PM

Quote:

Originally posted by Zombie
I just got a "No Permission" error with the new php file
Where did this happen?

John 08-21-2002 12:48 PM

Just updated the tetris.php file again -

I need to know who's getting no permission errors, and where - and after how long playing tetris.

scottct1 08-21-2002 12:51 PM

Hmm still not working in netscape.

Before I was Getting eovie.com presents, now I am getting Dynamic Field Presents.

And still no username is passed.

It works fine in IE. Wierd.

John 08-21-2002 12:52 PM

I hate Netscape. :|

Zombie 08-21-2002 12:58 PM

It doesn't happen all the time. Just every so often I get that error

scottct1 08-21-2002 12:58 PM

Me too, a user just alerted me that it does not work with Opera as well. (When will these folks understand that IE rules the world?) :D

John 08-21-2002 01:01 PM

Quote:

Originally posted by Zombie
It doesn't happen all the time. Just every so often I get that error
|How come you got it so quickly after you installed the new file then?

John 08-21-2002 01:02 PM

Quote:

Originally posted by scottct1
Me too, a user just alerted me that it does not work with Opera as well. (When will these folks understand that IE rules the world?) :D
I know! IE is obviously a far superior browser, can't people just accept it?

I know someone who refuses to visit a site if it doesn't work with Netscape 4.xx. And nothing works with Netscape 4.xx...

Zombie 08-21-2002 01:04 PM

Quote:

Originally posted by john.eovie


|How come you got it so quickly after you installed the new file then?

I uploaded the file, then the first game I played I got that error (it could have been a cached page, but I'll keep an eye on it)

BTW, I'm using IE6


All times are GMT. The time now is 12:13 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.01662 seconds
  • Memory Usage 1,825KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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