Wrong Comments Appearing on Posts / Wrong Comment Count - tied to inclusion of WWW. prefix on links
Hey all, check your Article URLS and POST_ID and POST_URL fields of the Comments Link. For us the problem seems to lie with the inclusion of the prefix - www. on these links. SEE BELOW -
--------------------------------------------------------------------------------------------
Alright, I think I see what's going on. The problem seems to be tied to the inclusion of the prefix www. on the article URL and the post_id and post_url fields of the Comments Link. To see what I mean check out the comments sections of the following articles-
http://highcountrypress.com/weekly/20... - CORRECTLY LINKED COMMENTS
http://www.highcountrypress.com/weekl... - INCORRECTLY LINKED COMMENTS
only difference between the links is the www. prefix.
How to resolve - ???????? Please HELP!!!!
To see this problem as it affects the COMMENT LINK/COUNTER check out these pages -
http://www.highcountrypress.com/weekl... - CORRECTLY LINKED COMMENTS TO THE FIRST STORY
http://www.highcountrypress.com/weekl... - INCORRECTLY LINKED COMMENTS TO THE FIRST STORY
if you look at the source code of the above urls, you'll notice the problem lies in the inclusion of the prefix - www. in the post_id and post_url fields of the Comments Link Javascript Code as shown below -
CORRECTLY WORKING CODE -
var idcomments_acct = 'XXX-your-account-number';
var idcomments_post_id = 'http://highcountrypress.com/weekly/2009/08-20-09/farm_city_celebrations.htm';
var idcomments_post_url = 'http://highcountrypress.com/weekly/2009/08-20-09/farm_city_celebrations.htm';
INCORRECTLY WORKING CODE -
var idcomments_acct = 'XXX-your-account-number';
var idcomments_post_id = 'http://www.highcountrypress.com/weekly/2009/08-20-09/farm_city_celebrations.htm';
var idcomments_post_url = 'http://www.highcountrypress.com/weekly/2009/08-20-09/farm_city_celebrations.htm';
only difference between the 2 is the inclusion of the prefix www. How to resolve - for now just removing the prefix www. from all post_id and post_url fields...
--------------------------------------------------------------------------------------------
Alright, I think I see what's going on. The problem seems to be tied to the inclusion of the prefix www. on the article URL and the post_id and post_url fields of the Comments Link. To see what I mean check out the comments sections of the following articles-
http://highcountrypress.com/weekly/20... - CORRECTLY LINKED COMMENTS
http://www.highcountrypress.com/weekl... - INCORRECTLY LINKED COMMENTS
only difference between the links is the www. prefix.
How to resolve - ???????? Please HELP!!!!
To see this problem as it affects the COMMENT LINK/COUNTER check out these pages -
http://www.highcountrypress.com/weekl... - CORRECTLY LINKED COMMENTS TO THE FIRST STORY
http://www.highcountrypress.com/weekl... - INCORRECTLY LINKED COMMENTS TO THE FIRST STORY
if you look at the source code of the above urls, you'll notice the problem lies in the inclusion of the prefix - www. in the post_id and post_url fields of the Comments Link Javascript Code as shown below -
CORRECTLY WORKING CODE -
var idcomments_acct = 'XXX-your-account-number';
var idcomments_post_id = 'http://highcountrypress.com/weekly/2009/08-20-09/farm_city_celebrations.htm';
var idcomments_post_url = 'http://highcountrypress.com/weekly/2009/08-20-09/farm_city_celebrations.htm';
INCORRECTLY WORKING CODE -
var idcomments_acct = 'XXX-your-account-number';
var idcomments_post_id = 'http://www.highcountrypress.com/weekly/2009/08-20-09/farm_city_celebrations.htm';
var idcomments_post_url = 'http://www.highcountrypress.com/weekly/2009/08-20-09/farm_city_celebrations.htm';
only difference between the 2 is the inclusion of the prefix www. How to resolve - for now just removing the prefix www. from all post_id and post_url fields...
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?What CMS are you using?
Thanks,
Michael -
none. it's primarily a static, non-database-driven site w/ a few exceptions. pages are made in dreamweaver and uploaded via ftp. we use server side script includes (SSI) to add global elements, including the ID comments generic install code to all of our web pages. -
also it seems the links provided in the original post to this thread now all display the correct comments and comment #s. not sure why it's working now when it wasn't yesterday? hoping you guys resolved something? also not sure if the problem has been "FIXED" or if this is just something that's going to reoccur once again. -
Inappropriate?Please use the following JS. This will solve the multiple URL issue (www. vs no www.).
<script>
var idcomments_acct = 'YOUR ACCT ID';
var idcomments_post_id = location.href.replace(/www\./, '');
var idcomments_post_url = location.href.replace(/www\./, '');
</script>
<pan id="IDCommentsPostTitle" style="display:none"></span>
<script type='text/javascript' src='http://www.intensedebate.com/js/genericCommentWrapperV2.js'></script>
Please let me know how it goes. Thanks.
Michael -
it didn't work. you can see for yourself. the comments are wrong altogether now for this article with or without www. - http://highcountrypress.com/weekly/20...
and our homepage is again listing and linking to the wrong comments for the first story http://highcountrypress.com. What to do???? Also I had a coworker add a comment to a different article online during this process and I don't i'm getting the feeling anytime anyone adds a comment things go out of whack again. let me know what you think? it sounded promising but apparently the www. is not the cause of the problem. -
well, now about an hour later the comments are correctly linked again???? what's going on? -
We just did that. :-)
There are 2 different issues. The URL issue (www vs no www) should be solved.
Let me know if you encounter any other posts that have incorrect comments. -
Inappropriate?thanks! working like a charm for the time being. i'll keep an eye on things. thanks again.
-
Glad to hear it!
Loading Profile...


EMPLOYEE