if you have access to your page.php you can do something simple like make a new page in your admin. name it what ever you want. Make sure to make it password protected so as not to let just anyone see your visitors info.
in the page.php you can then do somehting like this:
<?php if ( isset($_COOKIE['wp-postpass_' . COOKIEHASH])
and $_COOKIE['wp-postpass_' . COOKIEHASH] == $post->post_password){
echo "<table border=\"1\">";
$result = $wpdb->get_results("SELECT comment_author,comment_author_email FROM $wpdb->comments where user_id='0' ORDER BY comment_author DESC");
foreach ($result as $results) {
echo '<tr><td style="padding: 6px; width: 180px;">' . $results->comment_author . '</td><td style="padding: 6px; width: 180px;">' . $results->comment_author_email . "</td></tr>";
}
echo "</table>";
} ?>
It will make sure the password has been entered correctly and if so build a 2 column table list the commentor and their email address. t will not list any user that has admin access only visitors whos level is 0.
Note:
if your theme is using the list_pages function, that will now add your new page to the list. You might not want that so be sure to modify that function to exclude that page ID:
http://codex.ww.wp.xz.cn/Template_Tags/wp_list_pages
(@ffitton)
16 years, 7 months ago
I’m looking for something that would generate a list or roster of people’s names and e-mails that have left comments on my blog. I assume this would be a plugin, but have yet to find one that can do it. Any advice would be greatly appreciated!
Thanks!!