Solved: 1 Year, 8 Months, 1 Week ago If statement not working latest version
#1
Solved: 1 Year, 8 Months, 1 Week ago
<if $mybb->user['avatar'] then>
<img title="{$mybb->user['username']}" alt="Pic" src="{$mybb->user['avatar']}" onerror="this.style.display='none'" />
<else>
<img title="{$mybb->user['username']}" alt="Pic" src="{$theme['imgdir']}/default_avatar.png" />
<else>
</if>

Also

<if $thread['closed'] then>

</if>
Reply
#2
Solved: 1 Year, 8 Months, 1 Week ago
This requires a plugin and isn't a core feature, so you'd need to make sure the template conditionals plugin is installed and compatible with your version of MyBB and PHP.
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
#3
Solved: 1 Year, 8 Months, 1 Week ago
You are right, my bad! Ty !!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)