PDA

View Full Version : Is there a "hook" to run some PHP code after a new thread is created?


CompiledMonkey
01-21-2009, 07:18 PM
I'm looking to run some PHP code with the thread title that was just created. Can anyone tell me how to get my code invoked just after a thread is created?

Farcaster
01-21-2009, 07:38 PM
You might check out the threaddata_postsave hook. I don't have the vbulletin code in front of me, but if memory serves, you'll probably find that in the class_dm_threadpost.php.

Dismounted
01-22-2009, 02:29 AM
threaddata_ppostsave will execute on all editing and saving of threads. newthread_complete will execute on new threads posted through newthread.php.