Re: BBCodes List
Oh, ho ho. Just for you, Shade. Properly absolutely positioned images that stay within the given post/sig. I present:
absimg
Usage:
Example:
.
.
.
.
Notes:
Numbers are in pixels. All instances of the BBCode must be all on the same line to make the images line up properly, and there must be something else in the post to extend the "canvas" to be big enough to hold the design. In this case, I used the color code to hide some periods making enough room.
This took a while to figure out too, because I was originally trying to have the relatively positioned anchor be the size of a canvas, and set up with another tag, but the fact that it was another tag was screwing up the effect. phpBB was screwing with my DOM. Doram shakes his fist at phpBB. then I tried to do it with JavaScript, which failed utterly. Doram shakes his fist at JavaScript. So, I got back to basics, and decided to just bruteforce the thing. What I ended up doing was making a 0px by 0px relative anchor for each image, which just stacks on top of each other in the top-left if everything's on the same line, and put it all in the same BBCode, so the BBCode stacking couldn't make the DOM hiccup... Doram celebrates!
absimg
Usage:
- Code: Select all
[absimg top=number left=number]URL[/absimg]
Example:
- Code: Select all
[absimg top=0 left=0]http://i.imgur.com/WSjNauZ.png[/absimg][absimg top=13 left=25]http://i.imgur.com/WSjNauZ.png[/absimg][absimg top=26 left=0]http://i.imgur.com/WSjNauZ.png[/absimg][absimg top=0 left=50]http://i.imgur.com/WSjNauZ.png[/absimg][absimg top=13 left=75]http://i.imgur.com/WSjNauZ.png[/absimg][absimg top=26 left=50]http://i.imgur.com/WSjNauZ.png[/absimg]
[color=#444]
.
.
.
.
[/color]
.
.
.
.
Notes:
Numbers are in pixels. All instances of the BBCode must be all on the same line to make the images line up properly, and there must be something else in the post to extend the "canvas" to be big enough to hold the design. In this case, I used the color code to hide some periods making enough room.
This took a while to figure out too, because I was originally trying to have the relatively positioned anchor be the size of a canvas, and set up with another tag, but the fact that it was another tag was screwing up the effect. phpBB was screwing with my DOM. Doram shakes his fist at phpBB. then I tried to do it with JavaScript, which failed utterly. Doram shakes his fist at JavaScript. So, I got back to basics, and decided to just bruteforce the thing. What I ended up doing was making a 0px by 0px relative anchor for each image, which just stacks on top of each other in the top-left if everything's on the same line, and put it all in the same BBCode, so the BBCode stacking couldn't make the DOM hiccup... Doram celebrates!