No announcement yet.

Include javascript file in create thread page

  • Filter
  • Time
  • Show
Clear All
new posts

  • Include javascript file in create thread page

    I want to run some Jquery code when we try to create a thread's first post. Where is the step by step instruction or help do add a js file?

    Why always I find useless results in Google about vBulletin questions?

  • #2
    You can add an HTML module and add JavaScript code in there. We cannot offer any support for custom code however.

    Questions about the quality of Google results should be addressed to Google, we have no influence over what Google chooses to show.

    TalkNewsUK - My vBulletin 5.5.6 Demo
    AdminAmmo - My Cloud Demo


    • #3
      I would suggest a template hook over a module. The editor has several template hooks that may suit your purpose. Or you can simply add it to one of the footer template hooks on your page. However, you request is really vague so suggesting a number of steps to implement it is difficult.

      To use template hooks, you would put your custom code in a new custom template (Add New Template in the Options Dropdown in the Style Manager). Then assign that template to a hook under Hooks & Products -> Manage Template Hooks. Your new template will be included at the hook location selected.
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API - Full / Mobile
      Vote for your favorite feature requests and the bugs you want to see fixed.


      • #4
        Can you please help me with it's documentation? I'll study and do. I need to inject a javascript file which will do something.


        • #5
          What does the jQuery code you're inserting do?

          GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!


          Related Topics