PDA

View Full Version : hook 4 post preview


jet rex
11-29-2011, 11:14 AM
i need 2 make some changes in post content. actually i'm using 2 hooks - threadfpdata_presave, postdata_presave and modifying pagetext like $pagetext = $this->fetch_field('pagetext', 'post');
but now i have a problem with post preview - post content stays unchanged while i pressing preview button. is there some hook for post preview? or there is some way to change this content?

kh99
11-29-2011, 01:43 PM
You can use hook newpost_preview and make your changes to the string in $previewmessage.

jet rex
11-29-2011, 03:03 PM
You can use hook newpost_preview and make your changes to the string in $previewmessage.
thanks a lot!