vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=252522

Help with hooks
by flutter
24 Oct 2010 08:53

I have a plugin issue in this area of my plug in manager

Hook Location This specifies the location within the vBulletin code of the hook that will fire this plugin function.


I've tried to install a mod and it wants me to choose hooks and I have no clue about them, anyone have any advice please

Here's the bit of code that is coming up with the issue. I did look for links_navbar but it isn't there so can't choose that, I'm a novide with vb and have never came across this before


require_once(DIR . '/includes/local_links_defns.php');

if (LDM_NAVBAR_LOCATION) {

if (defined('THIS_SCRIPT') and
(
THIS_SCRIPT == LDM_LINKS_SCRIPT or THIS_SCRIPT == 'local_links'
or THIS_SCRIPT == LDM_ACTION_SCRIPT or THIS_SCRIPT == 'local_links_actions'
or THIS_SCRIPT == LDM_ADMIN_SCRIPT or THIS_SCRIPT == 'local_links_admin'
or THIS_SCRIPT == LDM_SEARCH_SCRIPT or THIS_SCRIPT == 'local_links_search'
)
) {
// Highlight ldm tab when in LDM and create actual tab and navbar
$vbulletin->options['selectednavtab'] = 'ldm';
$templater = vB_Template::create('links_navbar');
$templater->quickRegister(array(
'ldm_links_script'=>LDM_LINKS_SCRIPT,
));
$template_hook[LDM_NAVBAR_LOCATION] .= $templater->render();
}

}

I've opened the hooks xml and don't see this particular hook.

What is involved in making the hook (if I have to), is it just a matter of typing it and uploading it again? Or do I need to find the other corresponding file somewhere and edit that too?

Or is that anything like what I need to do?

Help would be appreciated as I've been working on this issue for two days now.


All times are GMT. The time now is 10:04.

Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.