Customize BBcodes from admin panel

AI-generated summary

The discussion revolves around the desire to customize BBcodes via the admin panel in Discourse, particularly to add features like strikeout and underlined text. Maestra_Powers initially suggests adding these via JavaScript or plugins, noting the lack of plugin documentation. codinghorror responds by demonstrating that basic HTML tags like <s> and <u> already work, questioning the need for custom BBCode. Mittineague clarifies the request is about adding more BBcode-like functionality, not just HTML. codinghorror firmly states there are no plans to support custom BBCode, emphasizing it’s not a priority. Maestra_Powers tests oEmbed/OpenGraph support via iframely.com but encounters a 403 error, and expresses frustration over missing buttons for common formatting. zogstrip notes BBCode doesn’t integrate well with Markdown but mentions a BBCode plugin exists for basic BBcode support. Finally, Maestra_Powers concedes Markdown is preferable but lacks certain formatting options, and thanks the team for their work. The consensus is that while basic HTML tags suffice, custom BBcode isn’t planned, and users may rely on existing plugins or Markdown workarounds.

Continuing the discussion from Add new BBcode button:

This plugin must be created, fellas! It’s not right that users can’t customize BBcodes from admin panel. For example, I want to add new BBcodes - strikeout text, underlined text and also second spoiler (old fashion) for hiding very long texts. The only way I can add them now is via JS.


ADD: Also videos from vk.com doesn’t embeds automatically. So I would like to add a BBcode for them.

1 Curtiu

strikeout
underline

underline
strikeout

<s>strikeout</s>
<u>underline</u>

[u]underline[/u]
[s]strikeout[/s]

This already works? So what’s the problem again?

1 Curtiu

I believe it’s about adding other “bbcodes” i.e.

But not wanting to write a Dialect plugin, would prefer an Admin UI that would do it.

No, we have no plans to allow custom BBCode, that doesn’t mean anything.

Did you test it at Iframely URL Debugger - Open Graph, Twitter Cards, oEmbed ? Does it support OpenGraph or oEmbed?

It shows “403 - error - Requested page error: 403” so I don’t think so.

testy test

Holy anabolics! Why didn’t you add buttons for those codes too? I had no idea they were there.


testy test And centered text doesn't work.

BBCode doesn’t work very well with Markdown. That said, we did build a BBCode plugin that enable most of the BBCode available in vBulletin.

1 Curtiu

I like Markdown method better, but unfortunately it have lack of functionality right now. Thanks for the plugin, gonna try it out.

1 Curtiu