[img] tag not working in channel description since 6.0.0-beta4

Since updating to TS 6.0.0-beta4, the [img]URL[/img] BBCode tag no longer renders images in channel descriptions.

Steps to reproduce:

  1. Open a channel description
  2. Add [img]https://i.imgur.com/I7CpZ5M.png[/img]

Expected: Image is displayed Actual: Tag is shown as plain text / image is not rendered

Worked in: TS 6.0.0-beta3.4 OS/Client: Windows 11, TS6 desktop client

This is an intentional Change currently, to combat ip sniffing attacks via images hosted on compromised hosters. Currently, ONLY ts3image:// URLs are allowed. So you would have to upload the image to the server and change the url (click share and adjust the scheme to ts3image)

This is a somewhat temporary solution - we are planning to rework this feature with sich safety issues in mind. Until then, use the File Browser for images :slight_smile: (S3 and non-S3 work)

5 Likes

As a suggestion, it might be worth adding a client side option (defaulting to true) to block external image links. This way, users could consciously decide whether to take the risk.

Either way, I greatly appreciate your quick response have a nice day!

That alongside some other UI features is exactly the plan :+1:

5 Likes

So how can I currently use it to add pictures to the channel description?

  1. Upload image to display in any channel on your server
  2. Right Click that Image in the File Browser → Copy URL
  3. Go to your Channel Description and Edit it
  4. Paste your URL and wrap it in [img][/img] (e.g. [img]ts3file://my-server?port=9987&serverUID=<some-long-uuid>&channel=1&path=/&filename=banner1.png&....[/img])
  5. replace ts3file:// with ts3image:// at the beginning of the URL (e.g. [img]ts3image://my-server?port=9987&serverUID=<some-long-uuid>&channel=1&path=/&filename=banner1.png&....[/img])

You can even delete nearly all parameters of that URL except channel and path and move the filename to the front: e.g. [img]ts3image://banner1.png?channel=1&path=/[/img]

Hope that helps

2 Likes

Thank you, but I found that [center] also cannot be used

Seems to work fine: [center]test[/center] just got centered correctly in my test channel description.

2 Likes

[center]

[size=24][color=#FFD700] :dog_face:[/color][/size]

[color=#888888]━━━━━━━━━━━━[/color]

[color=#888888]━━━━━━━━━━━━[/color]

[color=#888888]━━━━━━━━━━━━[/color]

[color=#00CC66] :smirking_face:[/color]

[/center]
This way, it is no longer centered.

You are correct, currently BBCodes are not parsed across line boundaries, this will be addressed.

3 Likes

thank u

[url=xxxx] originally could also be used. Is it now impossible to redirect to the webpage?

Just like this
[color=#00CCFF]:high_voltage: Join :high_voltage:[/color]

[url=https://www.google.com]gooogle.com[/url]

works fine

1 Like

I tried again and it worked. Regarding the image’s img, what formats does it support? Currently, the webp I uploaded does not display.

Also just tested webp images via the ts3image:// [img] syntax from above, works.

2 Likes