Ok, that works. I've changed the existing BBC clear tag so that you can put stuff inside it. Primarily: inline attachments. It could be used for any content at all, but there's not much point using it for anything else.
It now works like any standard text formatting (bold, italic, etc) in that you can highlight any content and then click the clear button, and the tag will automatically be wrapped around whatever is highlighted. This allows dropping in a row of inline attachments quickly and easily,
without having them all screwed up with the post text.
Example, from the previous post:
Code: Select all
Testing attachments tweaks. Bla bla bla.[clear][attachment=1]banner_5.jpg[/attachment][/clear]Accumsan sapien egestas fringilla nam dolor quis libero hac amet adipiscing dictumst placerat nascetur sit eu rhoncus arcu natoque taciti platea lorem natoque ante posuere odio tristique adipiscing massa dignissim nullam.[clear][attachment=5]banner_1.jpg[/attachment][attachment=4]banner_2.jpg[/attachment][/clear]Vel. Feugiat pede adipiscing nonummy curabitur quam iaculis odio. Tellus. Natoque gravida mauris, consequat. Rutrum. Velit nisl hac in, cubilia vel urna senectus duis a lobortis bibendum. Tempor et lacinia faucibus dignissim mollis libero ornare eros molestie hymenaeos.[clear][attachment=3]banner_3.jpg[/attachment][attachment=2]banner_4.jpg[/attachment][attachment=0]banner_6.jpg[/attachment][/clear]Luctus dui penatibus scelerisque eleifend eget non malesuada nulla tristique cras imperdiet lacinia lacus sit vulputate proin aliquam nulla. Nascetur tortor quis, posuere cum ad aenean volutpat eu class pretium montes.
As you can see, all content is mushed together but the attachments still sit clear of the text. This is a much better implementation of the idea. I would recode phpBB to do this automatically if it was quick and easy, but it looks like it would be quite a mission, so this BBC tag is the next best option. And, it will still work if you insert a "clear" before or after any content too. In that case it just makes a bulletproof line break, that won't be eaten by the editor when the post is submitted.
Alternatively, you can always use the old trick of entering
two clear lines in the editor before the first inline attachment, and after the last one. In other words, this would also work:
Code: Select all
Testing attachments tweaks. Bla bla bla.
[attachment=1]banner_5.jpg[/attachment]
Accumsan sapien egestas fringilla nam dolor quis libero hac amet adipiscing dictumst placerat nascetur sit eu rhoncus arcu natoque taciti platea lorem natoque ante posuere odio tristique adipiscing massa dignissim nullam.
[attachment=5]banner_1.jpg[/attachment][attachment=4]banner_2.jpg[/attachment]
Vel. Feugiat pede adipiscing nonummy curabitur quam iaculis odio. Tellus. Natoque gravida mauris, consequat. Rutrum. Velit nisl hac in, cubilia vel urna senectus duis a lobortis bibendum. Tempor et lacinia faucibus dignissim mollis libero ornare eros molestie hymenaeos.
[attachment=3]banner_3.jpg[/attachment][attachment=2]banner_4.jpg[/attachment][attachment=0]banner_6.jpg[/attachment]
Luctus dui penatibus scelerisque eleifend eget non malesuada nulla tristique cras imperdiet lacinia lacus sit vulputate proin aliquam nulla. Nascetur tortor quis, posuere cum ad aenean volutpat eu class pretium montes.