![]() |
Conditional in <phrase>
I'm trying to replace the username across the forum with a Userfield of my own.
However, I'm running into difficulty with the double quotes (I think). I'm trying to replace Code:
$bbuserinfo[username] Code:
<if condition="$bbuserinfo[fieldX]">$bbuserinfo[fieldX]<else />$bbuserinfo[username]</if> Code:
<phrase 1="$bbuserinfo[username]"></phrase> Code:
<phrase 1="$bbuserinfo[username]"></phrase> Code:
<phrase 1="$bbuserinfo[fieldX]"></phrase> How would I go about replacing my conditional in there, or is it possible at all? |
What have you actually tried in the code then? (What was the output/error if it never worked).
|
Why not use:
HTML Code:
<if condition="$bbuserinfo[fieldX]"> |
Quote:
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:
I knew there was a way to interpret my phrase or the other phrase in a conditional :D I'll buy you a pint next time you're in Ireland, guaranteed* ;) *not a guarantee |
All times are GMT. The time now is 01:57 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|