The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
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? |
#2
|
|||
|
|||
![]()
What have you actually tried in the code then? (What was the output/error if it never worked).
|
#3
|
|||
|
|||
![]()
Why not use:
HTML Code:
<if condition="$bbuserinfo[fieldX]"> <phrase 1="$bbuserinfo[fieldX]"></phrase> <else /> <phrase 1="$bbuserinfo[username]"></phrase> </if> |
#4
|
||||
|
||||
![]() 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 ![]() I'll buy you a pint next time you're in Ireland, guaranteed* ![]() *not a guarantee |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|