Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Please upgrade to 2.1.x here. The 2.0 branch is no longer being updated.
Current version is 2.1.11, released 12 June.

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.