{"id":13352,"date":"2009-01-14T22:36:41","date_gmt":"2009-01-15T05:36:41","guid":{"rendered":"http:\/\/hill-kleerup.org\/blog\/wp\/2009\/01\/14\/tweet.html"},"modified":"2009-01-14T22:36:41","modified_gmt":"2009-01-15T05:36:41","slug":"tweet","status":"publish","type":"post","link":"https:\/\/hill-kleerup.org\/blog\/2009\/01\/14\/tweet.html","title":{"rendered":"Tweet!"},"content":{"rendered":"<p>Okay, so it looks like I&#8217;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.<\/p>\n<p>No, I will not be now flooding the blog with descriptions of where I am, what I&#8217;m doing, what I&#8217;m eating, or what <a href=\"http:\/\/www.penny-arcade.com\/comic\/2008\/4\/23\/\" target=\"_blank\">bodily functions<\/a>&nbsp;I may be engaging in.&nbsp;&nbsp;I see it as a means to more easily blogging.<\/p>\n<p>I made use of the <a href=\"http:\/\/brandon.fuller.name\/archives\/hacks\/mttwitter\/\" target=\"_blank\">MT-Twitter<\/a> plugin to Movable Type. That&#8217;s what Doyce is using, and I let him do all the debugging and figuring out what to tweak. For those similarly inclined. The items he pointed out to change in the plugin file:<\/p>\n<p>1. At line 204, the line<\/p>\n<p><pre>$entry-&gt;title( $twitter_title . '(#' $tweet-&gt;{id} . ')' );<\/pre>\n<p>defines how the title line of the post will look. Twitter entries (&#8220;tweets,&#8221; sigh) don&#8217;t actually have titles, so the value is fixed &#8212;&nbsp;the default is a text you&nbsp;set in the&nbsp;MT-Twitter control panel in MT, plus in parens the ID of the tweet.<\/p>\n<p>Well, I don&#8217;t care about the&nbsp;tweet ID. Doyce is currently putting &#8220;(via Twitter)&#8221; in there, but I wanted something unique but useful, so that when looking at comments I can&nbsp;have some clue what it&#8217;s about. Ideally I&#8217;d have an <em>N<\/em>-word excerpt from the tweet, but&nbsp;there&#8217;s no obvious way to do that.<\/p>\n<p>Instead, I&#8217;m using the date strong used to set the date on the post. This is a bit ugly, but both readable (&#8220;Ah, someone&#8217;s commenting on my Twitter post from last June&#8221;) and unique.<\/p>\n<p><pre>$entry-&gt;title( $twitter_title . ' (at ' . jsondate2ts( $blog-&gt;id, $tweet-&gt;{created_at} ) . ')' );<\/pre>\n<p>2. A few lines down, there&#8217;s a line that begins &#8230;<\/p>\n<p><pre>$entry-&gt;text_more( 'http:\/\/twitter.com\/' ...<\/pre>\n<p>This&nbsp;line creates an extended post field with the URL for the entry on Twitter &#8212; which I don&#8217;t care about. So I commented it out.<\/p>\n<p>3. Way down at the bottom, there&#8217;s an if-block:<\/p>\n<p><pre>if ( $level == MT::Log::DEBUG() &amp;&amp; $loglevel == 0 )<\/pre>\n<p> With&nbsp;&#8220;{ return; }&#8221; lines below it. Comment that whole block out. It was causing an error, and it&#8217;s only used in debug mode.<small><\/p>\n<p>(Note &#8212; credit for digging all the above up goes to Doyce, not me.)<\/p>\n<\/p>\n<p><\/small>So, will all of this make it easier for me to actually blog, such that (more importantly) I blog more (albeit in short entries)?<\/p>\n<p>&nbsp;<\/p>\n<p>We&#8217;ll see. But it&#8217;s good to know that I can, if I want to.<\/p>\n<p>Oh, and &#8230;<\/p>\n<p><em>&#8220;I&#8217;m sitting at the table, drinking a soda, and I&#8217;m going to bed now.&#8221;<\/em>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Okay, so it looks like I&#8217;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&#8230;.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_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-13352","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":13282,"url":"https:\/\/hill-kleerup.org\/blog\/2009\/01\/31\/polishing_the_tweets.html","url_meta":{"origin":13352,"position":0},"title":"Polishing the Tweets","author":"***Dave","date":"Sat 31-Jan-09 12:45am","format":false,"excerpt":"Per Doyce's inspiration, I've tweaked things in my templates so that (if all goes well) anything I post here via Twitter will not have the \"In passing (200912021347)\" style of...","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":3676,"url":"https:\/\/hill-kleerup.org\/blog\/2002\/10\/09\/calling_securit.html","url_meta":{"origin":13352,"position":1},"title":"Calling security &#8230;","author":"***Dave","date":"Wed 9-Oct-02 7:05am","format":false,"excerpt":"Haven't installed MT 2.5 yet, but I found something I'll be installing at the same time: Brad Choate's Sanitize Plugin. Choate is one of the more prolific (and quality) MT...","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":15757,"url":"https:\/\/hill-kleerup.org\/blog\/2009\/09\/10\/wherein-daves-data-feed-becomes-still-more-convoluted.html","url_meta":{"origin":13352,"position":2},"title":"Wherein Dave&#8217;s data stream becomes still more convoluted","author":"***Dave","date":"Thu 10-Sep-09 11:04am","format":false,"excerpt":"I keep wanting to do a big chart showing how the various things I write and link to flow ... but I haven't quite gotten around to it. If I had, I'd now need to add one more arrow. I use Google Reader a lot, both to track RSS feeds\u2026","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":"https:\/\/i0.wp.com\/hill-kleerup.org\/blog\/wp\/wp-content\/uploads\/2009\/09\/google-reader_logo1.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":14343,"url":"https:\/\/hill-kleerup.org\/blog\/2009\/03\/26\/adjusting-the-twitter-volume-knob.html","url_meta":{"origin":13352,"position":3},"title":"Adjusting the Twitter volume knob","author":"***Dave","date":"Thu 26-Mar-09 11:46am","format":false,"excerpt":"I'm going to try echoing my Twitter output here on the blog as a daily digest, rather than each individual Tweet. Main reason is I'm tired of updating the titles for each one, since TwitterTools grabs the first 30 characters of the Tweet to use as the title. That, in\u2026","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":3498,"url":"https:\/\/hill-kleerup.org\/blog\/2002\/11\/06\/previousnext.html","url_meta":{"origin":13352,"position":4},"title":"Previous\/Next","author":"***Dave","date":"Wed 6-Nov-02 10:03am","format":false,"excerpt":"I make it a habit of checking out Brad Choate's Hello, World site at least once a week. He's one of the major MT plugin writers out there, and he...","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":3884,"url":"https:\/\/hill-kleerup.org\/blog\/2003\/03\/18\/chapter_and_ver.html","url_meta":{"origin":13352,"position":5},"title":"Chapter and Verse","author":"***Dave","date":"Tue 18-Mar-03 2:30pm","format":false,"excerpt":"Cool. Someone's built an MT Plugin that turns Scripture references into links to an online Bible. If I did much quoting from Scripture, it would be extremely valuable. (via Blinne)...","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\/13352","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=13352"}],"version-history":[{"count":0,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts\/13352\/revisions"}],"wp:attachment":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/media?parent=13352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/categories?post=13352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/tags?post=13352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}