MyBB Community Forums
[For 1.6] Signature line replace with an image - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: [For 1.6] Signature line replace with an image (/thread-225794.html)



Signature line replace with an image - Mastersly - 2019-12-21

Edit the signature line and replace it with an image instead


Admin CP >> Templates & Style >> Templates >> YOUR THEME >> Post Bit Tamplates >> postbit_signature
Replace the code with this


<center><img src="https://i.servimg.com/u/f44/17/34/84/29/217.png"></center>
{$post['signature']}



RE: Signature line replace with an image - SvePu - 2019-12-21

Nice tutorial, but:
  • <center> tag is deprecated
  • img has no defined dimensions
  • img has no defined alt (alternative content)
  • img has an external source



RE: Signature line replace with an image - Mastersly - 2019-12-22

SvePu can you share a correct HTML code?


RE: Signature line replace with an image - Eldenroot - 2019-12-29

Use something like alt="signature_image" style="text-align: center; max-width: 250px;" in img tag...


RE: Signature line replace with an image - Ashley1 - 2019-12-29

<div class="text-center"><img src="https://i.servimg.com/u/f44/17/34/84/29/217.png" alt="" width="" height=""></div>

Width and height dimensions must be the actual dimensions of the image.

Add to global.css:

.text-center { text-align: center }