The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to check Language
I'd like to built something to check the language an user is using on the forum and show some image related to it.
Something like : Code:
<IF $lang="ENG" > <img="a1.gif> </IF> <IF $lang="ITA" > <img="b2.gif> </IF> Anybody ? |
#2
|
|||
|
|||
I am interested in an answer as well. Is there such a variable for a conditional?
Many thanks in advance! |
#3
|
||||
|
||||
In templates it's $bbuserinfo['languageid']
In plugins, $vbulletin->userinfo['languageid'] |
#4
|
||||
|
||||
Wow, thanks Paul
|
#5
|
|||
|
|||
Thank you!
I needed this to link to an external script. I used this: Code:
<a href="$vboptions[bburl]/externalscript/index.php?lang= <if condition="$bbuserinfo['languageid'] == 1"> language1 <else /> language2 </if> ">$vbphrase[script]</a> http://www.vbulletin.com/docs/html/t...e_conditionals |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|