vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   Missing Style Chooser In vB4 Styles (https://vborg.vbsupport.ru/showthread.php?t=301925)

ozzy47 09-05-2013 10:00 PM

Missing Style Chooser In vB4 Styles
 
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

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:

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:

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

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 [DATE]1378774867[/DATE] at [TIME]1378774867[/TIME] ---------------

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


All times are GMT. The time now is 05:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01213 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete