hooks issue on 4.2.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • flox80
    New Member
    • Nov 2016
    • 15
    • 5.2.x

    hooks issue on 4.2.4

    Hello,

    I've been trying to add some simple html hooks, but I can not get it to show at all. Below I tried to add a very simple html on the top of the page.

    1. Plugin manager, add new plugin

    Product: Vbulletin
    Hook location: global_start
    Title: $includedhtml
    Execution order: 1
    Plugin PHP code: $includedhtml = implode('', file('/home/web1/*****************.com/htdocs/test4567.html'));
    Plugin is active: Yes

    2. Styles&Templates - Search in templates - found the header for the default style
    inserted at the beginning: {vb:raw includedhtml}

    In Options - Plugin/Hook System - Yes

    Am i missing something? Any input would be really helpful.

    Thank you.



  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24287
    • 6.0.X

    #2
    Apart from anything else, you need to register the variable for use in the template.

    For help with custom coding, please ask over on www.vbulletin.org, the modification and customisation site. There is also an article on registering variables there.
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 74132

      #3
      How you are including your HTML file is incorrect. You will need to register a variable, assign the html to a variable and then edit a template to show that variable. You can find more information at www.vbulletin.org.
      Translations provided by Google.

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

      Comment

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