The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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 ...
|
#3
|
|||
|
|||
Ok well nevermind about this all you need is the global. I didnt enable plugins as this was a fresh install and i was just testing a plugin and never made a product yet. Im a moron.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|