The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
is there a way to put a description in the theme chooser rather than the current theme ?
The dropdown I have (optgroup label tag), is appearing as second entry in a dropdown list ($vbphrase[quick_style_chooser]) . I want it to be the first entry instead of the actual theme. Is it possible? |
#2
|
|||
|
|||
![]()
bump :/
|
#3
|
||||
|
||||
![]()
I don't understand what you want. Do you have an image to show what you want?
|
#4
|
|||
|
|||
![]()
See attachement. I took screenshot of vbulletin.com board itself at the bottom of topic lists.
By default, the name of the current running theme is shown on the box, when you click for scroll the legend of the box only appear as the second item. I want the contrary of this, I want the legend to be the selector title and the list of the available items showing next. thanks. |
#5
|
||||
|
||||
![]()
Hmmm, if the selected style is "vBulletin 3 White Liquid", then that is what is going to show in the dropdown box. That is the way that element works in a form. If you don't want it to show the selected item, I suppose you could try modifying the option template to not show it. However, that template gets used in many places. So, perhaps you should just modify the code itself to not show selected="selected"
|
#6
|
|||
|
|||
![]() Quote:
If I go deeper, I can see it declared in global.php: PHP Code:
PHP Code:
then on my php module where I build my $quickchooserbits = construct_style_options_myf(-1, '--', true, true); I still get a dropdown list where the legend appear when you click on it. I'm weak in php programmation, I still don't see why it doesn't work. I also noticed that these option tags are nested in a optgroup tag, WHICH contain the label that generate the quick_style_chooser phrase legend. I can remove it, but I won't have any legends in the selector. |
#7
|
||||
|
||||
![]()
Are you simply saying you don't want it to say Quick Style Chooser in the dropdown? Or are you saying you want it to say Quick Style Chooser at the top of the dropdown list (and not the actual style)? I am still totally unclear on what you want.
|
#8
|
|||
|
|||
![]() Quote:
I want the selector to show the legend on top of the list rather than the actual theme running under the user. When the user click on the selector, or the legend, the dropdown options are the themes available. I almost done it. I had to do is to add an empty <option> tag with the vbphrase in it. It showing first like I tried to described, the only problem is it selectable, I wish it wasn't selectable like the original legend when it was placed second. But that's in Firefox, in IE, the selected theme still appear first. HTML Code:
<select class="forumselector" name="newstyleset" id="sel_newstyleset" onchange="switch_id(this, 'style')"> <optgroup> <option><?= echo $vbphrase[quick_style_chooser] ?> </option> <?php echo $quickchooserbits ?> </optgroup> </select> |
#9
|
||||
|
||||
![]()
Basically, you want to change it from this (sample):
HTML Code:
<optgroup label="Quick Style Chooser"> <option value="2" class="" >-- vBulletin Default</option> <option value="30" class="" selected="selected">---- Testing</option> <option value="28" class="" >-- Mobile, Cell, Phone, PDA, iPhone Style</option> </optgroup> HTML Code:
<option value="" class="" >Quick Style Chooser</option> <option value="2" class="" >-- vBulletin Default</option> <option value="30" class="" >---- Testing</option> <option value="28" class="" >-- Mobile, Cell, Phone, PDA, iPhone Style</option> |
#10
|
|||
|
|||
![]()
it almost working
![]() I need to get rid of the 'selected' popup. When users come in the page it still show the current running theme first, the legend second. I tried to commenting out the $optionselected = 'selected="selected"'; in my myfunctions.php (see my code above) and it still have a selected theme as default showing. HTML Code:
<select class="forumselector" name="newstyleset" id="sel_newstyleset" onchange="switch_id(this, 'style')"> <option value="" selected="selected" disabled="disabled" ><?php echo $vbphrase[quick_style_chooser]; ?> </option> <?php echo $quickchooserbits; ?> </select> |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|