Quote:
Originally Posted by Brad
...
The php code:
Adding a hook location to the php code is easy, just make sure you use the correct hook name! Use this bit of php anywhere after your call to global.php to call your custom hook. Also note that you must use the $hook var!
PHP Code:
($hook = vBulletinHook::fetch_hook('hook_name')) ? eval($hook) : false;
...
|
I already implemented hooks as advised in this thread and they also work.
But today I noticed Warnings in the Webserver-Logfile concerning the Lines the Hooks where called:
PHP Warning: Call-time pass-by-reference has been deprecated - argument
passed by value; If you would like to pass it by reference, modify the
declaration of [runtime function name](). If you would like to enable
call-time pass-by-reference, you can set allow_call_time_pass_reference
to true in your INI file. However, future versions may not support this
any longer. in .../includes/init.php(403) :
eval()'d code on line 52, ....
Does this mean that future PHP-versions won't support the vBulletin-Hook-System?