CyberRanger
03-02-2006, 02:59 PM
Is there a way to manually call a plugin from within a script? Specifically, I have a plugin that I want called when a certain action occurs within an admincp custom script.
The plugin is normally called from the cron_script_cleanup hook. So, I tried adding ($hook = vBulletinHook::fetch_hook('cron_script_cleanup')) ? eval($hook) : false; to my admincp script. I got an error which I cleared by adding require_once('./includes/functions_cron.php'); to my script. Ran it again, no errors but the plugin didn't run either.
Ah ... never mind! The above method does work. :)
The plugin is normally called from the cron_script_cleanup hook. So, I tried adding ($hook = vBulletinHook::fetch_hook('cron_script_cleanup')) ? eval($hook) : false; to my admincp script. I got an error which I cleared by adding require_once('./includes/functions_cron.php'); to my script. Ran it again, no errors but the plugin didn't run either.
Ah ... never mind! The above method does work. :)