Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: assam_siddibapa on October 11, 2008, 06:22:40 PM

Title: Language Drop Down mod custom theme help
Post by: assam_siddibapa on October 11, 2008, 06:22:40 PM
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 ....

Title: Re: Language Drop Down mod custom theme help
Post by: assam_siddibapa on October 12, 2008, 07:53:52 PM
i m waiting ....
its more than 24 hours ... so had to bump
Title: Re: Language Drop Down mod custom theme help
Post by: greyknight17 on October 12, 2008, 10:12:27 PM
Do you want to have an image/button that says English and one that says French?
Title: Re: Language Drop Down mod custom theme help
Post by: assam_siddibapa on October 13, 2008, 07:06:56 PM
Yess .... i need an image in this
http://custom.simplemachines.org/themes/index.php?lemma=283
theme
not in the default
Title: Re: Language Drop Down mod custom theme help
Post by: assam_siddibapa on October 15, 2008, 06:44:21 PM
bump
Title: Re: Language Drop Down mod custom theme help
Post by: Nathaniel on October 22, 2008, 02:57:16 AM
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>';