The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#2
|
|||
|
|||
![]()
You would add it to the index page, not your forum page.
If cmps is your index, you would add it to the beginning of that page. |
#3
|
|||
|
|||
![]()
Hmm... I tried using the text in the INFO - vbadvanced or another Portal file rather than the popup link in the admin cp and all worked fine.
Thanks to those who tried to help. Much appreciated. |
#4
|
||||
|
||||
![]()
This solved the problem. The popup text has an incorrect character somewhere and doesn't work but the text file included in the zip file works fine.
|
#5
|
|||
|
|||
![]()
yes the info in the pop-up box in arcade portion of admincp is incorrect somewhere.
|
#6
|
||||
|
||||
![]()
yes, sorry, although this should be fixed in current v2.6.3+ admincp
you have to edit index.php and not forum.php |
#7
|
|||
|
|||
![]()
Hello,
I have the same setup but in adminCP/arcade/information it keeps telling me: +++++++++ Notice: Your forum's mainpage is not index.php - please make sure to adapt your /forum.php otherwise scores won't be recorded!You will find detailed instructions in the ibProArcade-archive: INFO - vbadvanced or other Portal.txt or in this popup-window +++++++++ I already added the folowing: 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 ![]() The other issue is that AFTER the game, the "scores cannot be retrieved"! Any suggestiong here? |
#8
|
|||
|
|||
![]()
Doesnt work. Typical.
|
#9
|
|||
|
|||
![]()
it works for me,thanks.
|
#10
|
||||
|
||||
![]()
Here is a copy of the correct code, you need to place it in your index.php file as per instructions
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 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|