PDA

View Full Version : List of hooks?


personman
06-20-2008, 01:53 PM
I haven't bought vBulletin yet because I'm not sure if the plugin hook system can do everything that I'll require. Is there a list of hooks somewhere? I know that I can always modify the core to add more hooks, but I'd like to know which ones come standard so I can see what's possible with a plugin. Is there such a list?

Thanks,
Danny

Opserty
06-20-2008, 02:03 PM
There is no full list of hooks as far as I know, however all the hooks are listed in the AdminCP. The names of the hooks would most likely be meaningless without the code that goes around them e.t.c.

It might be easier to tell us what you wanted to do and then maybe we can tell you if it possible using just the plugin system.

Boofo
06-20-2008, 02:45 PM
The hooks XML file would give you an idea of what hooks are available.

Opserty
06-20-2008, 04:29 PM
One would presume he does not have the hooks' XML file, being as he has yet to purchase the software. ;)

Boofo
06-20-2008, 04:42 PM
My bad. I didn't see that he hadn't purchased yet.

toonysnn
06-20-2008, 06:22 PM
You can create your own hooks (https://vborg.vbsupport.ru/showthread.php?t=83390&highlight=Hooks) should you not see one that you need.

silly rabbit
06-20-2008, 09:30 PM
Is there a list of hooks somewhere?
personman, just ran "findhooks.php" on my 3.7.0. forum (with BLOGS installed) and attached is a zipped text file which I created by cut & paste into my UEdit32. Apparently it dynamically runs thru every file and finds every reference in my root directories on down but it's not my invention, it's a hack listed here (https://vborg.vbsupport.ru/showthread.php?t=108977&highlight=findhooks.php)! :D

Hook Statistics (non blog)
Total Hooks: 1027
Unique Hooks: 929

(oops! ran against my upgraded 3.6.8 test forum directory with NO BLOGS plz wait . . .)

Hook Statistics (with blog)
Total Hooks: 1144
Unique Hooks: 1072

An increase in hooks indeed! The (6.4 KB) zip is the newer version,

Savvy?