View Full Version : vb 4.0 compatibilty?
edytwinky
09-08-2009, 03:47 PM
Has work begun on this mod to make it compatible with vBulletin 4.0 coming out late this year/early next?
cheat-master30
09-08-2009, 06:16 PM
That's a good point. I certainly can't have a situation on my own forum where there's no arcade for any amount of time, the members would hate it.
Hostboard
09-09-2009, 02:55 PM
Unless the author is on the alpha team there is no way to be able to start to make things compatible with newer version. Hopefully if he is not then there will not be that many changes needed to the actual code. Templates for 4 are supposed to be vastly different so that area will need a heavy re-write.
cheat-master30
09-09-2009, 10:23 PM
To be fair, we know the template syntax. It's here:
http://www.adminaddict.net/forum/vbulletin/vbulletin-4-template-conditionals-list-3391/
edytwinky
10-14-2009, 02:18 AM
MrZeroPage do you by chance have any information regarding this?
skylab
10-14-2009, 02:44 PM
That's a good point. I certainly can't have a situation on my own forum where there's no arcade for any amount of time, the members would hate it.
same here..
im sure i'll be done.. just take some time i suppose
I hope we can get some news ASAP, our users like this tools a lot!
redlabour
11-09-2009, 02:59 AM
Any Information on this? :confused:
A Lot of us are waiting for info for vb4.
Last post by the author, according to his profile was around July time
stangger5
11-10-2009, 09:52 AM
If you really think about it,,,ibproarcade only uses one vb template..
And knowing my luck, it will be that one template that screws up my board lol
stangger5
11-11-2009, 07:09 AM
So far,,looks like some conditionals will need to be changed..
Nadeemjp
11-14-2009, 08:17 PM
i dont think i can upgrade to vb4 until this mod is upgraded. it is the pivot of my forum
karlm
11-15-2009, 12:26 AM
I'm interested to know the answer as well.
edytwinky
11-15-2009, 04:50 AM
i dont think i can upgrade to vb4 until this mod is upgraded. it is the pivot of my forum
I'm the same way unfortunately.
I think you can convert to v3 but i'm not entirely sure
I'm interested to know the answer as well.
me too
Tyran1
11-15-2009, 10:35 AM
Its not compatible with vB4!
Garamond
11-17-2009, 04:00 PM
I really need a vB4-compatible version of ibProArcade if I'm going to upgrade my forums. It's a show-stopper deluxe!
stangger5
11-18-2009, 09:34 AM
I have the main part of ibproarcade working with vb4.0 right now..
Still need to work on the css tho..
I have the main part of ibproarcade working with vb4.0 right now..
Still need to work on the css tho..
How is it working on your end? do you modified files and templates?
jalmz
11-19-2009, 07:14 AM
me too, i will not upgrade to vb 4 without this plug in.. this is the most vital plug in in vb
I have the main part of ibproarcade working with vb4.0 right now..
Still need to work on the css tho..
Will you post the needed changes here, or will it be available form your site?
Is the mod author still available, sadly, i dont see any recent activity from him
stangger5
11-19-2009, 09:11 AM
I did some template and php edits to get it to work..
I`m trying to get up with MrZeropage before posting anything..
I did some template and php edits to get it to work..
I`m trying to get up with MrZeropage before posting anything..
That's great.
I have upgraded my forum to vb4 and trying to change arcade template and files as well, but it is very hard for me cause I don't understand most codes. :(
puppetmaster222
11-19-2009, 03:32 PM
That's great.
I have upgraded my forum to vb4 and trying to change arcade template and files as well, but it is very hard for me cause I don't understand most codes. :(
ditto.. Messed around some here but with no real progress.
Unfortunately will remain Disabled for now :eek:
Garamond
11-19-2009, 10:41 PM
I sent MrZeropage a PM some days ago with question about his commitment to bring this addon to vB4, but still no reply.
edytwinky
11-22-2009, 02:42 AM
I did some template and php edits to get it to work..
I`m trying to get up with MrZeropage before posting anything..
What all would it take stangger to make the mod available for you to take over?
Sworm
11-22-2009, 06:40 AM
A Lot of us are waiting for info for vb4.
Last post by the author, according to his profile was around July time
Ohhh july? Is a lot of time!:(
cory_booth
11-24-2009, 12:14 AM
I don't know what the rules are here about editing someone elses work,
so if the mods feel this is "over the line" then please delete.
I take absolutely no credit for ibproarcade, it is a fantastic mod and so good, it was essential I get it up and running on VB4.
Perhaps there are better ways to do this and there could be glitches, but here is what I did to get my arcade back.
First, this assumes you still have ibproarcade installed.
Step 1: Log into Admin, deactive "ibProArcade: ARCADE Template Cache"
(Perhaps someone else can help with this plugin)
Step 2: Erase and replace your ARCADE template with the following:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
<title>{vb:raw vboptions.bbtitle}</title>
{vb:raw headinclude}
</head>
<body>
{vb:raw header}
{vb:raw navbar}
<div id="pagetitle">
<h1>{vb:raw pagetitle}</h1>
</div>
<h2 class="blockhead">Arcade</h2>
<div class="blockbody">
<div class="blockrow">
{vb:raw arcadeheader}
{vb:raw maincontent}
</div>
</div>
{vb:raw footer}
</body>
</html>
Step 3:
Locate the arcade standard file functions.php in /arcade/functions/
Near line 1345 you will see the following:
// HTML-TITLE DONE :)
$debug = false;
$navbits = $output_array['NAV'];
$navbits = construct_navbits($navbits);
eval('$navbar="' . fetch_template('navbar') . '";');
eval('$footer="' . fetch_template('footer') . '";');
$maincontent = $this->to_print;
eval('print_output("' . fetch_template('ARCADE') . '");');
exit;
Erase this code and replace with:
// HTML-TITLE DONE :)
$debug = false;
$navbits = $output_array['NAV'];
$navbits = construct_navbits($navbits);
$navbits = construct_navbits(array('' => 'Arcade'));
$navbar = render_navbar_template($navbits);
$maincontent = $this->to_print;
$templater = vB_Template::create('ARCADE');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('footer', $footer);
$templater->register('pagetitle', 'Arcade');
$templater->register('maincontent', $maincontent);
$templater->register('arcadeheader', $arcadeheader);
print_output($templater->render());
exit;
Step 4:
Edit your index.php file in root to support the score saving routine by adding the following code at or near the top of the index.php file.
// ibProArcade modification
if($_POST['module'] == "pnFlashGames"){
$_GET[act] = "Arcade";
$_GET['module'] = "arcade";
}
if($_POST['module'] == "pnFlashGames"){
$_GET[autocom] = "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];
$showuser= $_GET[showuser];
if($act == "Arcade") {
include "arcade.php";
exit();
}
if($act == "autocom") {
include "arcade.php";
exit();
}
if(!empty($showuser) && $showuser >= 1) {
$u = $showuser;
$_GET[u] = $showuser;
include "member.php";
exit();
}
// end of ibProArcade modification
Hopefully this will work for you. I am by no means a pro so don't bust my chops if this don't work for you.
Just trying to get a patch out there until the REAL coders provides a better solution.
One more note... Be sure to make a backup of your index.php file as - like me - I am sure you will overwrite it with future VB4 updates.
Oh an props to Lynne for her consolidated article here: https://vborg.vbsupport.ru/showthread.php?t=228112
It helped me get the idea behind this alteration.
Well done cory_booth :)
Your patch worked for me, but the template is not looking good, I think it require some CSS editing too..
Still not bad for now, thanks so much mate.
cabledr
11-24-2009, 12:59 PM
well done will keep my members happy untill true fix is brought out
Garamond
11-24-2009, 02:53 PM
Can those that have done this "hack" give us a link to the vB4-compatible ibProArcade site you have upgraded? So that we can see how the end-result is supposed to be.
lewibnb
11-24-2009, 03:06 PM
i think it looks ok.
problem i have is that scores dont save :( and yes i edited index.php in the root forums folder.
cory_booth
11-24-2009, 03:07 PM
My arcade is members only.
But here is a screen shot of how it looks. (I have some other modifications in place).
As others have said, there could be some layout glitches.
I personally have no desire to start tackling css issues until VB4 Gold is out.
I am more than happy to have the few glitches exist until later on when the dust settles.
cory_booth
11-24-2009, 03:10 PM
i think it looks ok.
problem i have is that scores dont save :( and yes i edited index.php in the root forums folder.
I have a few that don't save. Score saving is one of those battles that is hard to pin down.
Could be the game, could be the script, could be the edit, could be the timeout setting.
I have confirmed on my arcade that the majority of games do save, but yes, a couple don't.
On the other hand, those games that don't might not have saved before VB4 either - hard for me to tell.
--------------- Added 1259082957 at 1259082957 ---------------
One more note...
My little hack does nothing to modify layout or format of your arcade.
The arcade still processes the 3.8 (or prior) layout scripts.
the only difference is instead of exporting these scripts to the legacy (3.8) VB template functions, it now exports these scripts to the VB4 template functions.
The layout is determined by the /arcade/skins/ directory depending on the setting you have in the arcade (V3 or IBPRO layout). I made no changes to those files.
lewibnb
11-24-2009, 03:17 PM
Cory, my hat of to you.
you have done a great job in getting this incorporated into the v4 setup.
i think the template looks fine.
thanks alot mate, my members remain happy :)
TandyServices
11-24-2009, 05:21 PM
i think it looks ok.
problem i have is that scores dont save :( and yes i edited index.php in the root forums folder.
I have the same. I tried multiple games, also games of which I knew they were saving the scores before.. No luck though. All I get is this message:
Your submission could not be processed because a security token was missing.
If anyone has an idea it would be greatly appreciated :)
I tested few games, I see no problem in saving scores.
woot
Applied edits and default games save score no problem, uploaded a couple to test with, and they seem to sit on transferring score, But thanks for sharing your code edits sofar.
Garamond
11-24-2009, 10:33 PM
My arcade is members only.
But here is a screen shot of how it looks. (I have some other modifications in place).
As others have said, there could be some layout glitches.
I personally have no desire to start tackling css issues until VB4 Gold is out.
I am more than happy to have the few glitches exist until later on when the dust settles.
Nice, but how did you get it to show Top 24 players? I only get to show the Top 3.
cory_booth
11-25-2009, 12:20 AM
Nice, but how did you get it to show Top 24 players? I only get to show the Top 3.
Yes... Which is what remided me to mention the hack only changed the template processor, not the skin/layout...
My 24 top players was a hck from right here in this forum.
https://vborg.vbsupport.ru/showpost.php?p=1508919&postcount=2
halkum
11-26-2009, 06:25 AM
I found if you set the template to v3arcade, it looks smoother. Good till it officially releases for vb4.
TandyServices
11-27-2009, 04:41 PM
So does anyone have an idea what my missing security token could be? There's no sence in launching our arcade if the scores wont save.. Thanks
cory_booth
11-27-2009, 05:49 PM
So does anyone have an idea what my missing security token could be? There's no sence in launching our arcade if the scores wont save.. Thanks
Are you calling the seesion with the arcade URL in your menu link?
. $vbulletin->session->vars['sessionurl'] .
i.e. As a new plugin (vbulletin/global_state_check)
global $template_hook;
$tabselected = '';
$tablinks = '';
if (
THIS_SCRIPT == 'ARCADE' || THIS_SCRIPT == 'arcade')
{
$vbulletin->options['selectednavtab']='arcade';
$tabselected = ' class="selected"';
$tablinks = '
<ul class="floatcontainer">
<li><a href="./arcade.php?'.$vbulletin->session->vars["sessionurl"].'">Arcade</a></li>
</ul>
$template_hook['navtab_middle'] .= '<li'.$tabselected.'><a class="navtab" href="./arcade.php?'.$vbulletin->session->vars["sessionurl"].'">Arcade</a>'.$tablinks.'</li>';
TheChaosFactor
11-27-2009, 06:04 PM
Does the IB stands mean that the arcade is created/owned by the same IB that now owns vb?... I mean if that is the case, I'd say it's almost a lock that the arcade will be updated for vb4.0..
MrZeropage
11-28-2009, 06:32 PM
ibProArcade v2.6.9+ is now vBulletin 4.x compatible :)
https://vborg.vbsupport.ru/showthread.php?t=229072
Thank you so much MrZeropage, my members are going to love you when we upgrade to VB4
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.