News:

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

Main Menu

Language Drop Down mod custom theme help

Started by assam_siddibapa, October 11, 2008, 06:22:40 PM

Previous topic - Next topic

assam_siddibapa

Hi i installed smf new v1.1.6 clean copy
only the Language Drop Down  installed with french langauge pack .
theme
http://custom.simplemachines.org/themes/index.php?lemma=283 corp lt


i need to know where what should be changed so that
i can put 2  image  one english and one french ....


assam_siddibapa

i m waiting ....
its more than 24 hours ... so had to bump

greyknight17

Do you want to have an image/button that says English and one that says French?



Nathaniel

Try doing these edits:

Find this code ('Load.php'):
   // Valid Markup only..
   if (isset($_POST['changelang']))
      $_POST['changelang'] = (int) $_POST['changelang'];


Replace with this code:
   // Valid Markup only..
   if (isset($_REQUEST['changelang']))
      $_REQUEST['changelang'] = (int) $_REQUEST['changelang'];


Find this code ('/Themes/{themename}/index.template.php'):
template_language_select();

Replace it with your image code. Below is an example.
echo'<a href="', $scripturl, '?language=french;changelang"><img src="french.gif" /></a>';


SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

Advertisement: