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.

by Zed | 07.06.02 07:57 PM

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?

by girlie | 07.06.02 08:07 PM

what line would i be replacing in the newest version of MT?

by jenn | 08.18.03 06:23 PM

The latest version of MT already includes the entry title in the subject of the notification email - so this hack is no longer necessary.

by girlie | 08.18.03 06:29 PM

oh ok thanks! lol i feel dumb now but thanks :)

by jenn | 08.18.03 06:36 PM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

TrackBack: 0
(URL: http://www.thegirliematters.com/sf/mt-track.cgi/46)