This modification changes the layout of your main index page, and makes much better use of the space available.. It has been completely rewritten from scratch (using previous code as guidance), and is fully integrated with the Arcade Settings in the Admin CP. It is also fully phrased for our foreign friends..
All credit to GenSec for the layout design, who has kindly given permission for me to release this.
Note: If you use the vbBux integration, please ensure that you're using the latest arcade_game_bit_slim template, otherwise you may get a display error.
Compatability: 1.0.6
Screenshots attached (outdated, but gives the general idea)..
there're something I want to note, maybe it's because it's been along time since the last time we did the file editing to install a hack.
you should change:
Code:
In admincp/arcadeadmin.php find:
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// DELETE GAME
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
if ($_REQUEST['do'] == 'deletegame')
{
print_cp_header($vbphrase['arcade_games']);
$vbulletin->input->clean_array_gpc('r', array(
'gameid' => TYPE_UINT
));
if ($thisgame = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "arcade_games AS arcade_games WHERE gameid=" . $vbulletin->GPC['gameid']))
{
$game_path = realpath($vbulletin->options['gamedir']);
$image_path = realpath($vbulletin->options['arcadeimages']);
$db->query_write("DELETE FROM " . TABLE_PREFIX . "arcade_games WHERE gameid=" . $vbulletin->GPC['gameid']);
$db->query_write("DELETE FROM " . TABLE_PREFIX . "arcade_sessions WHERE gameid=" . $vbulletin->GPC['gameid']);
@unlink($image_path . '/' . $thisgame['shortname'] . '1.gif');
@unlink($image_path . '/' . $thisgame['shortname'] . '2.gif');
@unlink($game_path . '/' . $thisgame['shortname'] . '.swf');
}
print_cp_redirect('arcadeadmin.php?do=games');
}
to
Code:
In admincp/arcadeadmin.php find:
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// GAME TOOLS
// Everything to do with adding games.
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
replace it with
eval('$gamebits .= "' . fetch_template('arcade_game_bit' . iif($barsize==1, '_slim')) . '";');
$g++;
$x++;
}
}
// Finish processing the $gamebits for GenSec's template mod
$gamebits .= '</tr>';
}
// Make sure we don't use any more memory than we need to..
unset($x);
// Construct categories.
All my file sizes are showing 0... Do we need to do something to mass update all the sizes? (Sorry if I missed it in the instructions, but I did look.)
I changed the IMG tag in the game bits to have width="50" and height="50" hardcoded, since all standard images should be that size. Keeps the screen from jumping all over as the page loads. I also removed the Viewing Mode section from the right navbar.
I changed the IMG tag in the game bits to have width="50" and height="50" hardcoded, since all standard images should be that size. Keeps the screen from jumping all over as the page loads.
Good call.! I'll add that to the zip..
Quote:
Originally Posted by ConqSoft
I also removed the Viewing Mode section from the right navbar.
I'm tempted to leave this.. With a bit of trickery, it should be possible to select between this layout and the standard layout (or even some totally different layout). It's something that I'm looking in to..
I'm tempted to leave this.. With a bit of trickery, it should be possible to select between this layout and the standard layout (or even some totally different layout). It's something that I'm looking in to..
v3arcade for 3.5.0 is currently in a private beta phase, with a public beta due out shortly.. For more information, please visit http://www.v3arcade.com