Quote:
Originally Posted by kh99
Well, post['pagetext_html'] probably contains html instead of bbcode. Maybe what you want to do is use hook bbcode_create to change $this->tag_list, and change the function that gets called to parse the table tag (check the current styleid if you only want it to change for one style).
|
Well the code I borrowed this from will successfully remove .[img] tags:
Code:
$this->post['pagetext_html'] = preg_replace('/\[img\](.*)\[\/img\]/im', construct_phrase($vbphrase['hideimg_message'], $session['sessionurl_q']), $this->post['pagetext_html']);
with the same hook location, so I figured I was on the right track and the regex is just off. I will try it your way, but I'm not entirely sure I understand everything you said... maybe you could break it down into simpler terms for me.