MyBB Community Forums

Full Version: Move language selector to header and make it buttons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, i've been looking for hours to achieve what i am looking for, so i finally decided to start new thread concerning this.

I'm currently developing my mybb forum on localhost. What i'm trying to do is to move the language selector to top of the header and instead make it an image where you can click, so i couldn't be able to do that so what i did so far was use the link generated when you select a language. fore example

<a class="english" href http://community.mybb.com/index.php?my_p...0&language=pirate alt="pirate language" title="pirate english"><img src="images/pirateflag.png"></a>

So i've styled and moved to where i wanted but the problem is if someone clicks on the pirateflag to select the language, <strike>it doesn't work on some web browsers because there is a code in generated link.</strike>

So i'd appreciate if you could help me show a professional/proper way of doing this. Thank you
When you say "It doesn't work", what exactly doesn't happen? For example: If doesn't go to a certain page, doesn't change the language, etc.
Sorry, it's not with the browsers. I've just tested, the problem is if you're logged in, clicking on the flag doesn't let you change the language, what happens is that you can see the url being changed but nothing happens. Everything is ok when you're logged out and want to change/choose a language.
Thank you guys for your answers, Thank you So much @.m.,that was what i was looking for Smile !