I have a bilingual forum (english/french). In my header, I have one line of code which looks like this (loads an image):
Code:
<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>
I'd like to add a the following code:
Code:
<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>
BUT:
I'd like to add a condition according to the language ID each user has selected by default. I tried this but it does not work:
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>
What would be the way to go?