Fork me on GitHub
Current release is 2.1.5 (31 Oct 2014).

Users who have not yet upgraded to 2.1 should get security release 2.0.18.14 (1 Nov 2014). We will stop providing these security releases to 2.0 at the end of this year.

Pasting Code into tag of site

edited April 2012 in Vanilla 2.0 Help

I'm trying to paste code into my forum and was told I needed to place it:

before the tag of your site's HTML file

Does anyone know where that would be in Vanilla Forums?

Really appreciate any help.

Cheers Michael

Tagged:

Best Answers

  • x00x00 MVP
    edited April 2012 Answer ✓

    Get the pockets plugin and enable it. Then go to plugin/pockets/add

    1. Name

    2. enter in Body:

    <script type="text/javascript" charset="utf-8">
       var _btq = _btq || [];
       var _punchtab_settings_badges = {
         key: "15b7d6babf70b0b7eb6f1ebf3564d914",
         position: {x: "right", y: "top"}
       };
     
       (function() {
         var pt = document.createElement('script'); pt.type = 'text/javascript'; pt.async = true;
         pt.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'static.punchtab.com/js/pb.js';
         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pt, s);
       })();
    </script>
    
    1. Select Head

    2. Select Before

    3. Save

    grep is your friend.

    mikeymccoy
  • x00x00 MVP
    Answer ✓

    that is just showing you where you can insert the pockets, you need to hide them

    plugin/pockets/hidelocations

    grep is your friend.

    mikeymccoy

Answers

Sign In or Register to comment.