No announcement yet.

Inject into header template from global_start?

  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Inject into header template from global_start?

    As part of my upgrade to vB4 it seems I can no longer inject variables into header template via the global_start hook

    Obviously I changed it to the vB_Template:reRegister() method, but it doesn't work. If I make the hook global_bootstrap_init_start, all is well!

    I see TONS of examples online of preRegister() with the header template, so any idea why it wouldn't be working for me?

    To make matters worse, it appears as though my friend's setup (during our testing) which is VERY VERY similar to mine seems to work fine with the global_start hook spot.

    What gives!? SO FRUSTRATING - Need answers? Ask it online.
    Create powerful online surveys with ease in minutes!
    Sign up for your FREE account today!

  • #2
    The global_start hook location is deprecated:
    // Deprecated as of release 4.0.2, replaced by global_bootstrap_init_start
    ($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false;

    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
    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


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