XF Page usergroup conditional

Morgain

Well-known member
I have this type of code for an XF Page Title,

Code:
<xen:h1> {$visitor.username}'s Toybox</xen:h1>
which displays as [MyName]'s Toybox if I'm logged in

How do I add a conditional so if it's someone not logged in it reads
[General Visitor]'s Toybox

I knew how to do this on another forum ...
and I HAVE searched the Manual, FAQ, general forum searches.
 

James

Well-known member
Code:
<xen:h1> {xen:if '{$visitor.username}', '{$visitor.username}', 'General Visitor'}'s Toybox </xen:h1>
Try that.
 
Top