Help - Search - Members - Calendar
Full Version: Changing 'comment' email notification message?
Movable Type Community Forum > Additional Resources > Tips and Tricks
d1taylor
Here's a typical email message I get when someone posts a comment:

> A new comment has been posted on your blog The Intuitive Life, on entry #62
> (Now what?).
> http:// www.intuitive.com/ blog/mt-comments.cgi?entry_id=62

> IP Address: 216.228.168.110
> Name: discount term life insurance
> Email Address: ljans@hotmail.com
> URL: http://www.discount-life-insurance.us

> Comments:
>
> Nice article.

My question is:

Is it possible to (easily) tweak the code so that this message would also include a "delete this comment" link so I could click on that directly to remove blog spam?

That would be a nice, simple and straightforward way of dealing with the problem (for now, at least).

Suggestions? What script produces these email messages? How hard would it be to construct a delete-this-comment link??

Thanks.

Dave T.
cynics
can check tip 6 of this post on comment spam
d1taylor
Tried that hint (cool article, btw), but when I click on the "delete" link, here's what I see once I confirm that I really DO want to delete the comment:

MT::App::CMS=HASH(0x83651a4) Use of uninitialized value in concatenation (.) or string at /usr/local/etc/httpd/htdocs/intuitive/blog/lib/MT/App/CMS.pm line 1263.

The code I've added is:

$body .= "\nDelete:" .
$app->{cfg}->CGIPath . "mt.cgi?__mode=delete_confirm&" .
"_type=comment&id=".$comment->id . "&blog_id=" . $blog->id . "\n";

which sure looks 100% identical (minus the prompt) to what is shown in the link you referenced. Anyone gotten this to work??
mbaze
Go to this page, do what it says and rejoice that there are people like Jay Allen covering our backs:

Jay Allen's Killing Comment Spam for Dummies
nammer
Those HASH errors don't generally affect bog performance - if you like the option you've installed, feel free to stick with it.

Donna
kadyellebee
I'm using a technique similar to the link mentioned, and I don't seem to be getting errors with it: see Easier Edit/Removal of Comments.

Kristine
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.