Create Style Groups for Style Chooser
This modification is in the archives.
If you have a lot of style groups added, it can be hard to organize them in the quick style chooser located in the footer of each page. I wanted to provide a visual break between style groups so I came up with this mini modification. It requires 2 file edits and two new minor templates and a minor query.
Create the following templates: optiongroup_start: HTML Code:
<optgroup label="$optiontitle">
HTML Code:
</optgroup>
PHP Code:
eval ('$stylesetlist .= "' . fetch_template('option') . '";');
PHP Code:
if ($style['userselect'] == 1)
PHP Code:
print_yes_no_row($vbphrase['allow_user_selection'], 'userselect', $style['userselect']);
PHP Code:
print_yes_no_other_row($vbphrase['allow_user_selection'], 'userselect', 'Option Group', $style['userselect']);
Code:
ALTER TABLE `style` CHANGE `userselect` `userselect` SMALLINT( 5 ) DEFAULT '1' NOT NULL Feel free to modify this to suit your needs. A demo can be see at http://www.vbulletinmods.com. Just select the style chooser there. Download No files for download. |
Similar Mods
Forum Display Enhancements Hide a style from style chooser | vBulletin 3.7 Template Modifications |
Nonselectable style on Quick Style Chooser for admin | vBulletin 3.0 Full Releases |