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]
with
Code:
<if condition="$bbuserinfo[fieldX]">$bbuserinfo[fieldX]<else />$bbuserinfo[username]</if>
However, many templates use $bbuserinfo[username] in phrases like:
Code:
<phrase 1="$bbuserinfo[username]"></phrase>
Desired result:
Code:
<phrase 1="$bbuserinfo[username]"></phrase>
when $bbuserinfo[fieldX] exists, but
Code:
<phrase 1="$bbuserinfo[fieldX]"></phrase>
when $bbuserinfo[fieldX] exists.
How would I go about replacing my conditional in there, or is it possible at all?