PDA

View Full Version : vb:raw inside language phrases


odonel
01-05-2010, 05:49 PM
hi all,

Is it possible to have this inside a global phrase,

can I have a phrase call greeting with the following:
Good morning, {vb:raw bbuserinfo.musername} How are you?

and call it like that in a template?

{vb:rawphrase greeting}

if not, what is the best way to to this
<if condition="$bbuserinfo[languageid]== '3' OR $bbuserinfo[languageid]== '2'"> in vb4

i tried <vb:if condition="$bbuserinfo[languageid]== '3' OR $bbuserinfo[languageid]== '2'">

no luck

derfelix
01-06-2010, 04:02 AM
I think (not at home so i cant check)
in template:
{vb:rawphrase greeting, {vb:raw bbuserinfo.musername}}

where phrase greeting is:
Good morning, {1}. How are you

F

odonel
01-06-2010, 11:03 AM
no need to go home derf, works like a charm..

Thank you

ndL
05-19-2010, 06:28 AM
having the same problem. in language phrase i want to insert {vb.raw bbuserinfo.userid}

<p>You have been banned for the following reason:<br />
{1}</p>

<p>Date the ban will be lifted: {2}</p>

<p><div align="center"><b>Become VIP and ban will be lifted now!
<br /><a href="vip.php?id={vb:raw bbuserinfo.userid}&email={vb:raw bbuserinfo.email}">BECOME NOW!</a></b></div><br /></p>

but in present when the user is banned, and if he wants to become a vip, the link does not change {vb:raw bbuserinfo.userid} to its real value.

need help.

Lynne
05-19-2010, 01:42 PM
What does the template code look like that calls the phrase? (and what template?)

ndL
05-19-2010, 02:56 PM
its a language phrase " nopermission_banned "

i want to add some more information on it....

TheInsaneManiac
04-07-2011, 12:06 AM
{vb:raw bbuserinfo.field, {vb:raw vboptions.customoption}}

it don't work for me.