Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 25 Apr 2016, 10:47
robertw795 robertw795 is offline
Join Date: Feb 2016
Invoke hook on deletion of post/thread

I've been working on an image gallery that takes images posted subforums and displays them all in a custom gallery widget. In order to do this I use the PHP hooks system.

For inserting and updating I invoked my hooks in the createcontent.php file. Pass along some data and manipulate it to do my database inserts.

Now I'm looking into deleting, the html source tells me that upon deletion of a post/thread, a POST request is done to the ajax api. In order to find where this is handled I added a bunch of break points to the ajax source files. None of these is triggered when I delete a post though.

Could someone tell me in which source file this is handled?
Reply With Quote
Old 25 Apr 2016, 13:18
Replicant's Avatar
Replicant Replicant is offline
Join Date: Sep 2014
Real name: Mel
The deleteNodes function is in /core/vb/library/node.php.
VB5 mods - RepliClock VB4 mods - Member Online Status
Reply With Quote
Old 25 Apr 2016, 13:24
robertw795 robertw795 is offline
Join Date: Feb 2016
Originally Posted by Replicant View Post
The deleteNodes function is in /core/vb/library/node.php.
Thanks man! You never fail to come through.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 02:29.

Layout Options | Width: Wide Color: