The Arcive of vBulletin Modifications Site. |
|
Can not submit score with 4.1.1 Details »»
|
|||||||||||||||||||||||||
Done!
Thank all :P Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Well, that was easy.
|
|
#3
|
||||
|
||||
|
I only wish I knew what he did... the one on my site won't post scores and I haven't found anything that looks wrong yet.
![]() Okay, entered the code in this post and it works now. Sorry; gotta start lookin' before I leap. |
|
#4
|
||||
|
||||
|
We should note that this information is also located in ZIP file with ibProArcade.
|
|
#5
|
||||
|
||||
|
Quote:
This thread showed up in the search before the one that said 'do this'. Ba-da-bing, ba-da-boom. I am having my second shot at n00b-ism. :LOL |
|
#6
|
||||
|
||||
|
did you figure it out orillia..
if not here is the fix Code:
If you are using vbAdvanced Portal and your /index.php is not the original one from vBulletin,
you have to edit your alternate index.php:
open index.php
At the very beginning of the File, right after:
----------------------------------------------------------
<?php
----------------------------------------------------------
you have to insert:
----------------------------------------------------------
// 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
----------------------------------------------------------
Otherwise your scores won't be recorded :)
|
|
#7
|
||||
|
||||
|
Yes, I did, but thanks very much.
|
|
#8
|
|||
|
|||
|
same problem with vbulletin 4.11 cant save the score and use the vbulletin cms do i have to integrate that code anywhere in the header or where else?
thank you. |
|
#9
|
|||
|
|||
|
This above fix did not work for me.
|
|
#10
|
||||
|
||||
|
Read these two posts:
https://vborg.vbsupport.ru/showpost....71&postcount=2 https://vborg.vbsupport.ru/showpost....37&postcount=8 These will solve the problem. |
![]() |
|
|