The Arcive of vBulletin Modifications Site. |
|
v3arcade: Set Start Category ID Details »»
|
|||||||||||||||||||||||||
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:
Time for modification: < 1 minute In v3arcade.php, find: Code:
// Now, let's get the games.
$vbulletin->input->clean_array_gpc('r', array(
'categoryid' => TYPE_INT
));
Below this, add the following: Code:
// *** 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. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Thanks for this bit of code. Been looking for this for a while.
|
|
#3
|
||||
|
||||
|
|
|
#4
|
|||
|
|||
|
i tried this and am wanting it to point to my All category which appears to be cat 1, however it also appears that the Misc. category is 1 as well so instead of it going to all it is going to Misc.
|
|
#5
|
|||
|
|||
|
LOL nevermind figured out there was a - in front of the 1 for the All category.
|
![]() |
|
|