Quote:
Originally Posted by ibeteck
Is there a way to remove the feature "applying to". I actually want to remove the selectable forums.
|
In the file /includes/functions_staff-application.php, find and remove the following:
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;
}
In the file /staff-application.php, find and remove the following (these are in the same order as they are in the file (unless already modified)):
PHP Code:
'forumids' => '',
PHP Code:
$forumids = usml_construct_forum_options(usml_construct_forum_chooser());
PHP Code:
$templater->register('forumids', $forumids);
PHP Code:
'forumids' => TYPE_ARRAY_UINT,
PHP Code:
$forumids = usml_construct_forum_options(usml_construct_forum_chooser());
PHP Code:
if (empty($vbulletin->GPC['forumids'])) { $errors[] = fetch_error('usml_staffapp_forumids'); }
PHP Code:
if (!empty($vbulletin->GPC['forumids']))
{
foreach ($vbulletin->GPC['forumids'] AS $forumid)
{
$applyingto[] = $vbulletin->forumcache["$forumid"]['title_clean'];
}
$applyingto = implode(', ', $applyingto);
}
PHP Code:
$vbphrase[usml_staffapp_applyingto]:
$applyingto
PHP Code:
[b]$vbphrase[usml_staffapp_applyingto]:[/b]
$applyingto
PHP Code:
$templater->register('forumids', $forumids);
In the template usml_staff_application, find and remove the following:
HTML Code:
<!-- START FORUMS APPLYING TO -->
<div class="blockrow">
<div class="colrow">
<div class="col1">
<select class="primary" id="sel_forumids" name="forumids[]" multiple="multiple" tabindex="1" size="5">{vb:raw forumids}</select>
<p class="staffappdescription">{vb:rawphrase usml_staffapp_selectforumsdesc}</p>
</div>
<div class="col2">
<label for="applyingto">{vb:rawphrase usml_staffapp_applyingto}</label>
</div>
</div>
</div>
<!-- END FORUMS APPLYING TO -->