PDA

View Full Version : Hook location


chikuru
02-27-2014, 03:40 PM
I added another hook location to one of the vbulletin core files.
But it doesnt show in the dropdown menu in the plugin manager inside admincp..

($hook = vBulletinHook::fetch_hook('hook_name_here')) ? eval($hook) : false;

Lynne
02-27-2014, 05:50 PM
So you only added that one line to a file somewhere? You need to add a file to the /includes/xml directory to add the hook location to the dropdown.

chikuru
02-28-2014, 06:43 AM
So you only added that one line to a file somewhere? You need to add a file to the /includes/xml directory to add the hook location to the dropdown.

I only added that single line on register.php
What else do I need to do?

cellarius
02-28-2014, 08:10 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=83390" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=83390</a>

vBNinja
02-28-2014, 12:24 PM
I only added that single line on register.php
What else do I need to do?

If you added your own hook to a vb stock file, you might as well should've directly inserted your code to it

chikuru
02-28-2014, 03:44 PM
If you added your own hook to a vb stock file, you might as well should've directly inserted your code to it

Yeah
But Im also planning to add more hooks on it in the future.
Thanks for the replies! :)