Log in

View Full Version : sort vBoptions alphabetically


KURTZ
06-01-2008, 08:37 AM
can someone make a modification that puts all the options alphabetically? it can helps users like that have installed many hacks onto our board, so when we need to find an options we're going crazy ...

TIA

Opserty
06-01-2008, 11:27 AM
I don't think it is possible to make it into a modification because there are very few hooks located around the AdminCP. A quick way would be to edit the options.php file if you are willing to.

Open options.php in a plain text editor then look for

$optionsmenu = "\n\t<select name=\"" . iif($vbulletin->GPC['expand'], 'varname', 'dogroup') . "\" class=\"bginput\" tabindex=\"1\" " . iif(empty($vbulletin->GPC['dogroup']), 'ondblclick="this.form.submit();" size="20"', 'onchange="this.form.submit();"') . " style=\"width:350px\">\n" . construct_select_options($options, iif($vbulletin->GPC['dogroup'], $vbulletin->GPC['dogroup'], '[all]')) . "\t</select>\n\t";


It is around the line 1000 region so I recommend you use the "Find" feature. Add above that:

asort($options);

Save it, upload it and you should be good to go. :)

KURTZ
06-02-2008, 02:57 PM
Opserty it runs!!! thank you so much ... ;)

Snorqi
07-09-2008, 01:07 PM
Perfect!

Thank you, very much.

BlitzSports
12-28-2008, 03:10 AM
yes, thank you so much... I have over 100 hacks installed and everything was blending together. Took forever to find things. Now it's a breeze.