ok, I just read this:
https://simple-press.com/support-forum/sp5-coding-questions/old-bbcodes-after-importing-from-phpbb3/page-2/
From the above I understand that the problem is in that these tags embed a random string as a pointer to specific, uploaded, media and, as they are unique, your parsers don’t handle them. I also believe, from this thread, that whenever SP does parse BBCode such as simple (rather than in my case) <img src=”url<img src=” markup code in sp-api-filters.php replaces this with html and stores it in the database.
It looks to me that the changes that were proposed by Yellow Swordfish and Joan Alamo Vallejo are implemented having looked at the code at line 930 of the current version of SP:
# apply any users custom filters for pre-content display processing
$content = apply_filters(‘sph_display_post_content_pre_filter’, $content);
So, do I just need to write a filter in my functions.php and replace the offending BBCode Tags with the simple tags that will then be automatically replaced by SP code with html?
This would save me from a lot of perl regexp DBI hackery…
thanks,
–Azti
PS: Ah… yes, confirmed… If I edit a post with one of these offending tags, and replace them with simple <img src=”url” alt=”url[img] markup code in sp-api-filters.php replaces this with html and stores it in the database.
PPS: Nope… that didn’t work it just displayed [img]url” alt=”url” alt=”url[img] markup code in sp-api-filters.php replaces this with html and stores it in the database.