Posts: 26
Threads: 7
Joined: Oct 2015
I would like to display all comments from all pages (That are approved) on one page.
I have successfully been able to display the total "count" of comments, but not all the comments themselves.
Any help would be appreciated.
Posts: 26
Threads: 7
Joined: Oct 2015
A little further clarification:
I can use part of the "extractor" plugin to accomplish this (last 5 or random), but it is not formatted nicely with the star ratings, etc, like the template form.php is. Maybe I could fuse the two somehow :-)
Again, thanks for the fine script and any help would be appreciated.
Posts: 26
Threads: 7
Joined: Oct 2015
Surely I am not the only one to ask for something like this :-) ... or am I?
Posts: 26
Threads: 7
Joined: Oct 2015
(21-Mar-2016, 10:17 AM)Seven Thunders Wrote: Surely I am not the only one to ask for something like this :-) ... or am I?
Update: I am able to display ALL comments from ALL pages "IF" I change in includes/templates/comments.php the following:
FROM:
PHP Code:
<?php
$cmtx_comments_query = cmtx_db_query("SELECT `id` FROM `" . $cmtx_mysql_table_prefix . "comments` WHERE `reply_to` = '0' AND `is_approved` = '1' AND `page_id` = '$cmtx_page_id' ORDER BY $cmtx_sort;");
$cmtx_perm_counter = 0;
$cmtx_exit_loop = false;
while ($cmtx_comments = cmtx_db_fetch_assoc($cmtx_comments_query)) {
cmtx_calc_permalink($cmtx_comments['id']);
if ($cmtx_exit_loop) {
break;
}
}
}
?>
to:
PHP Code:
<?php
$cmtx_page_id2 = $cmtx_page_id-1;
$cmtx_comments_query = mysql_query("SELECT * FROM comments WHERE is_approved = '1' ORDER BY dated DESC");
$cmtx_perm_counter = 0;
$cmtx_exit_loop = false;
while ($cmtx_comments = cmtx_db_fetch_assoc($cmtx_comments_query)) {
cmtx_calc_permalink($cmtx_comments['id']);
if ($cmtx_exit_loop) {
break;
}
}
}
?>
HOWEVER.... It still is dependent upon the cmtx_identifier in the referring page:
PHP Code:
<?php
$cmtx_identifier = 'MY ID';
$cmtx_reference = 'Page Description';
$cmtx_path = '';
require $cmtx_path . 'includes/commentics.php'; //don't edit this line
?>
It will display ALL of the comments for ALL pages, BUT... it will only display up to the quantity that has been approved for the cmtx_identifier listed on the page.
So... I am getting close, but no cigar just yet.