MyBB Community Forums

Full Version: Change Board Language on Link/Picture click
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
As the titles says...
I don't want to use the dropdown menu in footer OR change language ability from userCP, but i want a Link/Picture in the footer for example, which on click will change the language.

I saw this post -> http://community.mybb.com/thread-61432.html but not working for me...

Thanx.
^ you have to add &my_post_key={$mybb->post_code} at the end of such URL (like below)

<a href="?language=romanian&fid={$mybb->input['fid']}&tid={$mybb->input['tid']}&pid={$mybb->input['pid']}&my_post_key={$mybb->post_code}">Romanian</a>

<a href="?language=english&fid={$mybb->input['fid']}&tid={$mybb->input['tid']}&pid={$mybb->input['pid']}&my_post_key={$mybb->post_code}">English</a>
Thank you very much!