Code: Select all
[img=right]http://www.photodump.com/blahblah.jpg[/img]
Code: Select all
[align=right][img]http://www.photodump.com/blahblah.jpg[/img][/align]
Code: Select all
[float=right][img]http://www.photodump.com/blahblah.jpg[/img][/float]
So the "align" bbcode would do this, depending on whether you choose "left", "center", or "right": Notice how the text does not continue until after the picture. Whereas the "float" bbcode would do this:
Notice how the text is now wrapped around the image, so that I have to keep typing and typing and typing and typing and typing and typing and typing and typing and typing and typing and typing and typing and typing and typing and typing and typing and typing to get past it.
Or alternatively, I could use the new "break" tag to make a block of text which is forced to break past the float. It looks like this:
Code: Select all
[break]text[/break]
Code: Select all
[break][/break]... continuing text
This is a right-justified quote
with two lines of text. I control
the width by breaking lines
manually.
- The "float" tag can only do "left" and "right", not "center".
- The "float" tag adds a small margin on both sides of the image, to keep text from squashing right up against the side of the image.
- You can also use the "float" tag with non-image objects, like the example at right:
Unfortunately, this means people have to manually edit their signatures, and old posts using the old tags won't work unless I can make the time to write a PHP script that loops through the entire phpbb_posts table and does a regexp replace (the built-in MySQL REPLACE function does not support regexp). But the new system is much more flexible than the old one was.