If statement not working latest version - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Extensions (https://community.mybb.com/forum-201.html) +--- Forum: Plugins (https://community.mybb.com/forum-73.html) +---- Forum: Plugin Support (https://community.mybb.com/forum-72.html) +---- Thread: If statement not working latest version (/thread-237895.html) |
If statement not working latest version - drako13337 - 2023-03-17 <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> RE: If statement not working latest version - Matt - 2023-03-17 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. RE: If statement not working latest version - drako13337 - 2023-03-18 You are right, my bad! Ty !!! |