In one of my modifications, I've got a forum selection option, and can't get it to work in vB 3. Been too long since I actually looked at the code for vB 3

lol. Anyway, this is what I have for vB 4:
PHP Code:
function usml_construct_forum_chooser()
{
global $vbulletin;
$forumids = array();
foreach ($vbulletin->forumcache AS $forumid => $forum)
{
$forumperms = $vbulletin->userinfo['forumpermissions']["$forumid"];
if (
$forum['displayorder'] > 0
AND verify_forum_password($forum['forumid'], $forum['password'], false)
AND ($forum['options'] & $vbulletin->bf_misc_forumoptions['active'])
AND ($forumperms & $vbulletin->bf_ugp_forumpermissions['canview'])
)
{
$forumids["$forumid"] = usml_construct_forum_depth($forum['depth']) . ' ' . $forum['title'];
}
}
return $forumids;
}
function usml_construct_forum_depth($depth)
{
$depthmark = '';
for ($i = 0; $i < $depth; $i++)
{
$depthmark .= '--';
}
return $depthmark;
}
function usml_construct_forum_options($forumids)
{
$options = '';
foreach ($forumids AS $key => $val)
{
$options .= render_option_template($val, $key, '');
}
return $options;
}
And this code is called in the main file with:
PHP Code:
$forumids = usml_construct_forum_options(usml_construct_forum_chooser());
So, anyone that still uses/remembers vB 3 know what needs changed? lol
I've got this part of the code commented out at the moment
PHP Code:
// $forumids = usml_construct_forum_options(usml_construct_forum_chooser());
If I remove the
"//" all I get is a white page, so I KNOW it's this code, but what?