Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 4 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Missing Style Chooser In vB4 Styles
ozzy47's Avatar
ozzy47
Join Date: Jul 2009
Posts: 10,929

Just here to help out where I can.

USA
Show Printable Version Email this Page Subscription
ozzy47 ozzy47 is offline 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:



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.



Hopefully this will help some of you out with your styles.
Reply With Quote
  #2  
Old 09-09-2013, 05:07 AM
socialteenz's Avatar
socialteenz socialteenz is offline
 
Join Date: May 2011
Posts: 465
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

People with similar issues in the language chooser also should check the default template & make the changes.
Reply With Quote
  #3  
Old 09-09-2013, 09:34 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 02-13-2014, 04:45 PM
MahdyE23 MahdyE23 is offline
 
Join Date: Apr 2013
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is the best, thank you so much!!
Reply With Quote
  #5  
Old 02-13-2014, 05:31 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See this - https://vborg.vbsupport.ru/showthread.php?t=301925
Reply With Quote
  #6  
Old 02-13-2014, 05:38 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

should this also be in the default mobile style or does that matter
Reply With Quote
  #7  
Old 02-13-2014, 06:36 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 02-13-2014, 07:20 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Had a feeling, but needed to ask so if others search then they can see
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:20 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07241 seconds
  • Memory Usage 2,267KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete