Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Quote BBCode
adrian.
✭
I'm currently moving my punbb forum across to Vanilla and I am using the Better BBCode extension to parse BBCode.
The problem I'm having is that it's missing out the person you're quoting on the following example of a quote:
[quote=author]Notable Post[/quote]
Does anybody know of a way to change this extension to parse the example code correctly?
0
Comments
@Bergamot, how would you transform [quote=author] so that it would match your BBCode? If it's simple, then I can do that as part of the importing of the data.
$content = preg_replace("/\[quote=(.*)\]([^\[]*)\[\/quote\]/Ui", '<blockquote><cite>\\1</cite>\\2</blockquote>', $content);