Wittenberg

Las Intereçuns Speciais/Special Interests => The Webspace => Topic started by: Sevastáin Pinátsch on December 04, 2019, 01:39:27 PM

Title: [Wittenberg] BBCode weirdness
Post by: Sevastáin Pinátsch on December 04, 2019, 01:39:27 PM
The implementation of BBCode seems incomplete or non-standard. I tried a few ways to re-size linked images and nothing worked.

https://www.bbcode.org/examples/?id=10

Example:

Standard image
(https://www.bbcode.org/images/lubeck_small.jpg)
Resizing the image
[img=100x50]https://www.bbcode.org/images/lubeck_small.jpg[/img]
Making the image clickable (in this case linking to the original image)
(https://www.bbcode.org/images/lubeck_small.jpg) (https://www.bbcode.org/images/lubeck.jpg)
Resizing and adding meta information for the image
(https://www.bbcode.org/images/lubeck_small.jpg)

The clickable function works, but not resizing and alt description.
Title: Re: [Wittenberg] BBCode weirdness
Post by: Sir Lüc on December 04, 2019, 05:18:54 PM
I'm looking into it.
Title: Re: [Wittenberg] BBCode weirdness
Post by: Sir Lüc on December 04, 2019, 05:25:40 PM
Alright, so apparently SMF doesn't like quotes for the height and width attributes. If you omit the quotes, you're fine. I'm afraid I can't do much more, as I have already checked if perchance either the native settings or the CSS had bounds on image size/resizing (they don't).
Title: Re: [Wittenberg] BBCode weirdness
Post by: Sevastáin Pinátsch on December 04, 2019, 06:07:27 PM
Interesting. So:

[img height=150]https://www.bbcode.org/images/lubeck_small.jpg[/img]

makes:

(https://www.bbcode.org/images/lubeck_small.jpg)

Thanks!
Title: Re: [Wittenberg] BBCode weirdness
Post by: Sevastáin Pinátsch on December 04, 2019, 06:12:41 PM
Quote from: Sevastáin Pinátsch on December 04, 2019, 06:07:27 PM
[img height=150]https://www.bbcode.org/images/lubeck_small.jpg[/img]

Wow. Maybe it's just my cheap monitor or my old eyeballs but I have a hard time reading text in that code.

Lemme try it again:
If you can read this you're not nearly as cheap or blind as I am.

I see a very faint light grey on white.
Title: Re: [Wittenberg] BBCode weirdness
Post by: Sir Lüc on December 05, 2019, 05:33:38 AM
Indeed, and incidentally, thanks for trying functionalities out, so that I can see if they work properly.

Quotes and code blocks should now be much more readable on the dark theme. The light theme was already mostly fine.
Title: Re: [Wittenberg] BBCode weirdness
Post by: Sevastáin Pinátsch on December 06, 2019, 09:57:28 AM
Quote from: Lüc on December 05, 2019, 05:33:38 AM
Indeed, and incidentally, thanks for trying functionalities out, so that I can see if they work properly.

Quotes and code blocks should now be much more readable on the dark theme. The light theme was already mostly fine.
Thanks! Code blocks on dark theme look great now.