Log in

View Full Version : Using Hook in memberinfo_block_statistics


iwpg
06-19-2008, 06:39 AM
I know that the Hook system doesn't work in all areas, and I suspect that this is one of them.

I am trying to run a query on another database using an external PHP script/function based on the u variable (member.php?u=1). So far, I cannot get the hook plugin to do anything, even using globals_start on this page. As far as I have searched about options, template files cannot run custom PHP code. So it seems like I'm a little stuck on this one.

Any help will be greatly appreciated.

Thanks, Mike

Opserty
06-19-2008, 11:22 AM
Including External Files (http://www.vbulletin.com/docs/html/main/templates_externalfiles)

You may need to use $GLOBALS[includedphp] as that hook is probably executed in a class but don't quote me on it.

iwpg
06-20-2008, 07:10 PM
That was it! :D I do appreciate it. I must have overlooked that in the manual.

Thanks again,

Mike