Help find template file

  • Time
  • Show
Clear All
new posts
  • William Thomas Jr
    Senior Member
    • Nov 2014
    • 526
    • 5.1.x

    Help find template file


    I'm using cool blue template in VB 5.5. I am trying to add this code which should go before the closing body tag in the footer of the correct template file. My question is where's the template file located? Here's the code below:

        var refTagger = {
            settings: {
                bibleVersion: "ESV"            
        (function(d, t) {
            var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
            g.src = "//";
            s.parentNode.insertBefore(g, s);
        }(document, "script"));
  • glennrocksvb
    Former vBulletin Developer
    • Mar 2011
    • 3955
    • 5.7.X

    Editing templates is not recommended as it will be a maintenance nightmare every time you upgrade.

    The proper way to do what you want is via template hook and inserting it at footer_before_body_end hook location. If you don't know how to create a template hook, go to one of my vB5 mods in my signature below and follow the instructions there. They are for different hooks but the instructions are similar. You just have to replace the hook title and template name and of course the template content which is the script you posted.

    Let me know if you need help.

    Flag Icon Postbit Insert GIPHY Impersonate User INITIALS AVATAR Better Name Card Quote Selected Text Collapsed PM Post Footer Translate Stop Links in Posts +MORE!


    Related Topics