Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
vB Tetris v2.5 | Leaderboard, Comments and High Score System v2.5 :) Details »»
vB Tetris v2.5 | Leaderboard, Comments and High Score System v2.5 :)
Version: 1.00, by John John is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-13-2002 Last Update: Never Installs: 93
 
No support by the author.

hack removed, someone please delete this thread.

Apparently the 6 days solid I spend supporting this wasn't good enough (not to mention the 65 page total).

Thanks

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #762  
Old 08-23-2002, 11:01 PM
Castel Castel is offline
 
Join Date: Oct 2001
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by john.eovie
Ok, when I run

Code:
$leaderboard_q = $DB_site->query("SELECT game,userid,comment,date,max(score) as maxscore
                                    FROM arcade
                                    WHERE game='$gamename'
                                    GROUP BY userid
                                    ORDER BY maxscore DESC
                                    LIMIT $top_number");
in place of the standard leaderboard_q code, I get no records returned.
John I ran that query in PHPadmin and it works perfect. I used order by userid and no limit to check (after a checked there was multiple record for the same user) and the query returned only the highest score for each user. I think this is the ticket to your arcade hack with dual display mode, I had doctored up another way after out conversation earlier but this is much better.
  #763  
Old 08-23-2002, 11:03 PM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had already come up with this SQL earlier, but it didn't get me anywhere - just like it's not getting me anywhere now. I have no idea why this is not working in my code, but it is working in phpMyAdmin :\
  #764  
Old 08-23-2002, 11:18 PM
futureal futureal is offline
 
Join Date: Feb 2002
Location: Del Mar, CA, USA
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, let's see the rest of the code.

If you don't want to post it, feel free to PM it to me and I'll take a look at it.
  #765  
Old 08-23-2002, 11:21 PM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've come up with a solution - the code just didn't like the admin cp selection system I put in place to allow users to choose how they want their leaderboards to run.

Got the basis of something that works now tho, which can't be bad...
  #766  
Old 08-23-2002, 11:32 PM
eXtremeTim eXtremeTim is offline
 
Join Date: Jun 2002
Location: eXtremewebtech.com
Posts: 1,201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't wait to get it john.
This was one hack that i really wanted for vb.
  #767  
Old 08-23-2002, 11:55 PM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Souly
I have try to add Levels. i can not test it, because i am an admin and i have no time to play much hours ... I have never work before yesterday with flash, plz. test it on your own risk

[Changes]
*16 Levels: 11-16 are new and i think they are very hard, but i don?t play tetris, i can?t test it

3 new tetris.swf:
--> plz make a backup of all your previous tetris.swf Files before you test my new version!

1 Version:
------------
english, 16 Levels (6 new) very hard! pause is disabled

2 Version:
------------
english, 16 Levels (6 new) very hard! pause is enabled

3 Version:
------------
german, gray background, 16 Levels (6 new) very hard! pause is disabled


Here are Number ONE:
(english, 16 Levels (6 new) very hard! pause is disabled)

[INSTALL]
Download the tetris.zip File, unpack it and copy the tetris.swf File in your forum root and let test your user the 6 new level!
.................................................. .................................................. ..
Cheers for that, I'm using your second version and let's see what the pro's say once they've finished the 10th level
  #768  
Old 08-24-2002, 12:03 AM
Courage Courage is offline
 
Join Date: Feb 2002
Location: Romania
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by kypdurron
If Im using Ie6, after playing for awhile, I get a "access denied" error when the game is over...why is that and how can I disable it?
My users are complaining about the same thing. They are playing for a long time and when thy finish... Acces Denied

PHP Version v4.2.1
MySQL Version v3.23.51-log
  #769  
Old 08-24-2002, 12:06 AM
John's Avatar
John John is offline
 
Join Date: Mar 2002
Location: Norwich, UK
Posts: 1,543
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Courage


My users are complaining about the same thing. They are playing for a long time and when thy finish... Acces Denied

PHP Version v4.2.1
MySQL Version v3.23.51-log
Tetris version?
  #770  
Old 08-24-2002, 12:08 AM
futureal futureal is offline
 
Join Date: Feb 2002
Location: Del Mar, CA, USA
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is possible that because John's version has the timeout set to 60 minutes, the security check is failing after the game. An hour is a long time, though, so that might not be it. You could try increasing that value just for kicks.

Another option is to change where the calls to show_nopermission() are being made to see if that affects it. I use the following nopermission code:

PHP Code:
// access check
switch($action) {
  case 
"leaderboard":
    break;
  case 
"play":
  case 
"reg":
    if ((
$bbuserinfo[usergroupid] != 2) and
        (
$bbuserinfo[usergroupid] != 5) and
        (
$bbuserinfo[usergroupid] != 6) and
        (
$bbuserinfo[usergroupid] != 7)) {
      
show_nopermission();
    }
    break;
  default:
    if ((
$bbuserinfo[usergroupid] != 2) and
        (
$bbuserinfo[usergroupid] != 5) and
        (
$bbuserinfo[usergroupid] != 6) and
        (
$bbuserinfo[usergroupid] != 7)) {
      
show_nopermission();
    }
    
$action "play";
    break;

That code is near the top of the file and is only executed once. There are no further permission checks (aside from security stuff) and it seems to work great.

However, since I have moved pretty far away from the original hack, I wouldn't recommend trying that code out unless you know what you're doing. I don't want to screw anybody's thing up!
  #771  
Old 08-24-2002, 12:09 AM
Ryangel Ryangel is offline
 
Join Date: Jun 2002
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Latest one John. Its really weird as only some users get this. He told me he had Ie6 as well.
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:23 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05859 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete