Announcement

Collapse
No announcement yet.

Hooks for plugins

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Hooks for plugins

    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();
    }

    }
    flutter
    New Member
    Last edited by flutter; Sun 24 Oct '10, 1:50am.

  • #2
    You should ask for help in the thread where you got the modification.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X