What does the Template Hooks means?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Christian8a
    Senior Member
    • May 2007
    • 249
    • 3.8.x

    What does the Template Hooks means?

    Pardon my knowledge, but what does all those template hooks mean?

    $template_hook[profile_right_first]

    I see they are on the profile alot like here

    $template_hook[profile_right_first]
    $blocks[stats_mini]
    $template_hook[profile_right_mini]
    $blocks[albums]

    and how important they are, what if you remove them?
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74117

    #2
    They are input points for addons and plugins that enable coders to add custom template modifications without having to actually modify the template code. You shouldn't remove them as they will not appear in the final output if not used and they do not use any additional resources.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • mtha
      Senior Member
      • Oct 2002
      • 348
      • 3.6.x

      #3
      Originally posted by Wayne Luke
      They are input points for addons and plugins that enable coders to add custom template modifications without having to actually modify the template code. You shouldn't remove them as they will not appear in the final output if not used and they do not use any additional resources.

      Wayne,

      I have few question about the template_hooks

      is there any place that has instruction on how to use template hooks?

      is there any function similar to plugin, for template hooks, that we can add a template, and it tight with some template_hook location?

      is there a list of template_hooks somewhere?

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        This is an old list: http://www.vbulletin.org/forum/showthread.php?t=147447

        At the bottom, there is an example of how to add some text into a template hook.

        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

        • mtha
          Senior Member
          • Oct 2002
          • 348
          • 3.6.x

          #5
          Thanks, u2lynne

          Comment

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