14-Jun-2012, 03:20 PM
How do I set the script so that the comments will display on a separate page from the form? I tired this on page two but it did not work.
<?php
define ('IN_COMMENTICS', 'true');
require "includes/db/connect.php";
require "includes/functions/page.php";
require "includes/functions/comments.php";
$page_id = "2";
$page_id = cmtx_sanitize($page_id, true, true, true);
echo cmtx_number_of_comments(10);
echo "<br/>";
echo cmtx_average_rating();
?>
<?php
define ('IN_COMMENTICS', 'true');
require "includes/db/connect.php";
require "includes/functions/page.php";
require "includes/functions/comments.php";
$page_id = "2";
$page_id = cmtx_sanitize($page_id, true, true, true);
echo cmtx_number_of_comments(10);
echo "<br/>";
echo cmtx_average_rating();
?>