How do I hack MT so that I don't receive a notification when I post a comment to my own site? I tried an old hack but it didn't work in the current MT version.
Thanks!
Jill
urbandyke
Feb 24 2003, 08:24 AM
Hi Jill.
CODE
lib/MT/App/Comments.pm
/* No email notification on own comments */ CHANGE THIS: MT::Mail->send(\%head, <BODY);
TO THIS: MT::Mail->send(\%head, $body) unless $author->email eq $comment->email;
persnit
Feb 24 2003, 08:36 AM
Thanks. Tried it but I am still getting the email. Did a full rebuild after uploading the file too. Can't figure out why it isn't working. LOL
urbandyke
Feb 24 2003, 09:19 AM
is your email address correct in your profile? that was the problem i had.. :D
persnit
Feb 24 2003, 09:24 AM
OMG care to guess what silly thing it was? I have two copies of the comments.pm file. The original and an altered one I keep in a seperate folder on my pc. I somehow managed to alter the original and was uploading the UN-altered copy. LOL!!!!!!!!! Boy do I feel stupid now. LOL
Thanks for your help!
Jill
urbandyke
Feb 24 2003, 09:25 AM
That is weiiird. Sorry I couldn't help more. :)
persnit
Feb 24 2003, 09:30 AM
LOL I was editing my post as you posted your reply. All fixed. See my silly mistake in the above reply. *blush*
wujimon
Mar 12 2003, 10:17 PM
Hi. Is there a way to check the entry author and comment author instead of using the email?
I've tried the following variations and none of them seemed to work.