rjordan
04-11-2007, 10:00 PM
This will allow you to set the initial category when entering v3arcade. I had wanted to make the initial category selectable from the AdminCP, but for the time being this will work.
Please note the following:
This is a very simple change. Feel free to modify it as you see fit and redistribute according to the v3arcade license. This means it can only be distributed where v3arcade can be legally distributed.
v3arcade v1.0.7 is required for this modification.Files required to be changed: 1 (v3arcade.php)
Time for modification: < 1 minute
In v3arcade.php, find:
// Now, let's get the games.
$vbulletin->input->clean_array_gpc('r', array(
'categoryid' => TYPE_INT
));
Below this, add the following:
// *** BEGIN: SET START CATEGORY IN V3ARCADE *** //
if(empty($vbulletin->GPC['categoryid']))
{
$vbulletin->GPC['categoryid'] = 1;
}
// *** END: SET START CATEGORY IN V3ARCADE *** //
Change the line above to the category ID that you want the arcade to open into by default.
Please note the following:
This is a very simple change. Feel free to modify it as you see fit and redistribute according to the v3arcade license. This means it can only be distributed where v3arcade can be legally distributed.
v3arcade v1.0.7 is required for this modification.Files required to be changed: 1 (v3arcade.php)
Time for modification: < 1 minute
In v3arcade.php, find:
// Now, let's get the games.
$vbulletin->input->clean_array_gpc('r', array(
'categoryid' => TYPE_INT
));
Below this, add the following:
// *** BEGIN: SET START CATEGORY IN V3ARCADE *** //
if(empty($vbulletin->GPC['categoryid']))
{
$vbulletin->GPC['categoryid'] = 1;
}
// *** END: SET START CATEGORY IN V3ARCADE *** //
Change the line above to the category ID that you want the arcade to open into by default.