solved Disqus Module Acting Strange?

Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
8 years ago
831 posts
So i put disqus on my site and i love it it has been generating lots of comments from non members on blogs and such but something i noticed when i get the email notification from disqus to show someone has replied to my comment it is telling me the comment is on a diff link for instance
I comment on a blog and someone responds and i get an email saying someone replied to my comment on a youtube video? and even if i click the link in the email it takes me to that video but if i travel my site to the blog where the discussion is taking place all is in its place as well ? did i set something up incorrectly of is this a glitch?
updated by @zachary-moonshine: 09/09/17 08:56:34AM
brian
@brian
8 years ago
10,149 posts
The Jamroom Disqus module does not sent out notifications, so those would be coming from Disqus - you'd want to contact them to see if it's something messed up on their end.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
8 years ago
831 posts
i know but doesn't jamroom communicate with disqus as far as what links to send back too?
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
8 years ago
831 posts
i posted something in there bug reporting area seems some others are having similar issue must be some update they did i dont know lol surely they will fix it soon
updated by @zachary-moonshine: 05/24/17 04:21:12PM
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
8 years ago
831 posts
Ok i just noticed something and wonder if this has anything to do with it
the blog link is
http://metaldevastationradio.com/thebeast/blog/596/did-chris-cornell-kill-himself-or-was-he-murdered
and the video link is
http://metaldevastationradio.com/eynomia/youtube/596/break-free-teaser
notice the numbers 596 show in both urls and this is one of 2 instances where this is happening all the other items on site seem to be working fine not mixing.
so i tried something using the url redirect module and try redirecting the video url to the blog url but still does not work ?
michael
@michael
8 years ago
7,805 posts
Docs: "Disqus Comments"
https://www.jamroom.net/the-jamroom-network/documentation/modules/1348/disqus-comments

the number will make no difference if the template is setup correctly because the module's name will be an identifier.
{jrDisqus_comments disqus_identifier="jrBlog_`$item._item_id`"}
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
8 years ago
831 posts
Not sure where to locate that but i never messed with the templates of disqus just installed it the way it came?
Another strange thing is if you look at both the links i posted they have the exact same comment threads on both pages so when people comment on the blog it actually posts the comments on both the blog and the video ?
michael
@michael
8 years ago
7,805 posts
Yeah, your page has the wrong code for sure:
http://metaldevastationradio.com/thebeast/blog/596/did-chris-cornell-kill-himself-or-was-he-murdered
                                       
<div class="item">
    <div id="disqus_thread"></div>
    <script type="text/javascript">
        var disqus_shortname = 'metal-devastation-radio';
        var disqus_developer = 1;
                var disqus_identifier = 'jrDisqus_596';
                (function() {
            var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
            dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
        })();
    </script>
    <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
    <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</div>
That var disqus_identifier = 'jrDisqus_596'; should be
var disqus_identifier = 'jrBlog_596';
for the blog page.

I'll setup a dev environment to test whats happening. If you've done nothing to the templates that's going to effect others.
brian
@brian
8 years ago
10,149 posts
I've put in a small change on your site that should hopefully fix this up - let me know if that looks better.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
8 years ago
831 posts
thanks man i cant see any difference in the way it looks, it looks fine but the comments on that particular blog are still posting on both links. If its just stuck that way on that particular post i wish i could at least redirect the url from the video to the blog so when people respond to the email disqus sends them they will go back to the right place for that post. i tried using the url redirect module but must have not done something right i dont know?
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
8 years ago
831 posts
now all the comments are gone from the blog and only showing on the video?
Capture.PNG.png
Capture.PNG.png  •  72KB

brian
@brian
8 years ago
10,149 posts
That sounds correct - I apologize, but if different URLs had the same ID number in them, then only ONE of them is going to show the previous comments now. There's no other way to move forward with this, since the identifier that was being used was based just on the ID and not the module+ID. NEW comments on the blog should work going forward.

Let me know if that helps.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
8 years ago
831 posts
lolouch that hurts 40 comments aaaahhh... ohh well i hope this fixes it then atleast thanks brian