[quote='Steven' pid='4343' dateline='1372593229']
Hi Dwaipayan,
In the integration code, you need to make sure that the $cmtx_identifier variable ($cmtx_page_id in previous versions) has a different value for each page.
The way that you have it set up at the moment is on every page the $cmtx_identifier is the same.
<?php
$cmtx_identifier = '1';
//this should be a different value for each page
$cmtx_reference = 'Page One';
$cmtx_path = 'comments/';
define('IN_COMMENTICS', 'true'); //no need to edit this line
require $cmtx_path . 'includes/commentics.php'; //no need to edit this line
?>
Why not get the page url :
Code:
[quote]<?php
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
?>
And then use the values to retrive the comments
Code:
<?php
$cmtx_identifier = curPageURL();
$cmtx_reference = curPageURL();
$cmtx_path = 'comments/';
define('IN_COMMENTICS', 'true'); //no need to edit this line
require $cmtx_path . 'includes/commentics.php'; //no need to edit this line
?>