I have a bilingual forum. (two languages ID)
Language 1 = English
Language 2 = French
I'm trying to make something working but without success. My goal is to make an image appear in the header template, according to the language ID setup by the user. Of course, my image is different for each language. I've tried this code but with that, no image at all is displayed.
Note: All images are copied under /images/misc
Any suggestions?
Language 1 = English
Language 2 = French
I'm trying to make something working but without success. My goal is to make an image appear in the header template, according to the language ID setup by the user. Of course, my image is different for each language. I've tried this code but with that, no image at all is displayed.
Note: All images are copied under /images/misc
Code:
<if condition="$vboptions['languageid'] == '2'"> <a href='myform.php?do=myform_action $session[sessionurl]'><img src="$stylevar[imgdir_misc]/french_image.png" onmouseover="this.src='$stylevar[imgdir_misc]/french_image_MouseOver.png' ;" onmouseout="this.src='$stylevar[imgdir_misc]/french_image.png' ;" border="0" /></a> <else /> <a href='myform.php?do=myform_action $session[sessionurl]'><img src="$stylevar[imgdir_misc]/english_image.png" onmouseover="this.src='$stylevar[imgdir_misc]/english_image_MouseOver.png' ;" onmouseout="this.src='$stylevar[imgdir_misc]/english_image.png' ;" border="0" /></a> </if>
Comment