Fork me on GitHub
Current releases are 2.1.1 (2 Aug 2014) and 2.0.18.13 (5 Aug 2014)
Ready for 2.1? Find out if your favorite plugins are compatible.
The 2.0 branch will no longer receive updates after Dec 2014.

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.