![]() |
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"?> 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. |
All times are GMT. The time now is 05:05 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:
|