vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   Redirecting/Scores not saving (https://vborg.vbsupport.ru/showthread.php?t=138328)

amagazi 02-03-2007 02:28 PM

Redirecting/Scores not saving
 
I have a problem.

Installed the latest version.

When the game is completed: I am redirected to the index.php and my scores are not saved.

Using the lasest vbAdvanced.

Any suggestions?

I'm sure this has been answered, but hell, I'm not even sure what to search for.

- Team Amagazi

da420 02-03-2007 03:21 PM

Use the readme and make the edit specific for vBAdvanced users.

Robru 02-03-2007 07:13 PM

Put in the index.php of your vBAdvanced:

After

PHP Code:

<?php

This

PHP Code:

// ibProArcade modification
if($_POST['module'] == "pnFlashGames"){
    
$_GET[act] = "Arcade";
    
$_GET['module'] = "arcade";
}
if(
$_POST['func'] == "storeScore"){
    
$_GET['do'] = "pnFStoreScore";
}
if(
$_POST['func'] == "saveGame"){
    
$_GET['do'] = "pnFSaveGame";
}
if(
$_POST['func'] == "loadGame"){
    
$_GET['do'] = "pnFLoadGame";
}
$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 modification 


amagazi 02-04-2007 03:18 AM

Tried using this code.. I get this error:


Code:

Warning: main(arcade2.php) [function.main]: failed to open stream: No such file or directory in /data/12/1/3/68/1166068/user/1239319/htdocs/forums/index.php on line 20

Warning: main() [function.include]: Failed opening 'arcade2.php' for inclusion (include_path='.:/usr/services/vux/lib/php') in /data/12/1/3/68/1166068/user/1239319/htdocs/forums/index.php on line 20

edit: Tried changing line 20 to arcade.php from arcade2.php
Got this error:

Code:

This score was not submitted from the game. Your score will not be saved.
Fixed.. needed some AdminCP changes.

Cybershaolin 02-11-2007 01:01 AM

Fixed or nor fixed?? What do you mean by needed some admincp changes??? I have the same problem so I'd like to know.


All times are GMT. The time now is 10:02 AM.

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.01031 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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