MyBB Community Forums

Full Version: Help with a template condtional in showthread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
On the showthread template,

I'm trying to create a template conditional that says whether the thread creator is a guest or member using a template condtional, this is what I have, but it is not working, what am I doing wrong?


<if $mybb->thread['uid'] == 0 then>this user is a guest
<else>
this user is a member
</if>

I played around then figured it out, this is how you do it

<if $thread['uid'] == 0 then>
This
<else>
bla bla
</if>