![]() |
Hooks Manager v2
Well as the vBulletin are request extra hook locations, i find it very hard that they would be able to forfill everyones request, because if they did the php files would mostly contain hook calls, so to ease the pain of adding you're own hooks manually, i have created this addon, to add/edit/delete your own hooks using the acp! :)
Features:
File edits: 3 (admincp/plugin.php & includes/xml/cpnav_vbulletin.xml) Requirements: CHMOD all php files in your forums directory (including sub folders) to 0666, and includes/xml/hooks_vbulletin.xml to 0666 (Will not function without this done!) Enjoy :) - Zero Tolerance |
Whose been busy then :) I'll be giving this a tryout at some point.
Presumably if you upgrade your vB, you need to add all the custom hooks again - does this keep a record of the ones you have added ? |
Quote:
Once that's done really, no one would need to bug vB anymore for hook locations :) - Zero Tolerance |
Quote:
|
Quote:
- Zero Tolerance |
Hmm, this is like vBHack - a system that automatically alters your PHP files.
Don't like the idea too much ... |
Quote:
|
True, but it's only altering 1 line (for each hook), the only way it could mess up your system was if you inserted a hook onto a line where it should be, like inbetween if() and {, ofcourse you can delete the hook if errors occur (once i get the next release done).
@ Paul - That's upto you to keep things updated, the PHP will change over time, so it would be best to keep the hooks updated and ensure there in a safe place, if there nested inside a lot of code, chances are in the future it would cause problems, but if it's out of the way in a distant area, then the chance is smaller. Unfortunatly there isn't much i can do about this, even if you put in a search term to insert the hook after/below, the PHP again could be changed within the future. - Zero Tolerance |
Here's the main problem: line numbers change.
|
Quote:
- Zero Tolerance |
All times are GMT. The time now is 08:22 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:
|