The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
ibProArcade Fixes Details »» | ||||||||||||||||||||||||||||||
Quote:
or Full width Forum logo mod the above ARCADE template will work alone this template should be changed anyway.. the arcade is so out of date. it's calling the old template ARCADE instead of ARCADEVB4 I just copied the ARCADEVB4 template and added it to the ARCADE template with a couple small changes If you are still using the stock ARCADE template soon or later it's going to stop working.
Quote:
if adding this code to your index.php don't work below as stated in your arcade zip file you downloaded Code:
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 :) If the Above edit does not work Pitman posted a rewrite that does the same things with out editing the index.php or of you don't have one https://vborg.vbsupport.ru/showpost....6&postcount=83 I also have a version of this from stangger5 Posted in the new updated Ibproarcade fixes Fatal error: Allowed memory / uploading in bulk Quote:
I tried to add all the bug fixes in one thread to make it easy for people to find them.. If I forgot any feel free to post them here.. Hope this helps out enjoy Download Now
Show Your Support
|
Comments |
#332
|
|||
|
|||
Hi,
Yes, I have added the code to the .htaccess file and the code to the index.php file. The arcade will still not save the scores. I haven't seen anything else in the threads that tells you what to do after that? Thank you for the help. :-) |
#333
|
||||
|
||||
If you have rewrite on.. Then you do not need the index edit.. Do one or the other they may conflict with try one test if it doesn't work test the other
|
#334
|
|||
|
|||
Well, I tried the .htaccess page with just the added code and the index.php page in it's original condition and it doesn't work. Also tried the index.php code on there with the .htaccess file it's original state and neither work.
I don't know what to try now. |
#335
|
||||
|
||||
Quote:
I dont think index.cfm will work.. Try adding the arcade index.php code to your forum/forum.php file.. |
#337
|
|||
|
|||
I thought I'd share a small fix. We had one game (Onslaught 2) that would get errors when scores were submitted, and I always suspected it was because the scores were large numbers. It turns out the problem was due to the fact that our server OS is 64 bit and the score encoding depends on 32 bit arithmetic. So I made this change:
Find this line: PHP Code:
PHP Code:
As far as I know Onslaught 2 is the only game we had a problem with, but I thought I'd share it anyway in case someone else is interested. Edit: I changed the above to simpler code that only runs when needed, and it's been tested better (although I don't know of any problem with what I originally posted). |
3 благодарности(ей) от: | ||
Digital Jedi, Hippy, stangger5 |
#338
|
|||
|
|||
- Wrong thread -
|
#339
|
||||
|
||||
|
#340
|
||||
|
||||
Over write your ARCADE template with the one in the first post in this thread,,for starters..
|
#341
|
||||
|
||||
I tried that before posting that screenshot. Negative.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|