[Wittenberg] BBCode weirdness

Started by Sevastáin Pinátsch, December 04, 2019, 01:39:27 PM

Previous topic - Next topic

Sevastáin Pinátsch

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

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)

Resizing and adding meta information for the image
"Lubeck city gate" height="50"

The clickable function works, but not resizing and alt description.
Sevastáin Pinátsch, Senator for Atatürk
#KARED

Sir Lüc

Sir Lüc da Schir, UrB
Directeur Sportif, Gordon Hiatus Support Team

In my free time:
Túischac'h dal Cosă / Speaker of the Cosa
Wittmeister & Permanent Secretary of Backend Admin / Secretar Parmanint per l'Aðmistraziun del Backend
Deputy Scribe of Abbavilla / Distain Grefieir d'Abbavillă

Sir Lüc

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).
Sir Lüc da Schir, UrB
Directeur Sportif, Gordon Hiatus Support Team

In my free time:
Túischac'h dal Cosă / Speaker of the Cosa
Wittmeister & Permanent Secretary of Backend Admin / Secretar Parmanint per l'Aðmistraziun del Backend
Deputy Scribe of Abbavilla / Distain Grefieir d'Abbavillă

Sevastáin Pinátsch

Interesting. So:

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

makes:



Thanks!
Sevastáin Pinátsch, Senator for Atatürk
#KARED

Sevastáin Pinátsch

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.
Sevastáin Pinátsch, Senator for Atatürk
#KARED

Sir Lüc

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.
Sir Lüc da Schir, UrB
Directeur Sportif, Gordon Hiatus Support Team

In my free time:
Túischac'h dal Cosă / Speaker of the Cosa
Wittmeister & Permanent Secretary of Backend Admin / Secretar Parmanint per l'Aðmistraziun del Backend
Deputy Scribe of Abbavilla / Distain Grefieir d'Abbavillă

Sevastáin Pinátsch

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.
Sevastáin Pinátsch, Senator for Atatürk
#KARED