PDA

View Full Version : change $stylevar[tborder_bgcolor] in postbit_start?


webForum-dev
12-12-2008, 05:36 PM
Hello

I try to change the value of $stylevar[tborder_bgcolor] if some settings is true for that particular post.

But I only want to change the value of that for that specific post in the whole thread.

I have tried to hook into the postbit_start and change the value, and it works. But then the all posts after the post that change the color first also gets that new color.

I have therefore tried to reset the $stylevar[tborder_bgcolor] back to it's original value in the postbit_complete-hook, but then it doesn't work at all (no post is changed).

Any suggestions on how to do this?