The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to <IF> ... </if> a language ID?
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> 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> 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> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|