The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
I want VB to run a query when I delete a User
where can I put such a query ?
thankyou |
#2
|
|||
|
|||
Try hooks...
Code:
useradmin_prune userdata_delete |
#3
|
|||
|
|||
calorie,
thanks soooooo much for replying. Im new to VB. How do I get about playing with hooks ? thanks again |
#4
|
|||
|
|||
Take a read through the following to get a sense of how it works, and then find the hooks in the vB code to see what is available to you for use in your plugins:
Code:
// Example... $db $vbulletin->db $this->dbobject $this->registry->db |
#5
|
|||
|
|||
thanks calaorie. youre awesome!
so useradmin_prune userdata_delete are hooks thata re already in VB ? I understand userdata_delete. what is useradmin_prune ? |
#6
|
|||
|
|||
The useradmin_prune hook is in the /admincp/user.php file.
|
#7
|
|||
|
|||
I see!
Is there a place with a list of hooks and their location documented somewhere ? I tried a search on forums but no luck. |
#8
|
|||
|
|||
The /includes/xml/hooks_vbulletin.xml file contains a hook list with location hint.
|
#9
|
|||
|
|||
cool thanks a lot.
I think it makes most sense to use the useradmin_prune hook |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|