Announcement

Collapse
No announcement yet.

What does the Template Hooks means?

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

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

  • #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 customization and demonstration site.
    vBulletin 5 Documentation - Updated every Friday. Report issues here.
    vBulletin 5 API - Full / Mobile
    I am not currently available for vB Messenger Chats.

    Comment


    • #3
      Originally posted by Wayne Luke View Post
      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


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


        • #5
          Thanks, u2lynne

          Comment

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