{"id":1787,"date":"2004-07-24T15:51:39","date_gmt":"2004-07-24T20:51:39","guid":{"rendered":"https:\/\/www.quirkspace.com\/quirkblog\/?p=532"},"modified":"2004-07-24T15:51:39","modified_gmt":"2004-07-24T20:51:39","slug":"cool-quick-hack","status":"publish","type":"post","link":"https:\/\/www.quirkspace.com\/quirkblog\/?p=1787","title":{"rendered":"Cool quick hack"},"content":{"rendered":"<p>The comment spammers have started hitting my Wife&#8217;s blog as well as mine recently&#8230; I&#8217;ve gotten her set up with MT-Blacklist and such too, which has helped some, but there are still some comments lurking in the background that she&#8217;d like to get rid of.  Fortunately, there&#8217;s a really cool hack over at <a href=\"http:\/\/www.thegirliematters.com\/tips\/archives\/0311\/more_than_five_recent_items_on_editing_menu.php\">TheGirlieMatters<\/a> which describes how to have your Movable Type main menu show more than the five most recent entries.<br \/>\n<!--more--><br \/>\nIt&#8217;s some pretty nifty and handy code, so I hope she doesn&#8217;t mind if I quote her here in addition to linking to her:<\/p>\n<blockquote><p>\nThe code is in lib\/MT\/App\/CMS.pm, and all line numbers are based on v2.661.<\/p>\n<hr \/>\n<p><b>Entries, lines 233-236:<\/b><br \/>\n<tt><br \/>\n    my $iter = MT::Entry-&gt;load_iter({ blog_id =&gt; $blog_id },<br \/>\n        { 'sort' =&gt; 'created_on',<br \/>\n          direction =&gt; 'descend',<br \/>\n          limit =&gt; 5 });<br \/>\n<\/tt><\/p>\n<hr \/>\n<p><b>Comments, lines 254-257:<\/b><br \/>\n<tt><br \/>\n    $iter = MT::Comment-&gt;load_iter({ blog_id =&gt; $blog_id },<br \/>\n        { 'sort' =&gt; 'created_on',<br \/>\n          direction =&gt; 'descend',<br \/>\n          limit =&gt; 5 });<br \/>\n<\/tt><\/p>\n<hr \/>\n<p><b>Pings, lines 272-275:<\/b><br \/>\n<tt><br \/>\n    $iter = MT::TBPing-&gt;load_iter({ blog_id =&gt; $blog_id },<br \/>\n        { 'sort' =&gt; 'created_on',<br \/>\n          direction =&gt; 'descend',<br \/>\n          limit =&gt; 5 });<br \/>\n<\/tt><\/p>\n<p>Change <tt>5<\/tt> to the number you want to display.\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The comment spammers have started hitting my Wife&#8217;s blog as well as mine recently&#8230; I&#8217;ve gotten her set up with MT-Blacklist and such too, which has helped some, but there are still some comments lurking in the background that she&#8217;d &hellip; <a href=\"https:\/\/www.quirkspace.com\/quirkblog\/?p=1787\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[26],"class_list":["post-1787","post","type-post","status-publish","format-standard","hentry","tag-technical-notes"],"_links":{"self":[{"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=\/wp\/v2\/posts\/1787","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1787"}],"version-history":[{"count":0,"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=\/wp\/v2\/posts\/1787\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1787"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1787"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quirkspace.com\/quirkblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1787"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}