View Full Version : Forum and Thread update hooks
burtonmiller
06-28-2014, 04:31 AM
I am creating a mod (product). Part of that mod needs to take an action when a forum or thread is updated.
If anyone has code that does this - or can point me to an existing mod that contains this code...
Thanks in advance!
ForceHSS
06-28-2014, 04:45 AM
Take an action? What action you need to give more info
tbworld
06-28-2014, 05:21 AM
I am creating a mod (product). Part of that mod needs to take an action when a forum or thread is updated.
If anyone has code that does this - or can point me to an existing mod that contains this code...
Thanks in advance!
If you are using someone else's code, please make sure you have their permission. :)
burtonmiller
06-28-2014, 05:38 AM
By taking an action, I mean making a call to an external server. An external event needs to occur when a forum or thread changes - where my mod is installed.
I could also monitor RSS feeds (polling them instead of callbacks to see what is changing). The problem here seems to be that RSS is not activated by default, and I'm not sure (can't figure this out) if threads get their own RSS feeds in any normal configuration.
The goal is the trigger the external events without requiring too much of the person installing the mod (like reconfiguring all their RSS feeds). I would rather have the mod do the work.
You need the hooks?
New post hook: newreply_post_complete
Edit post hook: editpost_update_complete
New thread hook: newthread_post_complete
burtonmiller
06-28-2014, 11:51 PM
That seems to work - thanks!
tbworld
06-29-2014, 06:57 AM
You need the hooks?
New post hook: newreply_post_complete
Edit post hook: editpost_update_complete
New thread hook: newthread_post_complete
I had no idea he was asking this. Thanks @dave. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.