vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   sort vBoptions alphabetically (https://vborg.vbsupport.ru/showthread.php?t=181178)

KURTZ 06-01-2008 08:37 AM

sort vBoptions alphabetically
 
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
PHP Code:

$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($optionsiif($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:
PHP Code:

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.


All times are GMT. The time now is 10:21 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01062 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete