XF 2.2 Show text only to members

WheelerConnect

New member
Hey all, total noob question here. On the forum statistics widget, I only want it to show the newest member to people who are registered and signed in. So if they are a guest, I do not want them to see who is the newest registered user is

I looked a bit around to see if I could find the answer. I found that I can edit the widget, and I found the if statement for registered users. I thought this would work but for some reason it doesn't. What am I doing wrong?

Code:
            <xen:if is="{$visitor.user_id}">.
            <dl class="pairs pairs--justified">
                <dt>{{ phrase('latest_member') }}</dt>
                
                <dd><xf:username user="{$forumStatistics.latestUser}" /></dd>
                
            </dl>
            </xen:if>

This is in the template widget_forum_statistics. It's the right template because if I delete the whole thing then it goes away. But ideally it would show for registered users
 
Back
Top Bottom