1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

is anyone running TYNT on xenforo 1.2.4?

Discussion in 'Forum Management' started by Lee123456789, Dec 24, 2013.

  1. Lee123456789

    Lee123456789 Member

    and if you are how did you get it working?
    I currently have the javascript in
    Page_contaniner_js_head.....Like this:

    Code:
        <script src="{$jQuerySource}"></script>   
        <xen:if is="{$jQuerySource} != {$jQuerySourceLocal}">
            <script>if (!window.jQuery) { document.write('<scr'+'ipt type="text/javascript" src="{$jQuerySourceLocal}"><\/scr'+'ipt>'); }</script>
        </xen:if><xen:if is="{$xenOptions.uncompressedJs} == 1 OR {$xenOptions.uncompressedJs} == 3">
        <script src="{$javaScriptSource}/jquery/jquery.xenforo.rollup.js?_v={$xenOptions.jsVersion}"></script></xen:if>   
        <script src="{xen:helper javaScriptUrl, '{$javaScriptSource}/xenforo/xenforo.js?_v={$xenOptions.jsVersion}'}"></script>
    <!--XenForo_Require:JS-->
    <!-- BEGIN Tynt Script -->
    <script type="text/javascript">
    if(document.location.protocol=='http:'){
    var Tynt=Tynt||[];Tynt.push('cnB7hMBdir46Ghacwqm_6l');
    (function(){var s=document.createElement('script');s.async="async";s.type="text/javascript";s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();
    }
    </script>
    <!-- END Tynt Script -->
    but I can not get it to verify the code on the TYNT website!

    anyone got any pointers?

    thanks in advance!
     
  2. Alfa1

    Alfa1 Well-Known Member

    Mind that Tynt can slow down your website significantly. I know this does not answer your question, but its something to keep an eye on once you get it working.
     
  3. ForestForTrees

    ForestForTrees Well-Known Member

    I checked out Tynt and it seems fairly compelling. I'd love to get more information about how people copy and paste. I'd also love to add one of of those "Read More..." links at the bottom of copied content.

    @Alfa1, can you tell us more about how it slows down the site? Is it just loading Javascript that slows it down? Does something else go on?

    For anyone else curious:
    http://www.tynt.com/
    Interview with Robert Scoble (?) and Tynt CEO
     
  4. Alfa1

    Alfa1 Well-Known Member

    Yes, its the loading of the javascript that slows it down. This seems to be dependent upon where the user is located.
     
  5. ForestForTrees

    ForestForTrees Well-Known Member

    I wonder if it might be possible to use some sort of HTML directive to tell the browser that a javascript library isn't worth blocking the page load for. For example, I've noticed in the Firebug Net panel and in the corresponding tool in Chrome that many files load after the page displays. For example, many things load after the javascript DOMContentLoaded event has fired and some even load after Firebug says that the page is completely loaded. Perhaps that is because these things are in iframes and the browser doesn't mind displaying the page before the iframes are loaded. Either way, I'm wondering if it might be possible to do something like this to tell the browser that it can display the page before the tynt javascript (or some other library that won't be used until the user has had a second or two to read the page) is fully loaded. The question is beyond my level, but you seem very well informed about such things.
     
  6. Alfa1

    Alfa1 Well-Known Member

  7. FredC

    FredC Well-Known Member

    Hmm I'm also using tynt but have it disabled for registered users.. Been so long since I've seen it in action I forgot how it even works although I still get the email reports..
     
  8. ForestForTrees

    ForestForTrees Well-Known Member

    That's perfect. Thanks, @Alfa1.
    Reviewing the code above, it looks like the Tynt Javascript is loaded asynchronously, (s.async="async"; ). If we are lucky, the new version that @Lee123456789 is using won't be as slow as previous versions.

    How do you like the software, @VonDoom? Did you ever get it to work right, @Lee123456789 ?
     
  9. Alfa1

    Alfa1 Well-Known Member

    The email reports by Tynt seem somewhat bogus to me, because the reports do not add up to the Google Analytics stats.

    Anyway, I do not see the need for this simple function to be hosted by a third party. I'll probably create the same function (but locally hosted) and release it here.
     
  10. ForestForTrees

    ForestForTrees Well-Known Member

    That sounds terrific!
     
  11. FredC

    FredC Well-Known Member

    Yeah it works right and has for quite sometime my biggest challenge was making it guest only. However I'm torn regarding its usefulness.. On one hand every little bit helps in regards to traffic bit on the other hands it's built in analytics don't show any real significant use..
     
    ForestForTrees likes this.
  12. Lee123456789

    Lee123456789 Member

    I did get it working, every thing was correct but it appears that it takes a couple of days to sync with the tynt servers.
     
    ForestForTrees likes this.
  13. ForestForTrees

    ForestForTrees Well-Known Member

    Thanks for the follow up.
     

Share This Page