Log in

View Full Version : Language Chooser in Top Navbar


Maplewoods
10-07-2005, 01:55 AM
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:


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


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