MyBB Community Forums

Full Version: If condition in a template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I would show something in the template if the user is logged, something else if the user isn't logged.
I found this old thread http://community.mybb.com/thread-119788-...#pid865335 with what I need but for the 1.6, how can I do the same with the 1.8?
Thank you!
It is the same.
In the template I have this code:

<if $mybb->user['usergroup'] == "1" then>you are a guest<else>you aren't a guest</if>

to test but doesn't work, both phrases are printed.
Then you don't have Template Conditionals plugin installed: http://mybbhacks.zingaburga.com/showthread.php?tid=464
This made the trick! Thank you!