PDA


View Full Version : what does text in brakets signify?


DannyITR
11-24-2005, 10:34 PM
$home[leftblocks]

Is leftblocks a new value for the variable $home?

I need to know how I can create a new [leftblocks_alternate] lets say and have it displayed if a user is using my french language pack.

I was going to do an if else statement but I don't know what the exact code should be. Can anyone help?

<if condition=" lang="french">
$home[leftblocks]
else
$home[leftblocks_english]
</if>

How can I do this?

DannyITR
11-25-2005, 12:36 PM
ok forget it I have everything I need to make certain modules appear with certain languages. I'm gonna put an if/else statement in the template so that it will either be empty or full depending on language.

<if lang="$stylevar[français]">
template code
<else />
</if>

or

<if languageid="3">
template code
<else />
</if>

Neither seem to work though. The code must be wrong.

DannyITR
11-28-2005, 11:56 AM
Acutually if I get this to work and I put it in the template itself, the header will still b visible from the shell. If I put it in the shell template then all templates will disappear. I need a way to specify templates based on language. Help!

Brian
11-30-2005, 02:51 PM
If I'm thinking correctly here, you should be able to use $vbulletin->userinfo['languageid'] in your <if condition> instead.