vB4 Hook Locations
1 Attachment(s)
These locations are as of [S]vBulletin 4 Beta 4[/S] vBulletin 4.0.2, and will be updated as necessary.
Template Hooks This list was generated by the following command using /install/vbulletin-style.xml: For new style hooks: Code:
grep -o "{vb:raw template_hook.*\?}" vbulletin-style.xml > thooks.txt Code:
grep -o "template_hook\[.*\?\]" vbulletin-style.xml > thooks2.txt Code:
{vb:raw template_hook.albumbit_start} PHP/File Hooks This list was generated by the following command while in the vB 4 root upload folder: Code:
find . | xargs grep -o "fetch_hook('.*\?')" > hooks.txt The list is attached, as it is way too long to post here. |
Just the thing I was looking for. TY
|
Quote:
The format is ./usernote.php:fetch_hook('usernote_start') what means .({filename}:fetch_hook{hook} so you should maybe delete the .( and fetch_hook ;) Also what's the benefit from this lists? How should they make the developer's life easier?*g* |
For plugin hooks, why don't just open includes/hooks_vbulletin.xml? I always look for useful hooks from that file and guess the script where that hook should be placed. Or, of course, do a quick file search if no guessing matched :D
|
You also see them on the pluginspage(if they are "registered in the hook xml file;)
|
Nice List this has came in handy a few times.
|
Is there any easy way to find out in what order the hooks are executed for a certain page? Sure I can activate debug mode, but that just shows me the hooks that are active and called, not all of them.
(Debug mode is activated by inserting the following in config.php) Code:
$config['Misc']['debug'] = true; |
Which is the hook location for a plugin that send output for:
ad_showthread_firstpost template? |
Does anybody know the hook location for adding a field to the newthread template form?
|
Thanks you so much, this is so far my favorit... Need this for creating..
|
All times are GMT. The time now is 03:34 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|