PDA

View Full Version : Missing Style Chooser In vB4 Styles


ozzy47
09-05-2013, 10:00 PM
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:

https://vborg.vbsupport.ru/external/2013/09/69.png (http://s96.photobucket.com/user/ozzy47/media/footer1.png.html)

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:

<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:

<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.

https://vborg.vbsupport.ru/external/2013/09/70.png (http://s96.photobucket.com/user/ozzy47/media/footer2.png.html)

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

socialteenz
09-09-2013, 05:07 AM
People with similar issues in the language chooser also should check the default template & make the changes.

ozzy47
09-09-2013, 09:34 AM
I thought about adding that, but I have not come across any recent styles that did not have that showing properly, unless I was just not looking at it right., I'll check it out a bit later today and see.

--------------- Added 1378774867 at 1378774867 ---------------

I checked a few styles, I have and have not see any code difference in the language chooser. Do you have a link to a style on here that has that missing?

MahdyE23
02-13-2014, 04:45 PM
This is the best, thank you so much!!

Lynne
02-13-2014, 05:31 PM
See this - https://vborg.vbsupport.ru/showthread.php?t=301925

ForceHSS
02-13-2014, 05:38 PM
should this also be in the default mobile style or does that matter

ozzy47
02-13-2014, 06:36 PM
I don't think so, as the link in the mobile style says something like Full Site, which brings you to the default style, or what ever you choose in usercp.

ForceHSS
02-13-2014, 07:20 PM
Had a feeling, but needed to ask so if others search then they can see