• 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?

#1
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!
 

Alfa1

Well-known member
#2
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.
 

ForestForTrees

Well-known member
#3
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.
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
 

ForestForTrees

Well-known member
#5
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.
 

FredC

Well-known member
#7
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..
 

ForestForTrees

Well-known member
#8
That's perfect. Thanks, @Alfa1.
Code:
<!-- 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 -->
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 ?
 
#12
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 ?
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.