Get your own customer support community
 

I have a custom site, I can't get unique comments for each page

I'm having a problem with the javascript solution on my custom written website. The problem is that the same comments show up on every page. I've tried to make each page generate a different ID for the javascript using the following php:

------------------------------------------------
echo "var idcomments_acct = 'account # here';";
echo "var idcomments_post_id ='" . $day . "' ;";
echo "var idcomments_post_url = 'http://thedailykitten.com/?knh=N". kittyhash($day) . "';";
echo "var idcomments_post_title = 'The Daily Kitten - Kitty #". $day . "';";
------------------------------------------------

This code will generate the following (this is an example for a particular page, it will be different depending on the page):

------------------------------------------------
var idcomments_acct = 'my account #';
var idcomments_post_id ='157' ;
var idcomments_post_url = 'http://thedailykitten.com/?knh=N93ld0S';
var idcomments_post_title = 'The Daily Kitten - Kitty #157';
------------------------------------------------
(I've left out the script tags)

Can you tell me why I'm not getting different comment threads for each page?

BTW, my site is http://thedailykitten.com, you can use the left/right arrows above the kitten picture to see other pages

Thanks
 
indifferent
Inappropriate?
3 people have this question

User_default_medium