PDA

View Full Version : Custom BBCode Tags


jon
11-12-2006, 09:57 PM
I've added the following extra bbcode tags, mainly for use with the blogs:

http://www.mtb-thrashers.com/images/custom_img_tags.gif

These tags create an image tag with a style of float:left;margin-right:4px and float:right;margin-left:4px respectively. These tags allow you to add images to your posts and let the text wrap around them

More image tags:

http://www.mtb-thrashers.com/images/custom_img_tags_2.gif

Includes a left/center/right-aligned div around an image tag. the div is required for browser compatibility

jon
02-04-2008, 01:30 PM
Check this out, bbcode image tags, with captions :banana: (particularly useful in blogs)


[img-capt-left="some text"]http://www.mtb-thrashers.com/images/avatar/mtbt_jon.jpg[/img-capt-left]


translates into:

<div class="image-capt-left">
<img src="http://www.mtb-thrashers.com/images/avatar/mtbt_jon.jpg" alt="some text" />
<p>some text</p>
</div>


which translates into:
[img-capt-left="some text"]http://www.mtb-thrashers.com/images/avatar/mtbt_jon.jpg[/img-capt-left]

:D



there is also an img-capt-right tag to match, full details in the mtb-thrashers bbcode FAQ page (http://www.mtb-thrashers.com/forums/misc.php?do=bbcode)