Rik Brown
03-14-2007, 12:59 AM
I need to create a custom hook to move the location of a 3rd party hack. So that the hook won't get overwritten in any future vb upgrade, I created a file named hooks_custom.xml in the forums/includes/xml directory. I've created a plugin named TEST that simply has a one-line php echo statement for testing purposes and I've been able to assign that plugin via the following dropdown menu:
Plugin Manager > Product : vBulletin > TEST > Hook Location ...
... to a new hook location named "left_column_top". So the hooks_custom.xml file is being read correctly.
However, I'm not sure how to reference the hook in the template in which we are placing it. Other messages about hooks show a reference such as:
($hook = vBulletinHook::fetch_hook('left_custom_top')) ? eval($hook) : false;
... which doesn't work.
Would "vBulletinHook" need to changed to something like "customhooks" (I've tried several variation of that)?
Anyone know what I'm doing wrong?
Thanks. -- Rik
Plugin Manager > Product : vBulletin > TEST > Hook Location ...
... to a new hook location named "left_column_top". So the hooks_custom.xml file is being read correctly.
However, I'm not sure how to reference the hook in the template in which we are placing it. Other messages about hooks show a reference such as:
($hook = vBulletinHook::fetch_hook('left_custom_top')) ? eval($hook) : false;
... which doesn't work.
Would "vBulletinHook" need to changed to something like "customhooks" (I've tried several variation of that)?
Anyone know what I'm doing wrong?
Thanks. -- Rik