MyBB Community Forums

Full Version: How To Convert PHP To Conditional?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I would like to convert this PHP into a template conditional:

	if($mybb->user['uid'] == 0)
	{
		echo "<img src='' alt='' />"
	}
Assuming you are using the Template Conditionals plugin:
<if $mybb->user['uid'] == 0 then><img src='' alt='' /></if>

Pretty sure it was like that Toungue
(2014-03-12, 04:31 AM)Omar G. Wrote: [ -> ]Assuming you are using the Template Conditionals plugin:
<if $mybb->user['uid'] == 0 then><img src='' alt='' /></if>

Pretty sure it was like that Toungue

Yes, it works. Thank you very much.