tips and tricks for movable type
entry title in comment notification subject
July 06, 2002
Zed posted this hack to make the entry title appear in subject line of the comment notification email.
Open lib/MT/App/Comments.pm (make a backup copy!) and look for lines 121-122:
Subject =>
'[' . $blog->name . '] New Comment Posted' );
Change to:
Subject => join '', '[', $blog->name, '] New Comment Posted on ', $entry->title );
"(Note that that's two single-quotes after the join, not one double-quote.)"
Comments
Your original as listed includes the closing ');' and the replacement doesn't. You still need the ');'
Glad you like the hack.
Hmmm, I copied straight from the post in the forum - I just looked at it and don't see a ); in your code??? Does it go at the end?
what line would i be replacing in the newest version of MT?
The latest version of MT already includes the entry title in the subject of the notification email - so this hack is no longer necessary.
oh ok thanks! lol i feel dumb now but thanks :)