Howdy, Stranger!

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

Disqus installation issues

edited February 2016 in Help! with 2.0
Hi!

I was experimenting a bit and tried to embed disqus in a Twine story, by pasting the code into a passage body, using Twine 2.0 and Harlowe.

I have two codes from Disqus: one is used by another site I am handling, and one I made specifically for this twine page.
A funny thing happens: if I copy and paste the code for the already existing site, there is no error and it works perfectly fine.
If I copy the other code, I get this:
Sorry to interrupt, but this page's code has got itself in a mess. 
.cors@http://a.disquscdn.com/next/embed/alfie.f51946af45e0b561c60f768335c9eb79.js:1:1756
.request@http://a.disquscdn.com/next/embed/alfie.f51946af45e0b561c60f768335c9eb79.js:1:6463
viglink.api@http://a.disquscdn.com/next/embed/alfie.f51946af45e0b561c60f768335c9eb79.js:1:7590http://a.disquscdn.com/next/embed/alfie.f51946af45e0b561c60f768335c9eb79.js:1:17601http://a.disquscdn.com/next/embed/alfie.f51946af45e0b561c60f768335c9eb79.js:1:11534http://a.disquscdn.com/next/embed/alfie.f51946af45e0b561c60f768335c9eb79.js:1:2650http://a.disquscdn.com/next/embed/alfie.f51946af45e0b561c60f768335c9eb79.js:1:18777http://a.disquscdn.com/next/embed/alfie.f51946af45e0b561c60f768335c9eb79.js:1:2

(This is probably due to a bug in the Twine game engine.)

Why is this so funny? Because the two codes I paste are absolutely identical.

Code 1 - works:
<div id="disqus_thread"></div>
<script>
    /**
     *  RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
     *  LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
     */
    /*
    var disqus_config = function () {
        this.page.url = PAGE_URL;  // Replace PAGE_URL with your page's canonical URL variable
        this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
    };
    */
    (function() {  // DON'T EDIT BELOW THIS LINE
        var d = document, s = d.createElement('script');
        
        s.src = '//melyanna.disqus.com/embed.js';
        
        s.setAttribute('data-timestamp', +new Date());
        (d.head || d.body).appendChild(s);
    })();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript"; rel="nofollow">comments powered by Disqus.</a></noscript>

Code 2 - doesn't work:
<div id="disqus_thread"></div>
<script>
    /**
     *  RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
     *  LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
     */
    /*
    var disqus_config = function () {
        this.page.url = PAGE_URL;  // Replace PAGE_URL with your page's canonical URL variable
        this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
    };
    */
    (function() {  // DON'T EDIT BELOW THIS LINE
        var d = document, s = d.createElement('script');
        
        s.src = '//melyanna-net.disqus.com/embed.js';
        
        s.setAttribute('data-timestamp', +new Date());
        (d.head || d.body).appendChild(s);
    })();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript"; rel="nofollow">comments powered by Disqus.</a></noscript>

Does anybody happen to have any idea why this would happen?
I consider the experiment failed and I will give up with the idea, but it bugs me that I don't know what's wrong.

Thank you. :)
Sign In or Register to comment.