Help find template file

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

    Help find template file

    Hi,

    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:

    Code:
    <script>
        var refTagger = {
            settings: {
                bibleVersion: "ESV"            
            }
        };
        (function(d, t) {
            var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
            g.src = "//api.reftagger.com/v2/RefTagger.js";
            s.parentNode.insertBefore(g, s);
        }(document, "script"));
    </script>
  • glennrocksvb
    Former vBulletin Developer
    • Mar 2011
    • 4021
    • 5.7.X

    #2
    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 BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

    Comment

    Related Topics

    Collapse

    Working...