PDA

View Full Version : Hook location for replying to a thread


Dean C
07-05-2005, 06:58 PM
I'm looking for a hook for after a reply has been posted to a thread. newpost_complete does it but it also includes when making a thread. newreply_post_complete does it but only when manually going to newreply.php, and it ignores quickreplies :(

Andreas
07-05-2005, 07:03 PM
Hook newpost_complete

if (THIS_SCRIPT == 'newreply')
{
}

?

Dean C
07-05-2005, 07:20 PM
newpost_complete does it but it also includes when making a thread.

Hehe, unfortunately this also runs the hook when posting a thread. I want it only when REPLYING :) Gah just read your reply *hits self*

Andreas
07-05-2005, 07:24 PM
Hehe, unfortunately this also runs the hook when posting a thread.
I know. That's what the if is for ;)

Marco van Herwaarden
07-05-2005, 07:40 PM
IF (Blind == true){
$me->head->hit('Hard');
}

Christine
07-06-2005, 02:32 PM
LOL @ Marco

I am still muddling around with this new hook system. :rambo:

I have a query added to functions_newreply to close a thread if the new reply is # 250 on the thread.

Could I use this hook location and conditional to replace that functionality or should I use the newpost_process hook in functions_newreply?