Bitcoin Forum

Other => Meta => Topic started by: o48o on December 22, 2016, 02:17:48 PM



Title: ■▇■▇■▇■▇■■■■■ T e s t ■■■■■▇■▇■▇■▇■
Post by: o48o on December 22, 2016, 02:17:48 PM
TEst edit: ignore

If i want to create a cool announcement with a solid background that includes some linkable parts.
The linked images are adding are automatically adding a space in front of them.
Preview doesn't show this, neither do pm:ing so this a feature or a bug?

This is the look i want:

https://i.imgur.com/4D03DaV.jpg
https://i.imgur.com/4D03DaV.jpg
https://i.imgur.com/4D03DaV.jpg

Example: Here's 3 boxes, middle one is linked, i guess i could fix this by adding spaces on front of unlinked images:

https://i.imgur.com/4D03DaV.jpg
https://i.imgur.com/4D03DaV.jpg (https://www.reddit.com/)
https://i.imgur.com/4D03DaV.jpg

When i try to put them on the same line, i can't really do a solid box from them:

https://i.imgur.com/4D03DaV.jpg (https://www.reddit.com/)https://i.imgur.com/4D03DaV.jpg (https://www.reddit.com/)https://i.imgur.com/4D03DaV.jpg (https://www.reddit.com/)



Trying out one with a space addon:



 https://i.imgur.com/4D03DaV.jpg
https://i.imgur.com/4D03DaV.jpg (https://www.reddit.com/)
 https://i.imgur.com/4D03DaV.jpg

What the....Nnope, even more fucked up.


Title: Re: Bug in linking images with bbcode?
Post by: minifrij on December 22, 2016, 08:07:54 PM
For whatever reason the forum seems to add on a padding of 4px to the left side when a URL is included on an image. However, it doesn't when the image doesn't have a URL surrounding it. All that you have to do is add a small 4x4px buffer onto the line of images that don't have a URL tag included, like so:

https://i.imgur.com/8Z8Qqaj.pnghttps://i.imgur.com/dIM1r50.png
https://i.imgur.com/jOQ0qju.png (https://bitcointalk.org)
https://i.imgur.com/8Z8Qqaj.pnghttps://i.imgur.com/dIM1r50.png
[img]http://i.imgur.com/8Z8Qqaj.png[/img][img]http://i.imgur.com/dIM1r50.png[/img]
[url=https://bitcointalk.org][img]http://i.imgur.com/jOQ0qju.png[/img][/url]
[img]http://i.imgur.com/8Z8Qqaj.png[/img][img]http://i.imgur.com/dIM1r50.png[/img]


It looks strange when previewing the post, however once actually posting the images realign and fix themselves.


Title: Re: Bug in linking images with bbcode?
Post by: o48o on December 22, 2016, 10:46:57 PM
For whatever reason the forum seems to add on a padding of 4px to the left side when a URL is included on an image. However, it doesn't when the image doesn't have a URL surrounding it. All that you have to do is add a small 4x4px buffer onto the line of images that don't have a URL tag included, like so:

https://i.imgur.com/8Z8Qqaj.pnghttps://i.imgur.com/dIM1r50.png
https://i.imgur.com/jOQ0qju.png (https://bitcointalk.org)
https://i.imgur.com/8Z8Qqaj.pnghttps://i.imgur.com/dIM1r50.png
[img]http://i.imgur.com/8Z8Qqaj.png[/img][img]http://i.imgur.com/dIM1r50.png[/img]
[url=https://bitcointalk.org][img]http://i.imgur.com/jOQ0qju.png[/img][/url]
[img]http://i.imgur.com/8Z8Qqaj.png[/img][img]http://i.imgur.com/dIM1r50.png[/img]


It looks strange when previewing the post, however once actually posting the images realign and fix themselves.

Ha, didn't even thought about that :). Thanks.

testing more so i don't spam elsewhere :


Code:
 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam aliquam velit dui, a feugiat tellus finibus quis. Nunc rutrum erat eget dictum elementum. Sed ac leo eget mi hendrerit viverra. Nam dignissim porta purus ac luctus. Integer porttitor tristique ligula eu gravida. Nam vel justo vel odio aliquet consequat eget eget leo. Nulla vitae dolor vitae nisi bibendum lobortis. In volutpat mauris id felis euismod auctor. In fringilla eros ac velit sollicitudin placerat. Sed vitae nulla at enim scelerisque rutrum non eu nisl.

Nam tempor posuere metus at condimentum. Ut laoreet nisi ut rutrum dignissim. Mauris at lacus sem. Praesent placerat ipsum ut augue porta vestibulum. Curabitur eget risus eget elit dapibus condimentum et ac orci. Nulla dictum ante risus, ac scelerisque orci condimentum vitae. Donec in pulvinar erat. Quisque volutpat, nulla sed euismod vehicula, dolor leo accumsan odio, vel scelerisque dui lectus sed dui. Sed non pellentesque lacus, ornare iaculis nibh. Cras sed libero a mauris porta gravida. Fusce rutrum et libero finibus tincidunt. Etiam vel ligula nibh. Integer hendrerit elit vel sagittis sodales.




Some random links - pool 1 (http://suprnova.cc/)
Some random links - pool 2 (http://suprnova.cc/)
Some random links - pool 3 (http://suprnova.cc/)
Some random links - pool 4 (http://suprnova.cc/)
Some random links - pool 5 (http://suprnova.cc/)
Some random links - pool 6 (http://suprnova.cc/)
Some random links - pool 7 (http://suprnova.cc/)
Some random links - pool 8 (http://suprnova.cc/)
Some random links - pool 9 (http://suprnova.cc/)


https://i.imgur.com/D4C9QEZ.png (https://google.com/)
https://i.imgur.com/D4C9QEZ.png (https://www.reddit.com)
https://i.imgur.com/D4C9QEZ.png (https://google.com/)
https://i.imgur.com/D4C9QEZ.png (https://www.reddit.com)
https://i.imgur.com/D4C9QEZ.png (https://www.reddit.com)
https://i.imgur.com/xNdst9b.png

https://i.imgur.com/uRZrnAq.png (https://https://yobit.net/en/trade/VLT/BTC)

https://i.imgur.com/D4C9QEZ.png (https://google.com/)
https://i.imgur.com/D4C9QEZ.png (https://www.reddit.com)
https://i.imgur.com/D4C9QEZ.png (https://google.com/)
https://i.imgur.com/D4C9QEZ.png (https://www.reddit.com)







Title: Re: Bug in linking images with bbcode?
Post by: ndnh on December 23, 2016, 06:30:18 AM
 ;D

https://i.imgur.com/4D03DaV.jpg (http://by)
https://i.imgur.com/4D03DaV.jpg (https://www.reddit.com/)
https://i.imgur.com/4D03DaV.jpg (http://ndnh)


Code:
[url=http://by][img]https://i.imgur.com/4D03DaV.jpg[/img][/url]
[url=https://www.reddit.com/][img]https://i.imgur.com/4D03DaV.jpg[/img][/url]
[url=http://ndnh][img]https://i.imgur.com/4D03DaV.jpg[/img][/url]




Just add links (to the homepage of whatever the OP is about so it doesn't look weird like this) to the remaining images.


Title: Re: Bug in linking images with bbcode?
Post by: o48o on December 23, 2016, 12:01:56 PM



Just add links (to the homepage of whatever the OP is about so it doesn't look weird like this) to the remaining images.

Yeah, thanks i thought about that but it's annoying when your pointer clearly shows everything as a link. I like the solution by minifrij :)


Title: Re: Bug in linking images with bbcode?
Post by: ndnh on December 23, 2016, 12:44:36 PM



Just add links (to the homepage of whatever the OP is about so it doesn't look weird like this) to the remaining images.

Yeah, thanks i thought about that but it's annoying when your pointer clearly shows everything as a link. I like the solution by minifrij :)

ofc minifrij's is indeed the best solution. :D

I saw the linked image all blue and actually thought it had something to do with the link before I realized it was just a different image. I decided not to dump all my hard work. ;D