Looking to strip table tags from posts on a particular style. I haven't put the if statement in yet for the styleid as the main code doesn't work.
Here is what I've been trying, with variations, but it never seems to work (created the phrase below):
Code:
hook location: postbit_display_start
$this->post['pagetext_html'] = preg_replace('/\[TABLE=.*?\](.*?)\[\/TABLE\]/si', construct_phrase($vbphrase['hidetable_message'], $session['sessionurl_q']), $this->post['pagetext_html'])
Guessing my regex is off...