This version of Wittenberg is now the legal national forum for Talossa! Feel free to explore it, and to check out the threads for feedback, requests and criticisms to make sure Wittenberg is tailored to you.

Author Topic: [Wittenberg] BBCode weirdness  (Read 541 times)

Offline Sevastáin Pinátsch

  • Senator for Atatürk
  • Citizen
  • Posts: 71
    • View Profile
[Wittenberg] BBCode weirdness
« 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

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
[img width="100" height="50" alt="Lubeck city gate" title="This is one of the medieval city gates of Lubeck"]https://www.bbcode.org/images/lubeck_small.jpg[/img]

The clickable function works, but not resizing and alt description.
« Last Edit: December 04, 2019, 01:42:46 PM by Sevastáin Pinátsch »
Sevastáin Pinátsch, Senator for Atatürk
#KARED

luc

  • Guest
Re: [Wittenberg] BBCode weirdness
« Reply #1 on: December 04, 2019, 05:18:54 PM »
I'm looking into it.

luc

  • Guest
Re: [Wittenberg] BBCode weirdness
« Reply #2 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).

Offline Sevastáin Pinátsch

  • Senator for Atatürk
  • Citizen
  • Posts: 71
    • View Profile
Re: [Wittenberg] BBCode weirdness
« Reply #3 on: December 04, 2019, 06:07:27 PM »
Interesting. So:

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



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

Offline Sevastáin Pinátsch

  • Senator for Atatürk
  • Citizen
  • Posts: 71
    • View Profile
Re: [Wittenberg] BBCode weirdness
« Reply #4 on: December 04, 2019, 06:12:41 PM »
Code: [Select]
[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:
Code: [Select]
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

luc

  • Guest
Re: [Wittenberg] BBCode weirdness
« Reply #5 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.

Offline Sevastáin Pinátsch

  • Senator for Atatürk
  • Citizen
  • Posts: 71
    • View Profile
Re: [Wittenberg] BBCode weirdness
« Reply #6 on: December 06, 2019, 09:57:28 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