View Full Version : Custom Hooks
1Unreal
03-03-2009, 08:31 AM
Im making a plugin, for the first time, and I need to use a hook. The hook isnt available where I need it to be so I need to add a custom one. This is possible manually but how would I do it in such a way that when I export it to share with other people the custom hook goes with it.
Does that make sense?
Thanks :)
Marco van Herwaarden
03-03-2009, 08:43 AM
To add custom hook locations to a efault vB file, you will need a code edit.
1Unreal
03-03-2009, 08:49 AM
Is it possible to put this in the XML file anywhere so when another person uploads it they will have the code edit too?
Marco van Herwaarden
03-03-2009, 08:56 AM
No, this requires a manual code edit.
1Unreal
03-03-2009, 09:19 AM
Ah...
Ill explain my situation. Hopefully its possible...
in includes/adminfunctions_templates.php it creates a CSS file. What I need to do is apply a function I have made to this CSS file before it is either saved to the database or written to a CSS file in clientscript.
Is this possible with the default hook setup?
Marco van Herwaarden
03-03-2009, 09:25 AM
There are a number of hooks available in that script.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.