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)

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?


All times are GMT. The time now is 04:29 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.02043 seconds
  • Memory Usage 1,745KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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