News:

Wondering if this will always be free?  See why free is better.

Main Menu

The "Select Language" Dropdown on this site??

Started by dan1dyoung, October 07, 2006, 11:09:33 AM

Previous topic - Next topic

dan1dyoung

I am trying to get a dropdown like this site has for selecting language but it does not work correctly yet.


The language drop down on this site, i have had a go at adding it, but with 2 issues.  First it would not allow the selection of english so i removed the Selected=Selected part and now i can change ALL languages but it always goes back to the first language no matter what language the page is in.  Second i want it visible to all users, but where it is placed it is only viewable to logged in users.  I have duplicated the form code for now to make it viewable by ALL users, but this is naturally not the solution.  What PHP code can i use to allow that part of the table viewable by all users but hide the read unanswered posts links to logged in users only??

index.template.php
http://www.simplemachines.org/community/index.php?topic=114747.msg734964#msg734964

Thanks

Dan

sawz

i have one at my forum, and logged in or not it works, however,
like you, it reverts to the uppermost position which i have labeled "Language".
you select your language, it changes to the selected language, but the drop
down goes back to the top selection. doesn't work the same as here, but it works.
keep smiling, they'll always wonder what your up too.....


Oldiesmann

If you can post the code you're using, I'll show you how to do this. I can also show you how to make it stay on the current page :)
Michael Eshom
Christian Metal Fans

sawz

its not pretty but it works. thanks for offering:
Quote<form action="http://forums.com/index.php" method="post" class="smalltext" style="float: right;">
            <label for="language_select" class="smalltext">Select language:</label> <select id="language_select" name="language" onchange="this.form.submit()" class="smalltext">
                                  <option value="">Language</option>
                                      <option value="brazilian-utf8">Brazilian</option>
               <option value="english">English</option>
                                      <option value="swedish-utf8">Swedish</option>
               </select>&nbsp;<noscript><input type="submit" value="Go" /></noscript>
         </form>
keep smiling, they'll always wonder what your up too.....

Advertisement: