• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Missing Style Chooser In vB4 Styles

Admin

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

New posts New threads New resources

Back
Top