MyBB Community Forums
Error making a name appear as a gif - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Error making a name appear as a gif (/thread-238328.html)



Error making a name appear as a gif - ScrimOnDiscord - 2023-05-21

I tried replacing the <strong>{$formattedname} with this = 


<if condition="$uid == 1">
  <img src="https://i.postimg.cc/1XDKMjHV/Moot.gif" alt="Moot">
<else />
  {$formattedname}
</if>

Instead of it appearing only on UID 1's profile, It show's on all profiles. I'd love to have some help with this thanks!



-Scrim


RE: Error making a name appear as a gif - Taylor M - 2023-05-22

Profiles
<if $uid == 1 then>
  <img src="https://i.postimg.cc/1XDKMjHV/Moot.gif" alt="Moot">
<else/>
  {$formattedname}
</if>

Postbits
<if $post['uid'] == 1 then>
  <img src="https://i.postimg.cc/1XDKMjHV/Moot.gif" alt="Moot">
<else/>
  {$post['profilelink']}
</if>



RE: Error making a name appear as a gif - ScrimOnDiscord - 2023-05-22

(2023-05-22, 12:25 PM)Taylor M Wrote: Profiles
<if $uid == 1 then>
  <img src="https://i.postimg.cc/1XDKMjHV/Moot.gif" alt="Moot">
<else/>
  {$formattedname}
</if>

Postbits
<if $post['uid'] == 1 then>
  <img src="https://i.postimg.cc/1XDKMjHV/Moot.gif" alt="Moot">
<else/>
  {$post['profilelink']}
</if>

Thanks Works great!