Specifying only idcomments_post_url causing problems
A bit of background: our CMS (Plone) will sometimes append '/view' or '/document_view' to a url when viewing a html page. I modified the IntenseDebate script a bit to remove those offending appends using the following:
[script]
var idcomments_acct = 'my-acct-#-goes-here';
var idcomments_post_id;
// Plone sometimes appends '/view' and '/document_view' to content items
// this will cause problems w/ intensedebate if we don't remove them!
var url = "http://" + location.hostname + location.pathname;
var view = "/view";
var document_view = "/document_view";
var idcomments_post_url = url.replace(view, "").replace(document_view, "");
[/script]
From my understanding, any posts that were made to a url containing '/', '/view', or '/document_view' should show up under '/'. Last month when I enabled comments on our site AdvancedAquarist.com using this modification, this modification worked without problems. I could post a comment to any of the following urls and the comments would show up properly under the http://www.advancedaquarist.com/2009/... url:
http://www.advancedaquarist.com/2009/...
http://www.advancedaquarist.com/2009/...
http://www.advancedaquarist.com/2009/...
Today I noticed that people were commenting on articles and they were showing up only on urls that had '/view' in them. Here's an example:
http://www.advancedaquarist.com/2008/...
http://www.advancedaquarist.com/2008/...
Notice that this is the same article only with '/view' appended to the url. Also notice that there's two completely different comments at the end of the article. Based on my javascript modification above, this should not be happening but it is. Last month this was not an issue as I had tested it with all three url combinations and it showed the posts properly.
Any idea what's going on?
Shane
[script]
var idcomments_acct = 'my-acct-#-goes-here';
var idcomments_post_id;
// Plone sometimes appends '/view' and '/document_view' to content items
// this will cause problems w/ intensedebate if we don't remove them!
var url = "http://" + location.hostname + location.pathname;
var view = "/view";
var document_view = "/document_view";
var idcomments_post_url = url.replace(view, "").replace(document_view, "");
[/script]
From my understanding, any posts that were made to a url containing '/', '/view', or '/document_view' should show up under '/'. Last month when I enabled comments on our site AdvancedAquarist.com using this modification, this modification worked without problems. I could post a comment to any of the following urls and the comments would show up properly under the http://www.advancedaquarist.com/2009/... url:
http://www.advancedaquarist.com/2009/...
http://www.advancedaquarist.com/2009/...
http://www.advancedaquarist.com/2009/...
Today I noticed that people were commenting on articles and they were showing up only on urls that had '/view' in them. Here's an example:
http://www.advancedaquarist.com/2008/...
http://www.advancedaquarist.com/2008/...
Notice that this is the same article only with '/view' appended to the url. Also notice that there's two completely different comments at the end of the article. Based on my javascript modification above, this should not be happening but it is. Last month this was not an issue as I had tested it with all three url combinations and it showed the posts properly.
Any idea what's going on?
Shane
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?I apologize for the major delay - somehow this slipped through. If you are still encountering this issue can you please try setting the post id var as well?
<script>
var idcomments_acct = 'Your account number';
var idcomments_post_id; = 'Your unique post id's'
var idcomments_post_url;
</script>
<script type="text/javascript" src="http://www.intensedebate.com/js/genericLinkWrapperV2.js"></script>
Please give that a try and let me know. Again I apologize for the major delay and frustration.
Kind regards,
Michael
I’m confident
Loading Profile...



EMPLOYEE