PDA

View Full Version : Phrasing var?


masterross
02-10-2010, 10:07 AM
Hi,

I cant handle it with phrasing vars :(

I have a phrase (myphrase) which contains text:
Welcome to {1}In template I call this phrase with:

<phrase 1="$vboptions[bbtitle]">$vbphrase[myphrase]</phrase>where $vboptions[bbtitle] is forum title.

So in I call it in that way simply it cant. Result is:
$vbphrase[myphrase]But if I call it with:

<phrase 1="{vb:raw vboptions.bbtitle}">{vb:rawphrase myphrase}</phrase>The result is:

Welcome to %1$sSo in both cases there is something incomplete.

Can you help me with this?

Thx!

Sarcoth
02-11-2010, 04:49 PM
<phrase 1="{vb:raw vboptions.bbtitle}">{vb:rawphrase myphrase}</phrase>

Can you help me with this?

This is just a guess until someone with more experience can reply, but try:

{vb:var vbphrase.myphrase}

-or-

{vb:raw vbphrase.myphrase} //if the first doesn't work.

masterross
02-11-2010, 04:53 PM
Thx but I;ve already got the answer here:
http://www.vbulletin.com/forum/showthread.php?341214-Phrase-s-var

Sarcoth
02-11-2010, 05:15 PM
Cool. I didn't know it could be done that way. Good to know.