The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom Hook Location
Hi,
I've got a script that pulls status data from another server embedded in a page on my forum, which I need to run on a custom hook (as running it on the global_bootstrap_init_start causes my site to go offline if the other server has issues). How would I go about adding a custom hook location and causing it to call when it is on a page? Thanks in advance. Regards, Ross --------------- Added [DATE]1369566201[/DATE] at [TIME]1369566201[/TIME] --------------- Create a XML file in the includes/xml file called hooks_customhook Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <hooks> <hooktype type="Custom Hook"> <hook>statusinc</hook> </hooktype> </hooks> Code:
($hook = vBulletinHook::fetch_hook('status')) ? eval($hook) : false; All fixed I had made a mistake. I have included the correct code above in case anyone else has the same issue. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|