I posted an entry on my Tips Blog on how to show all comments for a particular comment author. In an effort to share the love between my blogs, I'm posting here to tell users how to use this script more dynamically: to create a link in the comment "posted by" line that, when clicked, will generate a list of all comments made by that comment author.
Required: PHP and the MySQL database option in MT
Update 04.15.04: The original code has been updated to strip tags from comment text as a precautionary measure against malicious code.
First, create a new Index Template for the script code (you'll probably want to customize it to match your site design, styles, etc. Just put the code in between the BODY tags where you want it to display). Assign an output file name with a .php extension (mine is called allcomments.php).
Remove these two lines from the code, as you won't need them:
$email = 'girlie@thegirliematters.com';
Now save your template and rebuild it. (Unless you've got some MT tags that need to be updated regularly, you may want to uncheck the "Rebuild this template automatically" box.)
The next step is to place the code for the link on any template(s) you use to display comments, inside the MTComments tags where you want it to appear:
Remember to change allcomments.php to match your output file path for the new Index Template you created. You may also need to further customize the URL if you set the Index Template to publish in a location other than your Local Site Path.
Rebuild the necessary portions of your site to generate the new links.
Caveat: you can't use the spam_protect attribute on the email address, leaving it vulnerable to spam spiders. If your commenters are consistent about the author name or URL they post with, those are viable alternatives that the script could be modified to use.

