Custom BBCodes?
-
Hello, after importing from a phpBB forum where I had custom BBCodes I have the problem that they are not changed in actual html.
I would like to know how can I implement such custom bbcodes in my bbpress installation.I did some tries making a custom plugin with something like this inside (this is just an example):
function bb_table_replace( $text ) { $text = preg_replace('/\[tabella\](.*?)\[\/tabella\]/ie', "<table>$1</table>", $text); return $text; } add_filter('bbp_get_reply_content', 'bb_table_replace');
But I had no luck. It seems however to find my regexp pattern but its replace is wrong, it’s made after the matched pattern (adding to it, instead of replacing).
Any help?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.