vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   vbProArcade Beta 2 (https://vborg.vbsupport.ru/showthread.php?t=42880)

Kaelon 08-27-2004 11:15 PM

Any word about the fix for vB2 to ensure that the games are scorable in Mozilla? What OBJECT and EMBED tags need to be used for these games so that the scores are recorded? Thanks!

Kaelon 08-29-2004 03:49 AM

Reducing Queries on proarcade.php

1. Get rid of the Mini Scoreboards:

For those of you who want to reduce queries by removing the scoreboard, just follow these easy steps while editing proarcade.php (this will take off around one to two queries per game):

a. FIND and DELETE the following code:

Code:

      // now begin the mini-leaderboard display
      $gs_rank = 0;
      $gamescorecellbits = "";

      $miniboard_q = $DB_site->query("SELECT * FROM arcadescores WHERE game='$gamename' AND valid=1 ORDER BY score DESC LIMIT 5");

      while ($miniboard = $DB_site->fetch_array($miniboard_q)) {

        $gs_rank++;
        $gs_score = number_format($miniboard[score]);
        $gs_user = $miniboard[username];

        // make date/time look good
        $gs_date = date("F j, Y", $miniboard[endtime]);
        $gs_time = date("g:i a", $miniboard[endtime]);

        $duration = $miniboard[endtime] - $miniboard[begintime];

        $gs_duration_mins = div($duration,60);
        $gs_duration_secs = $duration % 60;

        eval("\$gamescorecellbits .= \"".gettemplate("vbproarcade_arcade_gamescorecellbit")."\";");

      }

      eval("\$thisgamescorecell = \"".gettemplate("vbproarcade_arcade_gamescorecell")."\";");

      $allgamescorecells[$cellcount++] = $thisgamescorecell;

b. FIND and DELETE this following code:

Code:

  $curcell = 0;

  while (($curcell <= $cellcount) && ($cellcount != 0)) {

    if (($curcell+2) <= $cellcount) {

      // in this case, do a pair of cells

      $gamescorecell_1 = $allgamescorecells[$curcell];
      $gamescorecell_2 = $allgamescorecells[$curcell+1];

      // need to format it correctly since we are splitting rows

      $gamescorecell_1 = preg_replace("/GSCOLSPAN/","align=\"right\"",$gamescorecell_1);
      $gamescorecell_1 = preg_replace("/GSOUTWIDTH/","width=\"50%\"",$gamescorecell_1);
      $gamescorecell_1 = preg_replace("/GSINWIDTH/","width=\"100%\"",$gamescorecell_1);
      $gamescorecell_2 = preg_replace("/GSCOLSPAN/","align=\"left\"",$gamescorecell_2);
      $gamescorecell_2 = preg_replace("/GSOUTWIDTH/","width=\"50%\"",$gamescorecell_2);
      $gamescorecell_2 = preg_replace("/GSINWIDTH/","width=\"100%\"",$gamescorecell_2);

    } else {

      // in this case, a single cell

      $gamescorecell_1 = $allgamescorecells[$curcell];
      $gamescorecell_2 = "";

      // in this case we had an odd # of cells so just center the remaining cell

      $gamescorecell_1 = preg_replace("/GSCOLSPAN/","colspan=2 align=\"center\"",$gamescorecell_1);
      $gamescorecell_1 = preg_replace("/GSOUTWIDTH/","width=\"100%\"",$gamescorecell_1);
      $gamescorecell_1 = preg_replace("/GSINWIDTH/","width=\"50%\"",$gamescorecell_1);

    }

    $gamescores .= "<tr>" . $gamescorecell_1 . $gamescorecell_2 . "</tr>\n";

    $curcell += 2;

  }


Barto 09-20-2004 04:47 PM

HI,
I use Vb 2.3.4.
Every time that I finish a game appear this:

"data mismatch has been discovered between the game and the arcade, normally as the result of a cheating attempt. This attempt has been logged, and the score invalidated. If you feel that you are receiving this message in error, please contact the system administrator."

Please help me!!!

Blue Moose Aaron 09-23-2004 01:54 AM

He's got about 91% of it done, just has a ton of personal things going on. He hasn't abandoned it I swear!

Mystictrunks03 10-18-2004 02:57 AM

i get this error when accessing my site:

Parse error: parse error, unexpected T_DEC, expecting T_VARIABLE or '$' in /home/shankwh/public_html/main/forum/admin/functions.php on line 201

help

Gio~Logist 12-02-2004 10:31 AM

*bump*


All times are GMT. The time now is 10:15 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.03308 seconds
  • Memory Usage 1,733KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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