Missing Style Chooser In vB4 Styles

  • Thread starter Thread starter AdminAdmin is verified member.
  • Start date Start date
Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
I have seen quite a few styles that is missing the Style Chooser in the footer. This is due to the fact that the developer did not upgrade the style properly.

So if you are getting a footer that looks something like this:

g0sr.png

You will need to edit the footer template of the style.

ACP --> Styles & Templates --> choose your style and select Edit Templates

Then scroll down in the list till you find the template named, footer. Double click on that then search for this bit of code:

PHP:
        <vb:if condition="$show['quickchooser']">
            <select name="styleid" onchange="switch_id(this, 'style')">
                <optgroup label="{vb:rawphrase quick_style_chooser}">
                    {vb:raw quickchooserbits}
                </optgroup>
            </select>    
        </vb:if>
It may be a bit different but you should get the idea.

Replace that with the following code:

PHP:
        <vb:if condition="$show['quickchooser']">
            <select name="styleid" onchange="switch_id(this, 'style')">
                <optgroup label="{vb:rawphrase quick_style_chooser}"><option class="hidden"></option></optgroup>
                <vb:if condition="$quickchooserbits1">
                    <vb:if condition="$quickchooserbits2">
                    <optgroup label="&nbsp;{vb:rawphrase standard_styles}">
                    </vb:if>                
                    {vb:raw quickchooserbits1}
                    <vb:if condition="$quickchooserbits2">
                    </optgroup>
                    </vb:if>                    
                </vb:if>
                <vb:if condition="$quickchooserbits2">
                    <vb:if condition="$quickchooserbits1">
                    <optgroup label="&nbsp;{vb:rawphrase mobile_styles}">
                    </vb:if>
                    {vb:raw quickchooserbits2}
                    <vb:if condition="$quickchooserbits1">
                    </optgroup>
                    </vb:if>                    
                </vb:if>
            </select>    
        </vb:if>
Which will now show your Style Chooser correctly.


rpo8.png

Hopefully this will help some of you out with your styles.
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
823
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
896
AdminAdmin is verified member.
Admin
Admin
Replies
1
Views
6K
gcloud
G
Admin
Replies
1
Views
3K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
751
AdminAdmin is verified member.
Admin
Back
Top