Back to vBulletin 3 Articles

[HOW-TO] Easy way of finding executed hook locations
by Marco van Herwaarden 15 Aug 2005

If you are developing a new hack, you are sometimes lost on which hooks are executed and in which order. You could ofcourse go check teh source files, but there is also another way:

open your includes/class_hook.php, and find:
PHP Code:
 function &fetch_hook($hookname)
 { 
Below it add:
PHP Code:
  DEVDEBUG("Fetched hook: $hookname"); 
While you are in debug mode, it will show you the list of all hooks executed. When you are saving data and are returned to another page, this will ofcourse not work, since you will not be able to see the information.

vblts.ru supports vBulletin®, 2022-2024