Quote:
Originally Posted by Opserty
What have you actually tried in the code then? (What was the output/error if it never worked).
|
I should've included that alright, but it was the usual 'unescaped double quote' type error.
Still, the basis of it was that construct_phrase() couldn't handle a conditional - it needed to be interpreted before it went into <phrase 1=""> etc.
Quote:
Originally Posted by Marco van Herwaarden
Why not use:
HTML Code:
<if condition="$bbuserinfo[fieldX]">
<phrase 1="$bbuserinfo[fieldX]"></phrase>
<else />
<phrase 1="$bbuserinfo[username]"></phrase>
</if>
|
That's the stuff!
I knew there was a way to interpret my phrase or the other phrase in a conditional
I'll buy you a pint next time you're in Ireland, guaranteed
*
*not a guarantee