Works in FireFox and in InternetExplorer.
With this bbcode you can have text around any object (yep, also at the right and left of images/videos etc., etc?).
Create and name a bbcode as you like (aligntable in this case ? thanks to Tyler for giving me a better name for this bbcode). This is a simple table made of only 1 cell that can include your image that you want to wrap with text around (left or right alignment).
As you can see in the code below, you can also have a border (colour and thickness settable), an eventual background colour and of course the width of the table adjustable. If you don?t need some of these option just remove the HTML code and the correspondent bbcode tag (but trust me, the bbcode as it is can be useful in many scenarios).
BBCode usage
- Code: Select all
[aligntable={TEXT1},{TEXT2},{NUMBER1},{NUMBER2},{TEXT3},{TEXT4},{TEXT5}]{TEXT}[/aligntable]
- Code: Select all
<div style="float:{TEXT1}; margin: 0px {NUMBER2}px 0px {NUMBER1}px;"> <table width="{TEXT2}" border="{TEXT3}" bordercolor="{TEXT4}" bgcolor="{TEXT5}">
<tr>
<td>{TEXT} </td>
</tr>
</table> </div>
- Code: Select all
[aligntable =align,width,marginleft,marginright,border,brdcolor,bkgrdcolor]{TEXT}[/aligntable]
At this point you have just to insert the common IMG tag inside this aligntable bbcode (with the link of the image you want to wrap with text of course) and everything works as it should and as many times you want in the same post. :grin:
Example:
- Code: Select all
[aligntable =right,0,10,0,0,0,0][img]http://localhost/phpBB3RC1/styles/prosilver/imageset/site_logo.png[/img][/aligntable]Here goes all the text I want to insert?hallelujah!
As you can see in the example if you just want the image without any borders, and backgrounds just set the values of the correct options to zero (0).
Note that if you want to create an image (wrapped with text) with a border you can just put the width of the table on zero?it will calculate automatically the exact width of the image so that you won?t have to know it exactly and then insert it, just put 0?.(if on the other hand you want to have the table with a different dimension (bigger then the image) you can of course set it).
The bbcode wraptext posted in another thread here on STG seems that isn?t capable of handling more then one image per post. If you need more then one image per post you can just use this bbcode I discovered and that I am currently using.
Note: I haven't test it, but I believe that with this method you can wrap almost any object (so not only images, but also videos and other) and then have text around it.
Enjoy!
P.S. Let me know if there are any problems.
P.P.S. Thanks to Sniper_E for his help.




Tyler.






...I'm vampire666 not Umpire66
).
Huh...now I understand why you called me with that name. 