Continuing the discussion from Add new BBcode button :
Add it via JS.
It is the RIGHT way of doing this …
Discourse frontend is written in EmberJS .
The best way you could possibly do this is by creating a plugin that adds this code, but there is no howto for creating a plugin …
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 Like
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 Like
I believe it’s about adding other “bbcodes” i.e.
On my forum there’s a topic where guys make giveaways. And post authors decide themselves to who they want to giveaway their stuff. For this we have [hide]text[/hide] shortcode now (we’re on phpBB currently, gonna migrate soon) that hides text from guests by default. But also authors can specify how many posts users should have to see their hidden text. Like this: [hide=200]text[/hide]. It’s very handy for givaways and it would be cool to have this functional in Discourse. Otherwise I’ll have to…
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 http://iframely.com/debug ? 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.
zogstrip
(Régis Hanol)
February 24, 2015, 10:34am
6
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 Like
I like Markdown method better, but unfortunately it have lack of functionality right now. Thanks for the plugin, gonna try it out.
1 Like