vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Forum and Thread update hooks (https://vborg.vbsupport.ru/showthread.php?t=312496)

burtonmiller 06-28-2014 04:31 AM

Forum and Thread update hooks
 
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

Quote:

Originally Posted by burtonmiller (Post 2504170)
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.

Dave 06-28-2014 07:54 AM

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

Quote:

Originally Posted by Dave (Post 2504205)
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. :)


All times are GMT. The time now is 10:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00991 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete