![]() |
hooks in external page
Possible? I cant seem to get a hook to work in an external page. I included the global file, is there anything else i need to include. I add a hook in vb.
In my external page i put ($customhook = vBulletinHook::fetch_hook('mycustomhook')) ? eval($customhook) : false; But it always returns false. I made a plugin on Vbulletin that is active. i tried echo "test hook"; i also tried $testhook = "testing hook"; type of thing. none of those work as it always returns false and wont evaluate. Is there something im not doing? Thanks. |
you must create a file called hooks_yourproduct.xml (product can be set to "vbulletin") also vBulletinHook is defined in /includes/class_hook.php not global.php have a look at /includes/xml/hooks_vbulletin.xml on howto do that ...
|
Quote:
|
All times are GMT. The time now is 07:12 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:
|