Images - How do I add images to the board's description: Difference between revisions From Online Manual

Jump to: navigation, search
No edit summary
mNo edit summary
Line 1: Line 1:
SMF has the ability to recognize and parse HTML code in board's description. Just add something like this to your description:
SMF has the ability to recognize and parse HTML code in a board's description. Just add something like this to your description:
{{Code|1=
{{Code|1=
<img src="mypic.gif" width="70" height="17" alt="" />
<img src="mypic.gif" width="70" height="17" alt="" />
Line 7: Line 7:
*'''width="70"''' - is the width in pixels of the image.
*'''width="70"''' - is the width in pixels of the image.
*'''height="17"''' - is the height in pixels of the image.
*'''height="17"''' - is the height in pixels of the image.
*'''alt=""''' - is an alternative text to display if, for any reason, the image does not load correctly in visitors' browser. If the image has no real utility except aesthetics, it can be left empty. Otherwise it would be appropriate to explain in one word or two what the image represents.
*'''alt=""''' - is an alternative text to display if, for any reason, the image does not load correctly in visitors' browsers. If the image has no real utility except aesthetics, it can be left empty. Otherwise, it would be appropriate to explain in one word or two what the image represents.


<noinclude>[[Category:FAQ]]</noinclude>
<noinclude>[[Category:FAQ]]</noinclude>

Revision as of 09:24, 2 September 2015

SMF has the ability to recognize and parse HTML code in a board's description. Just add something like this to your description:

<img src="mypic.gif" width="70" height="17" alt="" />

Where:

  • img="mypic.gif" - is the name of the image. If it is not located in the forum's base directory, it will be necessary to include the path to it (i.e. img="./Themes/default/images/mypic.gif");
  • width="70" - is the width in pixels of the image.
  • height="17" - is the height in pixels of the image.
  • alt="" - is an alternative text to display if, for any reason, the image does not load correctly in visitors' browsers. If the image has no real utility except aesthetics, it can be left empty. Otherwise, it would be appropriate to explain in one word or two what the image represents.


Advertisement: