![]() |
Create Style Groups for Style Chooser
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:
PHP Code:
PHP Code:
PHP Code:
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 www.vbulletinmods.com. Just select the style chooser there. |
Might want to see about caching thoose templates. Seeing as thats making 2 extra queries on your vbulletinmods.com site.
|
All you need to do is add the cached templates
In global.php find PHP Code:
PHP Code:
|
Quote:
|
Rather much editing...
|
Quote:
I currently run: vBadvanced vBulletin 3.0.0 gold i keep getting the error: Code:
Parse error: parse error in /home/lurkcorp/public_html/forum/includes/functions.php on line 1864 |
A question or two:)...Do the skins need to be reinstalled after implementing this? And in order to have categories, I would change Option Group to dark, light, etc...? Sorry for not understanding completely
|
ok I've been playing around with this and am clueless :(...When I go to upload a new skin, I do see yes/no/option group. If i choose it to be in option group, I get that name on the chooser, but cant choose it. I'm at a loss, how to set a category and then put the correct skins under it. Any help will be greatly appreciated.
|
Is there any ideas out there...just a direction to point me in :)....I'm ok once i know what i'm doing
Thanks to all |
any ideas out there
|
I've noticed that the optiongroup_start and optiongroup_end arent cached on any pages. Just thought i'd let you know. :)
|
any ideas out there
|
You will need to upload the style AGAIN and make it a Child style for the style you've selected to be the category option.
|
All times are GMT. The time now is 04:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|