![]() |
Quick Style Choose via button
ok i've seen the "quick style chooser" edit which makes the drop down.... but can someone tell me how i'd go about setting up the same kind of quick style chooser, but by process of a button to be placed with "User CP, Home, FAQ" etc. buttons at the top of the forums that when clicked would make the list drop down like, for example, the search feature does?.... thanks in advance :smoke:
|
bump :o
|
Hi
You will not be able to do this with just template edits! The reason why is that the template 'option' is used by many of the other templates to create drop boxes! You could hard code each of the styles in the 'navbar' template, but what good is that if you change style order or add new styles! Here is quick mod..... Follow me... Open Admin Panel Go to Styles & Templates >> Style Manager In the the select box for the style you want to add "NAVBAR STYLE SELECTOR", select Add New Template When the new template page opens, add the following! title Code:
navbar_style_bit Code:
<tr> Go to Styles & Templates >> Search in Templates Search in Style: select the stle you are adding "NAVBAR STYLE SELECTOR", Search for text: chooser Click >> Find Style Manager >> Opens Click on the template footer template >> footer >> Opens Click on the Find button Now Find This... Code:
<if condition="$show['quickchooser']"> Code:
<td class="tfoot"> </td> Click >> Save Style Manager >> Opens Click on the template navbar template >> navbar >> Opens Search for this!!! Code:
<if condition="$show['popups']"> Code:
<if condition="$show['popups']"> Code:
<if condition="$show['popups']"> Code:
vbmenu_register("navbar_search") Code:
<script type="text/javascript"> vbmenu_register("navbar_search"); </script></td> Code:
<script type="text/javascript"> vbmenu_register("navbar_search"); </script></td> Go to Languages & Phrases >> Phrase Manager Phrase Type GLOBAL (add (2) new phrases) Code:
1. Now the Script edits!!! open (./global.php) Find This... Code:
$quickchooserbits = construct_style_options(-1, '--', true, true); Code:
$quickchooserbits = construct_style_options(-1, '--', true, true); open ( ./includes/functions.php) Find This... Code:
return $stylesetlist; Code:
return $stylesetlist; Save changes, close './includes/functions.php' You now have NAVBAR STYLE SELECTOR installed C, ya... Sonia |
i was starting to think i'd never get help, but after checking out the number of steps, i see why no one wanted to tackle it lol.... once i get home i am definitely going to get cracking on your steps.... thank you for the reply why-not.. i appreciate it greatly :)
|
All times are GMT. The time now is 07:04 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|