Very interesting. The plugin was using the hook global_start, which works for every other template I've tried. Also, in debug mode when displaying the STANDARD_ERROR template, in this case, the permissions error one might see when posting a new thread while not logged on, these are the "Hooks Called" according to the debug:
init_startup
cache_permissions
fetch_foruminfo
style_fetch
cache_templates
global_start
parse_templates
global_setup_complete
newthread_start
error_nopermission
error_fetch
forumjump
navbits
navbits_complete
error_generic
What is interesting is that global_start is listed, however the plugin wouldn't work until switched to the "error_generic" hook.
Am I misinterpretting what the debug output means when it lists the hooks? Is there something funky about using the global_start hook on the STANDARD_ERROR template?
In any case, seem to have got what I need working, but a little confused about why global_start wouldn't work with this template.
Thanks Lynn and KH_99 as always for your input!
--------------- Added [DATE]1367346967[/DATE] at [TIME]1367346967[/TIME] ---------------
KH99. You're solution got it working with the global_start hook. Any implications to using the {$GLOBALS['include']} syntax in terms of load or security?
|