Look at the code. It defaults to 5
Thread Starter
submo6
(@submo6)
Doh! … I cant explain how I missed that…
How to I get it to show the previous plugs?
Noooooooooooooooooooooooo……… it can’t be done.
(Unless you find different and could post back. It’s been requested many times)
Thread Starter
submo6
(@submo6)
It use to be done before, in an older version of the plug-in.
Perhaps you dont understand what I am asking, and I am just wording it wrong…
If you post everyday, and people comment on every entry made..
Tuesday’s Post will show Monday’s Commenters as Plugs…
I believe I put down this as the code for the comment plugs into wordpress, to get it to show the previous commenters on the most recent post: [blockquote] <?php comment_plugger(1); ?> [/blockquote]
Thread Starter
submo6
(@submo6)
I figured it out! 🙂 YEAH ME (though I did not write the plug-in, and I cannot remember where I found it at, I did find the origional comment-plugger.php file from my old domain. I do hope you all enjoy it, and of course credit goes to the origional author….)
code <?php
/*
1. Include the code below in the index file.
2. Use one of these functions to display commenters:
<?php comment_plugger(0); ?> – show commenters from current post
<?php comment_plugger(1); ?> – show commenters from last post
*/
function comment_plugger($show = 0, $limit = 0, $sep = ‘, ‘, $none = ‘ none’) {
global $wpdb, $tablecomments, $id;
$cid = ($show) ? ($id – 1) : $id;
$request = “SELECT DISTINCT comment_author_url, comment_author FROM $tablecomments”;
$request .= ” WHERE comment_post_ID=’$cid’ AND comment_author <> ” AND comment_author_url <> ””;
$request .= ‘ ORDER BY comment_author ASC’;
$request .= ($limit > 0) ? “LIMIT $limit” : ”;
$commenters = $wpdb->get_results($request);
if ($commenters) {
$output = ”;
foreach ($commenters as $commenter) {
if (!empty($commenter->comment_author_url)) {
$output[] = ‘comment_author_url.'” title=”‘.$commenter->comment_author.'” target=”new”>’.$commenter->comment_author.’‘;
}
}
}
if (is_array($output)) {
echo implode($sep, $output);
} else {
echo $none;
}
}
?>