{"id":2147,"date":"2005-02-11T16:32:09","date_gmt":"2005-02-11T16:32:09","guid":{"rendered":"http:\/\/fubsy.net\/blog2\/?p=2147"},"modified":"2005-02-11T16:32:09","modified_gmt":"2005-02-11T16:32:09","slug":"mt_hacks","status":"publish","type":"post","link":"http:\/\/fubsy.net\/blog\/mt_hacks\/","title":{"rendered":"mt hacks"},"content":{"rendered":"<p>okay, so i&#8217;ve gotten the <a href=\"http:\/\/www.site5.com\/affiliates\/idevaffiliate.php?id=143\">new webhost<\/a> set up and, as i&#8217;ve mentioned, it should be visible to everyone in the next couple of days.<br \/>\nof course, since i was moving locations, i decided to upgrade to the latest and greatest version of <a href=\"http:\/\/moveabletype.org\">moveable type<\/a> while i was at it.  i really wanted to take advantage of dynamic archiving (since part of the problems i had at my last host was from my rebuilding over two thousand archive pages when i made changes to the stuff on the sidebar) and future posting, which i just think is really cool.<br \/>\none of the problems with upgrading or reinstalling mt is that i lose all the small changes i&#8217;ve made to the code to make things work the way i like them.  this upgrade also required that i upgrade <a href=\"http:\/\/www.jayallen.org\/projects\/mt-blacklist\/\">mt-blacklist<\/a> and both of the new applications have totally revamped their code since the last time i fiddled with hacks.  therefore, now that i&#8217;ve figured out where to make these changes, i&#8217;m archiving them here on the blog and making them available to anyone who googles successfully.  i couldn&#8217;t find direct answers, so i hope this will help someone somewhere.<br \/>\nfirst, is my version of the <a href=\"http:\/\/www.promoguy.net\/archives\/002159.php\">more meaningful comment notifications tweak<\/a>:<\/p>\n<div class=\"quote\">in file: <code>\/plugins\/Blacklist\/lib\/Blacklist\/App\/Sumbmission.pm<\/code><br \/>\n<u>(at or near) line 735<\/u><br \/>\nchange it from:<\/p>\n<pre>  my %head = ( To => $recipients,<\/pre>\n<pre>      From => $from_addr,<\/pre>\n<pre>      Subject =><\/pre>\n<pre>            '[' . $blog->name . '] ' .<\/pre>\n<pre>            $app->translate('New Comment Posted to \\'[_1]\\'',<\/pre>\n<pre>            $entry->title)<\/pre>\n<pre>      );<\/pre>\n<p>to:<\/p>\n<pre style=\"color:green\"># HACK:  alter the comment notification subject appearance<\/pre>\n<pre style=\"color:green\">#   was:   [freakishly prompt] New Comment Posted to 'help!'<\/pre>\n<pre style=\"color:green\">#   now:   [ help! ] by Bubba - freakishly prompt<\/pre>\n<pre style=\"color:green\"># first found at http:\/\/www.promoguy.net\/archives\/002159.php<\/pre>\n<pre>   my %head =  ( To => $recipients,<\/pre>\n<pre>      From => $from_addr,<\/pre>\n<pre>      Subject => '[ ' . $entry->title . ' ] by ' . <\/pre>\n<pre>                 $comment->author . ' - ' . $blog->name<\/pre>\n<pre>   ); <\/pre>\n<\/div>\n<p>second, my version of the <a href=\"http:\/\/www.kalsey.com\/2002\/08\/comment_notification_hack\/\">comment notification hack<\/a> (comments you make on your own blog will no longer be emailed to you):<\/p>\n<div class=\"quote\">in file: <code>\/plugins\/Blacklist\/lib\/Blacklist\/App\/Sumbmission.pm<\/code><br \/>\n<u>(at or near) line 810<\/u><br \/>\nchange it from:<\/p>\n<pre>    MT::Mail->send(\\%head, $body)<\/pre>\n<pre>        or return $app->handle_error(MT::Mail->errstr());<\/pre>\n<p>to:<\/p>\n<pre style=\"color:green\"># HACK:  prevent your own comments from being emailed to you<\/pre>\n<pre style=\"color:green\"># first found at<\/pre>\n<pre style=\"color:green\"># http:\/\/www.kalsey.com\/2002\/08\/comment_notification_hack\/<\/pre>\n<pre>    MT::Mail->send(\\%head, $body)<\/pre>\n<pre>        unless $author->email eq $comment->email;<\/pre>\n<pre style=\"color:green\">#    or return $app->handle_error(MT::Mail->errstr());<\/pre>\n<\/div>\n<p>these work for me in mt 3.15 and mt-blacklist 2.04b.  no warranties expressed or implied, your mileage may vary and i take NO responsibility for the outcome.  before you change anything, remember to save a copy of the original file.  it&#8217;s only common sense.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>okay, so i&#8217;ve gotten the new webhost set up and, as i&#8217;ve mentioned, it should be visible to everyone in the next couple of days. of course, since i was moving locations, i decided to upgrade to the latest and greatest version of moveable type while i was at it. i really wanted to take <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"http:\/\/fubsy.net\/blog\/mt_hacks\/\" class=\"more-link\"><span>Read More &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2147","post","type-post","status-publish","format-standard","hentry","category-words"],"_links":{"self":[{"href":"http:\/\/fubsy.net\/blog\/wp-json\/wp\/v2\/posts\/2147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/fubsy.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fubsy.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fubsy.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fubsy.net\/blog\/wp-json\/wp\/v2\/comments?post=2147"}],"version-history":[{"count":0,"href":"http:\/\/fubsy.net\/blog\/wp-json\/wp\/v2\/posts\/2147\/revisions"}],"wp:attachment":[{"href":"http:\/\/fubsy.net\/blog\/wp-json\/wp\/v2\/media?parent=2147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fubsy.net\/blog\/wp-json\/wp\/v2\/categories?post=2147"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fubsy.net\/blog\/wp-json\/wp\/v2\/tags?post=2147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}