I've just figured out that I had have two problems. One of them was that another plugin was over writing the variable before it was displayed.
Now that I have disabled that plugin it appears that $post['pagetext_html'] is only populated in about 60% of threads (and the above regex replace works fine on it), on the other 40% of threads it seems this variable is not used.
I have no idea what the difference is between threads, I've tried clearing the cache etc - but it seems for a random number of entire threads the $post['pagetext_html'] variable is not used at all (it's coming back blank and something else I don't know is populating the postbit).
Anyone any ideas?
--------------- Added [DATE]1384596331[/DATE] at [TIME]1384596331[/TIME] ---------------
Got it, for some reason it's sometimes stored as $post['pagetext'] - the replace works on that also.
|