vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   V3Arcade - So long 0 score posting (https://vborg.vbsupport.ru/showthread.php?t=71174)

frankenberrie 10-29-2004 10:00 PM

V3Arcade - So long 0 score posting
 
V3Arcade - So long 0 score posting

If you are like me, you have to hate those games that submit scores of zero - Apply this hack and if the game score is zero when the player hits submit, the player will be taken directly to the high score page for that game. No score or comment will be written!


File to mod: ARCADE.PHP (please backup file first)


FIND:
Code:

// This query gets all the information about the session, and the game which was played
        $game = $DB_site->query_first("SELECT gamesessions.*, games.* FROM " . TABLE_PREFIX . "gamesessions AS gamesessions
                                                LEFT JOIN " . TABLE_PREFIX . "games AS games ON games.shortname=gamesessions.gamename
                                                WHERE sessionid=$id
                                                AND userid=$bbuserinfo[userid] LIMIT 1");

Directly below that add:
Code:

        if ($game[score] < 1) {
echo "<meta HTTP-EQUIV=\"REFRESH\" content=\"0; url=./arcade.php?do=scores&name=$game[shortname]\">";
$validatesession = 0;
exit;
        }

Simple as that! Please click install if you use.

GoTTi 10-31-2004 10:18 PM

how can i remove all 0 score games then...i assume this wont do that auto for me?

frankenberrie 11-01-2004 10:31 AM

If you have existing scores that are Zero - you can remove them from your Arcade adminCP - score settings

Once this little mod is installed, zero scores will no longer be saved.

Shadow Blaze 11-03-2004 04:35 AM

i love you for this... thnkfully my arcade is new so it doesn't have many and thnk god now it never will :-p

Boofo 11-09-2004 01:16 AM

Quote:

Originally Posted by frankenberrie
If you have existing scores that are Zero - you can remove them from your Arcade adminCP - score settings

Once this little mod is installed, zero scores will no longer be saved.

What about games that work with a negative score? There are a few. ;)

frankenberrie 11-09-2004 11:19 AM

From what I know, V3arcade does not handle scores under 0

Lionel 11-15-2004 08:40 AM

never mind

ChuanSE 11-17-2004 11:46 PM

Good thinking Watson ;)

[high]* ChuanSE clicks install[/high]

FleaBag 12-13-2004 11:28 PM

Nice little addition... Thanks! :D

BullTaco 01-16-2005 04:55 PM

Thanks Buddy!!!


All times are GMT. The time now is 07:00 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.01122 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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