{"id":13282,"date":"2009-01-31T00:45:59","date_gmt":"2009-01-31T07:45:59","guid":{"rendered":"http:\/\/hill-kleerup.org\/blog\/wp\/2009\/01\/31\/polishing-the-tweets.html"},"modified":"2009-01-31T00:45:59","modified_gmt":"2009-01-31T07:45:59","slug":"polishing_the_tweets","status":"publish","type":"post","link":"https:\/\/hill-kleerup.org\/blog\/2009\/01\/31\/polishing_the_tweets.html","title":{"rendered":"Polishing the Tweets"},"content":{"rendered":"<p>Per <a href=\"http:\/\/www.doycetesterman.com\/archives\/2009\/01\/i-have-tweaked-the-blog.html\" target=\"_blank\">Doyce&#8217;s inspiration<\/a>, I&#8217;ve tweaked things in my templates so that (if all goes well) anything I post here via Twitter will not have the &#8220;In passing (200912021347)&#8221; style of title, but instead excerpt the first five words of the post as the title.&nbsp;<\/p>\n<p>This isn&#8217;t actually changing the post title (Twitter doesn&#8217;t have any such thing, so it can&#8217;t be passed along from it; instead, it&#8217;s generated by the MT-Twitter plug-in), but is manipulating the underlying Movable Type templates to include code that looks like this:<\/p>\n<blockquote dir=\"ltr\" style=\"MARGIN-RIGHT: 0px\">\n<p>&lt;mt:IfCategory name=&#8221;Tweets&#8221;&gt;<br \/> &lt;$mt:EntryExcerpt words=&#8221;5&#8243;$&gt;<br \/> &lt;mt:Else&gt;<br \/> &lt;$MTEntryTitle$&gt;<br \/> &lt;\/mt:IfCategory&gt;<\/p>\n<\/blockquote>\n<p>I&#8217;ve done this in the usual index and archive templates, in the bits of code that show the latest comments at the top of the index page, and in the Atom\/RSS feeds (I believe). There are a few unlikely places that you might still see it show up, and I&#8217;ll still see the true &#8220;In Passing&#8221; title inside of MT, but I think I can live with that.<\/p>\n<p>Now I just need to bear in mind that the first five words I put in are title-worthy.<\/p>\n<p>(I&#8217;m doing this because it&#8217;s been bugging me, I&#8217;ve been meaning to do it, and I suspect I may do a Tweet or two tomorrow and wanted this in place &#8212; which means I&#8217;ll probably come home to see how broken I&#8217;ve made the whole thing. \ud83d\ude1b )<\/p>\n<p>For the record, since it&#8217;s been asked, and if I don&#8217;t write it down someplace I&#8217;ll forget, I generate that underlying Tweet title by specifying the &#8220;In Passing&#8221; in the MT-Twitter control panel, and then create the rather ugly date-time string by&nbsp;changing in the Twitter.pl file&nbsp;this &#8230;<\/p>\n<blockquote dir=\"ltr\" style=\"MARGIN-RIGHT: 0px\">\n<p>$entry-&gt;title( $twitter_title . &#8216; (#&#8217; . $tweet-&gt;{id} . &#8216;)&#8217; );<\/p>\n<\/blockquote>\n<p>&#8230; to this &#8230;<\/p>\n<blockquote dir=\"ltr\" style=\"MARGIN-RIGHT: 0px\">\n<p>$entry-&gt;title( $twitter_title . &#8216; (at &#8216; . jsondate2ts( $blog-&gt;id, $tweet-&gt;{created_at} ) . &#8216;)&#8217; );<\/p>\n<\/blockquote>\n<p dir=\"ltr\"> And that&#8217;s probably about as technical as I should be at this hour of the night. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Per Doyce&#8217;s inspiration, I&#8217;ve tweaked things in my templates so that (if all goes well) anything I post here via Twitter will not have the &#8220;In passing (200912021347)&#8221; style of&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[55],"tags":[],"class_list":["post-13282","post","type-post","status-publish","format-standard","hentry","category-blogging-technical"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":6239,"url":"https:\/\/hill-kleerup.org\/blog\/2004\/10\/04\/mt_dynamic_publ.html","url_meta":{"origin":13282,"position":0},"title":"MT dynamic publishing notes (yet again)","author":"***Dave","date":"Mon 4-Oct-04 2:00pm","format":false,"excerpt":"Okay, here's the good news: I figured out what was wrong with the dynamic publishing options I had set for my main blog (this one). In my IDC blog (\/blog\/idc\/),...","rel":"","context":"In &quot;Blogging &amp; Internet&quot;","block_context":{"text":"Blogging &amp; Internet","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":13352,"url":"https:\/\/hill-kleerup.org\/blog\/2009\/01\/14\/tweet.html","url_meta":{"origin":13282,"position":1},"title":"Tweet!","author":"***Dave","date":"Wed 14-Jan-09 10:36pm","format":false,"excerpt":"Okay, so it looks like I've gotten the Twitter-to-MT thing working. Yay! Easy (if short) blogging from the road, by just sending an SMS message to Twitter from my mobile....","rel":"","context":"In &quot;Blogging - Technical&quot;","block_context":{"text":"Blogging - Technical","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging\/blogging-technical"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12520,"url":"https:\/\/hill-kleerup.org\/blog\/2008\/04\/03\/movable_type_static_publi.html","url_meta":{"origin":13282,"position":2},"title":"Movable Type: static publishing with dynamic CGI script names","author":"***Dave","date":"Thu 3-Apr-08 3:20pm","format":false,"excerpt":"Well, that little digression turned into a big time sink. A few weeks back I converted my WIST quotations site into a static published site, rather than dynamic. That took...","rel":"","context":"In &quot;Blogging - Technical&quot;","block_context":{"text":"Blogging - Technical","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging\/blogging-technical"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":11991,"url":"https:\/\/hill-kleerup.org\/blog\/2007\/12\/17\/mt_41_beta.html","url_meta":{"origin":13282,"position":3},"title":"MT 4.1 beta","author":"***Dave","date":"Mon 17-Dec-07 3:25pm","format":false,"excerpt":"Of course, I'm not yet at MT 4.0, and I still don't understand the branching between MTn and MT Open Source, but ... MT 4.1 is going into beta. It's...","rel":"","context":"In &quot;Blogging &amp; Internet&quot;","block_context":{"text":"Blogging &amp; Internet","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":6270,"url":"https:\/\/hill-kleerup.org\/blog\/2004\/09\/29\/mt3_dynamic_pub.html","url_meta":{"origin":13282,"position":4},"title":"MT3, dynamic publishing, and SmartyPants","author":"***Dave","date":"Wed 29-Sep-04 11:59am","format":false,"excerpt":"SmartyPants is a text modifier that can be used to turn straight quotes to \"curly quotes\", dashes to em-dashes -- as they say -- dots to ellipses ... etc. I've...","rel":"","context":"In &quot;Blogging &amp; Internet&quot;","block_context":{"text":"Blogging &amp; Internet","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9998,"url":"https:\/\/hill-kleerup.org\/blog\/2006\/09\/28\/slower_than_molasses_in_e.html","url_meta":{"origin":13282,"position":5},"title":"Slower than molasses in &#8230; er &#8230; September","author":"***Dave","date":"Thu 28-Sep-06 8:20am","format":false,"excerpt":"Yes, I'm aware that since I upgraded to MT 3.32, stuff here has been slooooow. Just like you, I'm getting comments that time out (System Error 500), or just take...","rel":"","context":"In &quot;Blogging &amp; Internet&quot;","block_context":{"text":"Blogging &amp; Internet","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts\/13282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/comments?post=13282"}],"version-history":[{"count":0,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts\/13282\/revisions"}],"wp:attachment":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/media?parent=13282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/categories?post=13282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/tags?post=13282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}