Page 1 of 1

Img alt BBCode

Posted: 06 Mar 2010, 09:32
by BBCode Bot
Img alt BBCode

Author: topogio
Description: The Img alt BBCode adds ability to put alt tag for images in bbcode for SEO. I couldn't find a bbcode mod or bbcode that would do this for my images. I even searched here, as this has the most BBcodes I've ever seen. So I simply just added the appropriate html and made another bbcode for the img tag.
Image

BBCode:

Code: Select all

[imgalt]{URL},{SIMPLETEXT}[/imgalt]
HTML:

Code: Select all

<img src="{URL}" alt="{SIMPLETEXT}" title="{SIMPLETEXT}" />
Helpline:

Code: Select all

[imgalt]http://url,alt_text[/imgalt]
Example:

Code: Select all

[imgalt]http://www.phpbb3bbcodes.com/styles/prosilver/imageset/site_logo.png,PhpBB3 BBCodes Logo[/imgalt]
Demo:
[imgalt]styles/prosilver/imageset/site_logo.png,PhpBB3 BBCodes Logo[/imgalt]