[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');
}
to
Code:
In admincp/arcadeadmin.php find:
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// GAME TOOLS
// Everything to do with adding games.
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
and the next step is "Above it add".
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.
That will make life easier ^^.
just my 2 cents.