vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Can somebody solve this once and for all !! (https://vborg.vbsupport.ru/showthread.php?t=212312)

stemmy 04-27-2009 08:43 PM

Can somebody solve this once and for all !!
 
Please can somebody give a clear answer to this regular question.

I installed the arcade and edited all templates.

When games are played the scores are not recorded.

I do have VBAdvanced installed but when I make the edit of the index.php file as shown in the install files the page then fails to load.

I just get an error message. The usual "This page will not load - Internet explorer one)

I have heard this mentioned a couple of times but no answer has been given yet.

Thanks in advance. I miss my arcade !!!

chick 04-27-2009 09:38 PM

Same here, since the upgrade scores will not save.

Seshat Diva 04-30-2009 02:38 AM

Installed with one issue I can't resolve. :confused:

For some reason the scores are not showing up as each game is played, they are remaining at "0". I thought it was because maybe scores only showed up with playing in tournaments. I played a tournament and score still remained "0".

If anyone can help, it would be appreciated. Thank you!:)

(This is my third try to get some help on this today, it would be really great to get some support on this.)

chick 04-30-2009 10:42 AM

Mr. Zero can you please address this. Thank you.

stemmy 05-04-2009 03:41 PM

Is there any support for this issue ??

Gemma 05-04-2009 04:01 PM

Don't know what your problem could be other than adding this to the top of your index.php after the <?php

Code:

// ibProArcade
if($_POST['module'] == "pnFlashGames")
{
require_once('./global.php');

switch($_POST['func'])
{
case "storeScore":
$_GET['act'] = "Arcade";
$_GET['module'] = "arcade";
$_GET['do'] = "pnFStoreScore";
break;

case "saveGame":
$_GET['do'] = "pnFSaveGame";
break;

case "loadGame":
$_GET['do'] = "pnFLoadGame";
break;

case "loadGameScores":
$gid = $vbulletin->input->clean_gpc('p', 'gid', TYPE_INT);
$uid= $vbulletin->userinfo['userid'];
$game = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "games_scores WHERE mid=$uid AND gid = $gid ORDER BY score DESC LIMIT 0,1");
$scores = $game[score];

if($scores != false)
{
//Return true
print "&opSuccess=true&gameScores=$scores&endvar=1"; //send endvar to keep opSuccess separate from all other output from PostNuke
}
else
{
print "&opSuccess=false&error=Error&endvar=1";
}
break;
}
}

$act = $_GET[act];
$autocom = $_GET[autocom];
$showuser= $_GET[showuser];
if($act == "Arcade" || $autocom=="arcade") {
include "arcade.php";
exit();
}
if(!empty($showuser) && $showuser >= 1) {
$u = $showuser;
$_GET[u] = $showuser;
include "member.php";
exit();
}

// end of ibProArcade


z0diac 05-05-2009 02:42 AM

I can tell you all what your problem [mostly likely] is...

You chmod'd the arcade directory to 0777 but not its contents.

cd into arcade directory in shell
type chmod 0777 * -R

Done.

It'll be able to write to the highcores now.


All times are GMT. The time now is 05:12 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.01077 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete