Hello there, I've been working on converting a phpbb site to drupal. I chose to leave the BBCode intact and to install the BBCode module to continue using BBCode in the forum.
One of the errors found is that the BBCode module does not like phpbb's acronyms. For example, drupal's BBCode assumes that it is written like this:
[acronym=hello]Hello[/acronym]
When phpbb stores them like this (note the quote marks):
[acronym="hello"]Hello[/acronym]
How do I edit the code to change this? I found this line in the bbcode-filters.inc:
[acronym=([\w\s-,\.]+)(?::\w+)?\](.*?)\[/acronym(?::\w+)?\]#si' => '<acronym title="\\1">\\2</acronym>',
But no matter how I change it, it doesn't work.
Any help? Thanks in advance.
Comments
Try this
Change line 117 in bbcode-filter.inc to this:
'#\[acronym="([\w\s-,\.]+)(?::\w+)?"\](.*?)\[/acronym(?::\w+)?\]#si' => '<acronym title="\\1">\\2</acronym>',Should work.
May be a conversion issue
Looks like it's a conversion issue. Instead of the lines being:
[acronym="hello"]Hello[/acronym]It is:
[acronym="hello"]Hello[/acronym]So it is the text quotes, not the ".
Am I stuck out in the cold, or is there a way to fix this?