Printable Version of Topic
Click here to view this topic in its original format


Sender: gnork 05.09.2009 23:21
Since I have many visitors from different countries, I wonder if it might be possible to allow visitors to choose their own language in the menu. Of course, depending on whether their language is translated.
Sincerely gnork.

Sender: zebaniz 17.09.2009 09:16
Open includes/page_header.php
Find
PHP

?>

add before
PHP

//-----------------------------------------------------
//--- Language Flag Button ----------------------------
//-----------------------------------------------------
$flag_links "<a href='".$_SERVER["PHP_SELF"]."?".$_SERVER["QUERY_STRING"]."&l=turkish'><img src='".ROOT_PATH."images/tr.gif' alt='Türkçe' border='0' style='vertical-align:middle'></a> <a href='".$_SERVER["PHP_SELF"]."?".$_SERVER["QUERY_STRING"]."&l=english'><img src='".ROOT_PATH."images/gb.gif' alt='English' border='0' style='vertical-align:middle'></a>";
$site_template->register_vars("flag_links",$flag_links );


and open templates/your_template_name/header.html
and put this code to a suitable place:
CODE
{flag_links}


http://demo.seportal.org/images/tr.gif
http://demo.seportal.org/images/gb.gif


Powered by SePortal (http://www.seportal.org)
© SePortal.org (http://www.seportal.org)