Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
BBCode questions
I am looking at migrating a vBulletinforum over to Vanilla but I have a few questions I have not been able to answer myself:
1: We currently use BBCode to embed YouTube videos in the format of [youtube]VIDEOID[/youtube]. What is the best way to mirror that functionality? I have had a look around, but the whole BBCode thing seems to be a bit of a mess as far as I can tell.
2: Similarily, vBulletin uses BBCode for quotes in the form of [quote=USER]QUOTED TEXT[/quote]. How can I set up some BBCode in order to get it to parse in blockquotes?
Thanks in advance.
1: We currently use BBCode to embed YouTube videos in the format of [youtube]VIDEOID[/youtube]. What is the best way to mirror that functionality? I have had a look around, but the whole BBCode thing seems to be a bit of a mess as far as I can tell.
2: Similarily, vBulletin uses BBCode for quotes in the form of [quote=USER]QUOTED TEXT[/quote]. How can I set up some BBCode in order to get it to parse in blockquotes?
Thanks in advance.
0
Comments
I'm not sure if it supports the [youtube] tag like you say, but it's dead simple to extend that way.
I know it supports the quotes like you want. It also supports [quote=user;id] format that I've seen come in from some vBulletin imports.
I can't find a readme in the package nor is there a settings panel in the Vanilla dashboard when I activate the plugin.
Edit: Ignore the "doing it wrong" above. I got it working and the quotes are good. One question though, what is the easiest way to add custom BBCode? Dive into the plugin file?
Also, BBCode doesn't seem to be working on new posts? Is there a hidden setting/line in the config that I need to change?
Edit 2: Fixed/Solved.
Added:
$Configuration['Garden']['InputFormatter'] = 'BBCode';
To the config file.
Added custom bbcode by editing the NBBC plugin file.