The Arcive of vBulletin Modifications Site. |
|
v3arcade Alternative Layout Details »»
|
|||||||||||||||||||||||||
This is a port of GenSec's 3.0.x release (here).
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).. ![]() Supporters / CoAuthors Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
[high]* deathemperor clicks install
[/high] 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');
}
Code:
In admincp/arcadeadmin.php find: // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // GAME TOOLS // Everything to do with adding games. // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- And reduce the last 2 steps to one. Code:
Find:
eval('$gamebits .= "' . fetch_template('arcade_game_bit' . iif($barsize==1, '_slim')) . '";');
}
}
}
Code:
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.
just my 2 cents. |
|
#3
|
||||
|
||||
|
Done.
![]() Sorry, it's been a while..
|
|
#4
|
||||
|
||||
|
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.)
|
|
#5
|
||||
|
||||
|
Nevermind. Just saw the new option in AdminCP.
|
|
#6
|
||||
|
||||
|
Great mod! Thanks!
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. |
|
#7
|
||||
|
||||
|
Quote:
![]() Quote:
|
|
#8
|
||||
|
||||
|
Quote:
|
|
#9
|
||||
|
||||
|
I know..
![]() Quote:
|
|
#10
|
|||
|
|||
|
Argh all these v3arcade addons..... Release the 3.5.0 version already!!!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|