vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Language Chooser in Top Navbar (https://vborg.vbsupport.ru/showthread.php?t=97781)

Maplewoods 10-07-2005 01:55 AM

Language Chooser in Top Navbar
 
3.5.0 has the Language Choose at the bottom of the page.

How would I place this Language Chooser either:

Inside the Top NavBar, between "Search" and Quick Links?

Or to make it be directly accessible via quicklinks (without having to resort to sub-menus)?

Or perhaps there is some way I can replace and existing Navbar, option (which I may not be using) - for example: to replace "Calendar" with the "Language Selector"?

Thanks

funinthesun 05-21-2006 02:53 PM

Hi, did you find anything?

Top Nurse 03-09-2007 04:55 PM

If you do a search for "Quick Language Chooser" on the vBulletin forum you will see that you can cut this from the "footer" template and add it to the "navbar" template to accomplish this:

Code:

  <if condition="$show['languagechooser']">
        <td class="tfoot">
            <select name="langid" onchange="switch_id(this, 'lang')">
                <optgroup label="$vbphrase[quick_language_chooser]">
                    $languagechooserbits
                </optgroup>
            </select>
        </td>
    </if>

Note this is for 3.6.x and I added it directly to my navbar by changing <td class="tfoot"> to <td class="vbmenu_control"> and adding it so that it appears right below the login box.

Where I added it was right above the area highlighted in red.

Code:

<if condition="$show['languagechooser']">
        <td class="vbmenu_control">
            <select name="langid" onchange="switch_id(this, 'lang')">
                <optgroup label="$vbphrase[quick_language_chooser]">
                    $languagechooserbits
                </optgroup>
            </select>
        </td>
    </if>
        </tr>
        </table>
</div>
<!-- / nav buttons bar -->



All times are GMT. The time now is 08:50 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.00989 seconds
  • Memory Usage 1,716KB
  • 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
  • (3)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