vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=322450

Invoke hook on deletion of post/thread
by robertw795
25 Apr 2016 10:47

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?

Replicant 25 Apr 2016 13:18

The deleteNodes function is in /core/vb/library/node.php.

robertw795 25 Apr 2016 13:24

Quote:

Originally Posted by Replicant (Post 2569509)
The deleteNodes function is in /core/vb/library/node.php.

Thanks man! You never fail to come through.


All times are GMT. The time now is 12:03.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.