![]() |
Hooks in vBulletin 3.7.x
For those interested, the list of hooks in vB 3.7.x:
Hook Statistics: Total Hooks: 999 Unique Hooks: 933 Files With Hooks: Code:
./admincp/adminpermissions.php |
Code:
./member.php |
Can someone define exactly what a hook is, what it's job is and how it functions? Perhaps an analogy to assist with the less vb orientated folk, such as my good self :)
|
Quote:
a) a line at the relevant place in the php code file which takes the form PHP Code:
b) a line in the file includes/hooks_productname.xml, which defines all the hooks that are available. As an example, there is a hook called cache_templates in the file global.php. This hook appears just before vbulletin caches the required templates. So if someone (e.g. the author of a product that integrates within vbulletin) wants to cache another template, she can use that hook to do so, in this case, by writing a plugin which is tied to the cache_templates hook, containing the following code: PHP Code:
Hooks and plugins are widely used in software products to allow the products to be extended without having to modify the main code files. |
Are there any hooks that fire off after a user updates their profile?
I need to write a plugin that reflects profile changes in a secondary application and rather than do a batch job every hour, it makes sense to use a hook if there is one available. |
All times are GMT. The time now is 10:54 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|