<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>The Composing Stick</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/" />
    <link rel="self" type="application/atom+xml" href="http://www.composing-stick.net/atom.xml" />
    <id>tag:www.composing-stick.net,2008-08-24://1</id>
    <updated>2008-11-22T23:31:42Z</updated>
    
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type Commercial 4.21-en</generator>

<entry>
    <title>Getting Help with Movable Type</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/11/getting-help-with-movable-type.html" />
    <id>tag:www.composing-stick.net,2008://1.26</id>

    <published>2008-11-22T23:31:38Z</published>
    <updated>2008-11-22T23:31:42Z</updated>

    <summary>No matter what the product or service, at some point in time your are going to be staring at a strange error message, a dead television screen or a punctured inflatable novelty toy. Face it, at some point in your...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>No matter what the product or service, at some point in time your are going to be staring at a strange error message, a dead television screen or a punctured inflatable novelty toy. Face it, at some point in your life you are going to need to get help or support.</p>  <p>If you have paid support all you need to do is login at <a href="http://www.movabletype.com">www.movabletype.com</a> and click on the <em>Open a New Ticket</em> link. In my experience the support offered has been timely and accurate.</p>  <p>Without paid support you have two options:</p>  <ol>   <li>Bitch and Whine on your blog, twitter and any number of social media sites. This is a bit like complaining in a coffee shop about the poor performance of you cellphone in the vain hope someone from the manufacturer is in earshot sipping a cappuccino and fixes&#160; it there and then. It probably won't help, but it might make you feel a bit better.     <br /></li>    <li>Go to the community for help.</li> </ol>  <p>There are two sites you can visit to get help from the community,&#160; <a href="http://forums.movabletype.org">forums.movabletype.org</a> and <a href="http://forums.sixapart.com">forums.sixapart.com</a>. </p>  <p>A few suggestions about posting</p>  <ol>   <li><strong>Post Titles.</strong> You should try and summarise your problem in the post title. <em>HELP!!!!</em> doesn't say anything about your problem. <em>Sidebar is pushed to the bottom of entries</em>, gives us more of an idea and maybe someone quickly scanning the forum post titles will see it and know the answer.</li>    <li><strong>The Details.</strong> You should include the version of Movable Type and any other useful information, for example; If you are having problem with your layouts a link to your site is needed. If you are getting 500 errors then the output of mt-check would be useful or knowing that it does not run. </li> </ol>  <p>If your question is complicated then you may need to wait while someone may need to replicate the problem or test a solution. </p>
]]>
        

    </content>
</entry>

<entry>
    <title>Changing Number of Columns on a Page</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/11/changing-number-of-columns-on-a-page.html" />
    <id>tag:www.composing-stick.net,2008://1.25</id>

    <published>2008-11-16T19:51:19Z</published>
    <updated>2008-11-16T19:51:20Z</updated>

    <summary>Movable Type has a number of standard column layouts accessible through the styles menu. This can also be accessed through templates so that you can change layout depending on the content. What you need to do is set the page_layout...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>Movable Type has a number of standard column layouts accessible through the styles menu. This can also be accessed through templates so that you can change layout depending on the content.</p>  <p>What you need to do is set the page_layout at the start of the page like so:</p>  <pre>&lt;MTSetVar name=&quot;page_layout&quot; value=&quot;layout-wt&quot;&gt;</pre>

<p>the value can be any of the following:</p>

<pre>layout-wtt &lt;-- Wide, Thin, Thin
layout-twt &lt;-- Thin, Wide, Thin
layout-wt &lt;-- Wide, Thin
layout-tw &lt;-- Thin, Wide
layout-wm &lt;-- Wide, Medium
layout-mw &lt;-- Medium, Wide</pre>

<p>&#160;</p>

<p>By placing the code in a conditional statement and using private tags you can change the layout of pages or entries just by setting a tag. </p>
]]>
        

    </content>
</entry>

<entry>
    <title>Creating a Clickable Header in Movable Type</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/10/creating-a-clickable-header-in-movable-type.html" />
    <id>tag:www.composing-stick.net,2008://1.23</id>

    <published>2008-10-25T14:40:02Z</published>
    <updated>2008-10-25T18:28:51Z</updated>

    <summary>A question that comes up every so often on the Movable Type message boards is how to create a clickable banner that links back to the blog homepage. The answer depends very much on how the banner has been added...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="How To" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>A question that comes up every so often on the Movable Type message boards is how to create a clickable banner that links back to the blog homepage. The answer depends very much on how the banner has been added to the page. One way is an img link in the HTML, this can be wrapped in an anchor tag the same way as any other link. Below is a sample Banner Header template that does just that.</p>

<pre><code>&lt;div id="header"&gt;
&lt;div id="header-inner"&gt;
&lt;div id="header-content"&gt;
&lt;mt:Ignore&gt;&lt;!-- Use h1 and h2 html tags on the main index of the blog as the title, use divs on all other pages where there are page titles. --&gt;&lt;/mt:Ignore&gt;
&lt;a href="&lt;$mt:BlogURL$&gt;" accesskey="1"&gt;&lt;img src="&lt;$mt:BlogURL$&gt;header.jpg" alt="&lt;$mt:BlogName encode_html='1'" height="150" width="900"/&gt;&lt;/a&gt;
&lt;mt:If name="main_index"&gt;
&lt;h1 id="header-name"&gt;&lt;a href="&lt;$mt:BlogURL$&gt;" accesskey="1"&gt;&lt;$mt:BlogName encode_html="1"$&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="header-description"&gt;&lt;$mt:BlogDescription$&gt;&lt;/h2&gt;
&lt;mt:Else&gt;
&lt;div id="header-name"&gt;&lt;a href="&lt;$mt:BlogURL$&gt;" accesskey="1"&gt;&lt;$mt:BlogName encode_html="1"$&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div id="header-description"&gt;&lt;$mt:BlogDescription$&gt;&lt;/div&gt;
&lt;/mt:If&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>A lot of the default templates that come with Movable Type use CSS to place a header image on the page. If this is the case you will need to use a little piece of JavaScript to achive the same effect. Below is a modified Banner Header template.</p>

<pre><code> &lt;div id="header" onClick="window.location='&lt;$mt:BlogURL$&gt;'"&gt;
 &lt;div id="header-inner"&gt;
 &lt;div id="header-content"&gt;
 &lt;mt:Ignore&gt;&lt;!-- Use h1 and h2 html tags on the main index of the blog as the title, use divs on all other pages where there are page titles. --&gt;&lt;/mt:Ignore&gt;
 &lt;mt:If name="main_index"&gt;
 &lt;h1 id="header-name"&gt;&lt;a href="&lt;$mt:BlogURL$&gt;" accesskey="1"&gt;&lt;$mt:BlogName encode_html="1"$&gt;&lt;/a&gt;&lt;/h1&gt;
 &lt;h2 id="header-description"&gt;&lt;$mt:BlogDescription$&gt;&lt;/h2&gt;
 &lt;mt:Else&gt;
 &lt;div id="header-name"&gt;&lt;a href="&lt;$mt:BlogURL$&gt;" accesskey="1"&gt;&lt;$mt:BlogName encode_html="1"$&gt;&lt;/a&gt;&lt;/div&gt;
 &lt;div id="header-description"&gt;&lt;$mt:BlogDescription$&gt;&lt;/div&gt;
 &lt;/mt:If&gt;
 &lt;/div&gt;
 &lt;/div&gt;
 &lt;/div&gt;
</code></pre>

<p>All we have done is add an onClick event to the header. Users that click in the header will then trigger the JavaScript which mimics clicking on a link.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>So You Want To Write A Movable Type Plugin?</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/10/so-you-want-to-write-a-movable-type-plugin.html" />
    <id>tag:www.composing-stick.net,2008://1.22</id>

    <published>2008-10-18T13:21:36Z</published>
    <updated>2008-10-18T13:32:40Z</updated>

    <summary>One of the great things about Movable Type is it&apos;s flexibility. Behind the scenes is a powerful system that can be used to expand the functionality offered, plugins. Six Apart have run some training courses on Hacking Movable Type, the...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="How To" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[One of the great things about Movable Type is it's flexibility. Behind the scenes is a powerful system that can be used to expand the functionality offered, plugins.

Six Apart have run some training courses on Hacking Movable Type, the presentations for this two day course have now been put up on slide share and are a useful resource for those wishing to understand the how to write a Movable Type plugin.

I will be using these as part of a series of posts on creating some simple plugins, these will provide a friendly front end to features that can otherwise achieved through template code. 

<div style="width:425px;text-align:left" id="__ss_658189"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/byrnereese/hacking-movable-type-training-day-1-presentation?type=powerpoint" title="Hacking Movable Type Training - Day 1">Hacking Movable Type Training - Day 1</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=hacking-mt-training-day-1-1224017225109480-9&stripped_title=hacking-movable-type-training-day-1-presentation" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=hacking-mt-training-day-1-1224017225109480-9&stripped_title=hacking-movable-type-training-day-1-presentation" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View SlideShare <a style="text-decoration:underline;" href="http://www.slideshare.net/byrnereese/hacking-movable-type-training-day-1-presentation?type=powerpoint" title="View Hacking Movable Type Training - Day 1 on SlideShare">presentation</a> or <a style="text-decoration:underline;" href="http://www.slideshare.net/upload?type=powerpoint">Upload</a> your own. (tags: <a style="text-decoration:underline;" href="http://slideshare.net/tag/movable">movable</a> <a style="text-decoration:underline;" href="http://slideshare.net/tag/type">type</a>)</div></div>

<div style="width:425px;text-align:left" id="__ss_666592"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/byrnereese/hacking-movable-type-training-day-2-presentation?type=powerpoint" title="Hacking Movable Type Training - Day 2">Hacking Movable Type Training - Day 2</a><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=hacking-mt-training-day-2-1224301754198920-9&stripped_title=hacking-movable-type-training-day-2-presentation" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=hacking-mt-training-day-2-1224301754198920-9&stripped_title=hacking-movable-type-training-day-2-presentation" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object><div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View SlideShare <a style="text-decoration:underline;" href="http://www.slideshare.net/byrnereese/hacking-movable-type-training-day-2-presentation?type=powerpoint" title="View Hacking Movable Type Training - Day 2 on SlideShare">presentation</a> or <a style="text-decoration:underline;" href="http://www.slideshare.net/upload?type=powerpoint">Upload</a> your own. (tags: <a style="text-decoration:underline;" href="http://slideshare.net/tag/movable">movable</a> <a style="text-decoration:underline;" href="http://slideshare.net/tag/type">type</a>)</div></div>]]>
        
    </content>
</entry>

<entry>
    <title>Learning to Share</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/09/learning-to-share.html" />
    <id>tag:www.composing-stick.net,2008://1.21</id>

    <published>2008-09-21T18:43:06Z</published>
    <updated>2008-09-21T19:01:54Z</updated>

    <summary>Today I have added functionality to this site and to Darren Kenny Paralympic Cyclist that makes it easier for visitors to share the love and add links on facebook, email to friend or just plain blog about it. A little...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="Tips" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>Today I have added functionality to this site and to <a href="http://www.darrenkenny.co.uk">Darren Kenny Paralympic Cyclist</a> that makes it easier for visitors to share the love and add links on facebook, email to friend or just plain blog about it.</p>

<p>A little research showed that there were two main sites offering tools to enable this; <a href="http://www.addthis.com/">AddThis</a> and <a href="http://sharethis.com/">ShareThis</a>. Both have JavaScript that can be added to a page to include a sharing button, both allow some customisation and both can provide user stats. In the end I went with <a href="http://sharethis.com/">ShareThis</a> for one simple reason, this site was up.</p>

<p>The original plan was to test one tool on each site, leave them running for a month or so and compare results. I had registered with both sites earlier in the week as I had wanted to look at the JavaScript and the options available. When I went to <a href="http://www.addthis.com/">AddThis</a> there was no indication on the home page that they were performing maintenance, nothing in the blog and they hadn't emailed me. You just get a simple unstyled page telling you to come back later when you go to your account.</p>

<p>To add the button was easy</p>

<ul>
<li>Register on <a href="http://sharethis.com/">ShareThis</a></li>
<li>Get button code</li>
<li>Create a Module template called ShareThis</li>
<li>Copy code into template and save</li>
<li><p>Go to the Entry template and include the ShareThis module where you need it</p>

<p><$mt:include module="ShareThis"$></p></li>
<li><p>Do the same with the Entry Summary template</p></li>
<li>Rebuild site</li>
</ul>
]]>
        

    </content>
</entry>

<entry>
    <title>What has been happening</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/09/what-has-been-happening.html" />
    <id>tag:www.composing-stick.net,2008://1.20</id>

    <published>2008-09-10T20:15:36Z</published>
    <updated>2008-09-10T20:23:34Z</updated>

    <summary>The last week or so I have spent time on upgrading by brother&apos;s site to run on Movable Type 4.2. The previous site was still running 3.6 with heavily customised web templates that made me put off upgrading until the...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>The last week or so I have spent time on upgrading by brother's site to run on Movable Type 4.2. The previous site was still running 3.6 with heavily customised web templates that made me put off upgrading until the last minute, literally.</p>

<p>The first thing I did was upgrade the back-end, that was easy. The difficult part was that my customised templates did not have any comment code in and I wanted to add commenting ready for the start of the Paralympics games, I was left with no choice but to style the existing templates to match the old style as closely as possible. In the end the new templates went live during the Paralympic opening ceremony. So I give you version 1 of the new style for  <a href="http://www.darrenkenny.co.uk">Darren Kenny, Paralympic Cyclist</a>. There are a few tweaks to do with the styles before I will be happy.</p>

<p>Upgrading the site has given me a lot of material to write up, so before the end of September I will being a series of articles on customising the MTOS classic blog templates, so stay tuned.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Almost Recent Entries</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/08/almost-recent-entries.html" />
    <id>tag:www.composing-stick.net,2008://1.19</id>

    <published>2008-08-28T20:43:43Z</published>
    <updated>2008-08-28T21:02:20Z</updated>

    <summary>There are some things about blogging that just doesn&apos;t make sense, take recent entries as an example. On the front page you have maybe your last 10 posts, next to that you have a recent entries widget showing your last...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="How To" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>There are some things about blogging that just doesn't make sense, take recent entries as an example. On the front page you have maybe your last 10 posts, next to that you have a recent entries widget showing your last 10 posts, what is the point? Shouldn't it be a teaser to additional content?</p>

<p>The code below is a replacement for the recent entries widget code, Included on the front page it will show the previous 10 entries following the last entry on your index page. While on your archive pages it functions as a 'normal' recent entry widget.</p>

<pre><code>&lt;mt:If name="main_index"&gt;
&lt;mt:SetVarBlock name="entryOffset"&gt;&lt;mt:EntriesCount&gt;&lt;/mt:SetVarBlock&gt;
&lt;mt:else&gt;
&lt;mt:SetVarBlock name="entryOffset"&gt;auto&lt;/mt:SetVarBlock&gt;
&lt;/mt:If&gt;
&lt;mt:If tag="BlogEntryCount"&gt;
    &lt;mt:Entries lastn="10" offset="$entryOffset"&gt;
        &lt;mt:EntriesHeader&gt;
&lt;div class="widget-recent-entries widget-archives widget"&gt;
    &lt;h3 class="widget-header"&gt;Recent Entries&lt;/h3&gt;
    &lt;div class="widget-content"&gt;
        &lt;ul class="widget-list"&gt;
        &lt;/mt:EntriesHeader&gt;
            &lt;li class="widget-list-item"&gt;
                &lt;h4&gt;&lt;a href="&lt;$mt:EntryPermalink$&gt;"&gt;&lt;$mt:EntryTitle$&gt;&lt;/a&gt;&lt;/h4&gt;
                &lt;p&gt;&lt;mt:EntryBody words="25" convert_breaks="0" /&gt;...&lt;/p&gt;
            &lt;/li&gt;
        &lt;mt:EntriesFooter&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
&lt;/div&gt;
        &lt;/mt:EntriesFooter&gt;
    &lt;/mt:Entries&gt;
&lt;/mt:If&gt;
</code></pre>
]]>
        

    </content>
</entry>

<entry>
    <title>Templating Tricks: Movable Type to Rich Text</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/08/templating-tricks-movable-type-to-rich-text.html" />
    <id>tag:www.composing-stick.net,2008://1.18</id>

    <published>2008-08-27T19:32:34Z</published>
    <updated>2008-08-28T09:17:38Z</updated>

    <summary>A few years ago Six Apart&apos;s Anil Dash posted this article about using Movable Type to generate a Word document of your blog or part of it. It uses WordML to generate a Microsoft Word 2003 formatted documents. This is...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="How To" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>A few years ago Six Apart's <a href="http://www.dashes.com">Anil Dash</a> posted this article about <a href="http://www.sixapart.com/blog/2004/10/word_docs_from_.html">using Movable Type to generate a Word document</a> of your blog or part of it. It uses WordML to generate a Microsoft Word 2003 formatted documents. This is fine and dandy if you have Word, but what if you don't?</p>

<p>As Anil's post shows, it is very easy for Movable Type to generate any document type that you know the specification, so lets give it a go with another ubiquitous file format; <a href="http://en.wikipedia.org/wiki/Rich_Text_Format">Rich Text Format</a>, the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=DD422B8D-FF06-4207-B476-6B5396A18A2B&amp;displaylang=en">full specification</a> can be downloaded from Microsoft</p>

<p>Below is a simple template which outputs a Rich Text Formatted file showing the last 5 entries from your blog.</p>

<pre><code>{\rtf
{\b &lt;MTBlogName&gt;}
\par
&lt;MTEntries lastn="1"&gt;
Author: &lt;MTEntryAuthorNickname encode_xml="1"&gt;
\par
Modified: &lt;MTEntryModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"&gt;
\par
&lt;/MTEntries&gt;
\par
\par    
&lt;MTEntries lastn="5"&gt;
{\b &lt;MTEntryTitle&gt;}
\par
&lt;MTEntryBody  convert_breaks="0" remove_html="1"&gt;
\par
\par
&lt;/MTEntries&gt;
}
</code></pre>

<p>you need to create a new custom index template and paste the above code in. Set the output file to recent.rtf. When this template is published it generates a rich text format file at your blog root that contains the last 5 entries in your blog.</p>

<p>This technique can be used for a number of different formats; <a href="http://en.wikipedia.org/wiki/Office_Open_XML">OOXML</a>, <a href="http://en.wikipedia.org/wiki/LaTeX">LaTex</a> or <a href="http://en.wikipedia.org/wiki/OpenDocument">OpenDocument</a> for example. It can also be expanded to include a list of recent comments or limit the report to specific tags, categories or keywords.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Creating a Buzz with Yahoo Buzz</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/08/creating-a-buzz-with-yahoo-buzz.html" />
    <id>tag:www.composing-stick.net,2008://1.17</id>

    <published>2008-08-26T19:24:28Z</published>
    <updated>2008-08-26T20:10:39Z</updated>

    <summary>Recently Yahoo have introduced Yahoo Buzz, a social news site, similar to Digg. Yahoo determines the most popular search topics and then, we showcase the most popular stories within those topics, based on activities like voting and emailing stories to...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="How To" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>Recently Yahoo have introduced <a href="http://www.yahoo.com/buzz">Yahoo Buzz</a>, a social news site, similar to <a href="http://digg.com">Digg</a>. Yahoo determines the most popular search topics and then, we showcase the most popular stories within those topics, based on activities like voting and emailing stories to friends.</p>

<p>If you want people to be able to vote, you need to add a button to your page, <a href="http://buzz.yahoo.com/buttons">Yahoo</a> has a list of button code, but to make the system really fly you can add extra post information that will get submitted. This is easy to do in Movable Type, first we need to create a new module template called Yahoo Buzz and past the following code into it.</p>

<pre><code>&lt;script type="text/javascript"&gt;
yahooBuzzArticleHeadline = "&lt;mt:EntryTitle&gt;";
yahooBuzzArticleSummary = "&lt;mt:EntryBody words="15"&gt;";
yahooBuzzArticleCategory = "&lt;mt:EntryCategory&gt;";
&lt;mt:EntryIfTagged tag="@text"&gt;
    yahooBuzzArticleType = "text";
&lt;/mt:EntryIfTagged&gt;
&lt;mt:EntryIfTagged tag="@image"&gt;
    yahooBuzzArticleType = "image";
&lt;/mt:EntryIfTagged&gt;
&lt;mt:EntryIfTagged tag="@video"&gt;
    yahooBuzzArticleType = "video";
&lt;/mt:EntryIfTagged&gt;
    yahooBuzzArticleId = window.location.href;
&lt;/script&gt;

&lt;script type="text/javascript"
    src="http://d.yimg.com/ds/badge2.js"
    badgetype="large-votes"&gt;      
&lt;/script&gt;
</code></pre>

<p>save this and then open the entry template, scroll down until you find</p>

<pre><code> &lt;/mt:EntryIfTagged&gt;
</code></pre>

<p>and after that add</p>

<pre><code> &lt;mt:Include module="Yahoo Buzz"&gt;
</code></pre>

<p>rebuild your site and each entry should now have a Buzz button at the end, just before any comments.</p>

<p>You set the category as you would normally do in Movable Type and you set the Article Type through the use of private tags (@text, @image, @video).</p>

<p>This is a first draft template and a little rough as stories can only have one category. Ways to improve / change this would be to have custom fields to store Category and Article Type.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Site Upgraded</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/08/site-upgraded.html" />
    <id>tag:www.composing-stick.net,2008://1.16</id>

    <published>2008-08-25T21:18:18Z</published>
    <updated>2008-08-25T21:26:45Z</updated>

    <summary>As regular visitors may notice, the site has changed slightly. After upgrading to Movable Type 4.21 I took the opportunity to try out the Mid-Century template set by Jim Ramsey . Over the next month I will give it a...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>As regular visitors may notice, the site has changed slightly. After upgrading to Movable Type 4.21 I took the opportunity to try out the <a href="http://www.movabletype.org/2008/08/another_hallmark_design_for_movable_type.html">Mid-Century template set</a> by <a href="http://www.jimramsey.net/">Jim Ramsey</a> . Over the next month I will give it a few tweaks to personalise the design.</p>

<p>The upgrade went smoothly, just ftp'd the files over the top of the existing installation. I also upgraded <a href="http://www.darrenkenny.co.uk">www.darrenkenny.co.uk</a>, you won't see any changes to the design at the moment, but again that will be happening soon.</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Updates</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/08/updates.html" />
    <id>tag:www.composing-stick.net,2008://1.15</id>

    <published>2008-08-24T12:25:42Z</published>
    <updated>2008-08-24T12:27:54Z</updated>

    <summary>Movable Type 4.21 is out, with some major security fixes so it is time to update. I am also going to take this opportunity to try out some of the new styles and templates so you might see a few...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<a href="http://www.movabletype.org/download.html">Movable Type 4.21</a> is out, with some major security fixes so it is time to update. I am also going to take this opportunity to try out some of the new styles and templates so you might see a few changes over the next few weeks. ]]>
        
    </content>
</entry>

<entry>
    <title>Can&apos;t find mt-config.cgi</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/07/cant-find-mt-config-cgi.html" />
    <id>tag:www.composing-stick.net,2008://1.13</id>

    <published>2008-07-04T21:16:55Z</published>
    <updated>2008-08-24T13:19:29Z</updated>

    <summary>When the Composing Stick was being set up I encountered a problem with my web host&apos;s security configuration. When I tried to log on to Movable Type I would get the error Got an error: Error opening file &apos;/mt-config.cgi&apos;: No...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="Tips" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p>When the Composing Stick was being set up I encountered a problem with my web host's security configuration. When I tried to log on to Movable Type I would get the error</p>  <p><strong>Got an error: Error opening file '/mt-config.cgi': No such file or directory</strong></p>  <p>This was easily solved by editing lib/bootstrap.pm</p>  

<pre >sub BEGIN {
    $ENV{'MT_HOME'} = '/home/username/public_html/mt';
    my ($dir, $orig_dir);
    require File::Spec;
    if (!($dir = $ENV{MT_HOME})) {</pre>

<p>Line 2 was added with the full path to Movable Type and the system started working</p>

<p>Recently I went to configure <a href="http://windowslivewriter.spaces.live.com/">Microsoft Live Writer</a> and during the configuration process I got the error again. A quick check showed that the web site was functioning correctly, so why not Live Writer?</p>

<p>The answer, it turns out, is very simple. Live Writer communicates with Movable Type through mt-xmlrpc.cgi, this does not use bootstrap.pm so the code needs to added to mt-xmlrpc.cgi as well</p>

<pre>sub BEGIN {
    $ENV{'MT_HOME'} = '/home/username/public_html/mt';
    require File::Spec;
    if (!($dir = $ENV{MT_HOME})) {
</pre>

<p>Once this has been done the Live Writer is able to link up and you can post to your blog</p>
]]>
        

    </content>
</entry>

<entry>
    <title>Adding a Flickr Badge to Vox</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/06/adding-flickr-badge-to-vox.html" />
    <id>tag:www.composing-stick.net,2008://1.8</id>

    <published>2008-06-28T20:09:16Z</published>
    <updated>2008-08-24T13:20:53Z</updated>

    <summary>Flickr is an online photo management site (some might say it is the online photo management site). Users upload their photos to share amongst friends and strangers.Vox is an social blogging site, brought to you by Six Apart, the same...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="How To" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[<p><a href="http://www.flickr.com/">Flickr</a> is an online photo management site (some might say it is<i> the online photo management site</i>). Users upload their photos to share amongst friends and strangers.<br /><br /><a href="http://www.vox.com/">Vox</a> is an social blogging site, brought to you by Six Apart, the same company that brought blogging to the masses with the Movable Type blogging platform and Typepad a hosted solution. <br /><br />Vox allows you to link to your Flickr account and import images as assets, but this is a manual process, there is no easy way to automate this. Another option is to add a Flickr badge to your sidebar. These badges can be flash based or simple html and can be customised to some degree to match you site style.<br /><br />The first step is to get the badge code.<br /><ol><li>Go to to <a href="http://www.flickr.com/badge.gne">http://www.flickr.com/badge.gne</a> (you will need to be signed into flickr).</li><li>Follow the on screen instructions and at the end you will be given a snippet of code to paste into a page below is some sample code for the flash based badge.</li></ol><br /></p>

<pre >&lt;!-- Start of Flickr Badge --&gt;
&lt;style type="text/css"&gt;
.zg_div {margin:0px 5px 5px 0px; width:117px;}<br />.zg_div_inner { color:#666666; text-align:center; font-family:arial, helvetica; font-size:11px;}
.zg_div a, .zg_div a:hover, .zg_div a:visited {color:#3993ff; background:inherit !important; text-decoration:none !important;}
&lt;/style&gt;
&lt;script type="text/javascript"&gt;
zg_insert_badge = function() {
var zg_bg_color = 'ffffff';
var zgi_url = 'http://www.flickr.com/apps/badge/badge_iframe.gne?zg_bg_color='+zg_bg_color+'&amp;zg_person_id=????????zg_tag_mode=any';<br />document.write('&lt;iframe style="background-color:#'+zg_bg_color+'; border-color:#'+zg_bg_color+'; border:none;" width="113" height="151" frameborder="0" scrolling="no" src="'+zgi_url+'" title="Flickr Badge"&gt;&lt;\/iframe&gt;');
if (document.getElementById) document.write('&lt;div id="zg_whatlink"&gt;&lt;a href="http://www.flickr.com/badge.gne"   style="color:#3993ff;" onclick="zg_toggleWhat(); return false;"&gt;What is this?&lt;\/a&gt;&lt;\/div&gt;');
}
zg_toggleWhat = function() {
document.getElementById('zg_whatdiv').style.display = (document.getElementById('zg_whatdiv').style.display != 'none') ? 'none' : 'block';
document.getElementById('zg_whatlink').style.display = (document.getElementById('zg_whatdiv').style.display != 'none') ? 'none' : 'block';
return false;
}
&lt;/script&gt;
&lt;div class="zg_div"&gt;&lt;div class="zg_div_inner"&gt;&lt;a href="http://www.flickr.com"&gt;www.&lt;strong style="color:#3993ff"&gt;flick&lt;span style="color:#ff1c92"&gt;r&lt;/span&gt;&lt;/strong&gt;.com&lt;/a&gt;&lt;br&gt;
&lt;script type="text/javascript"&gt;zg_insert_badge();&lt;/script&gt;
&lt;div id="zg_whatdiv"&gt;This is a Flickr badge showing public items from &lt;a href="http://www.flickr.com/photos/????????"&gt;Your Name Here&lt;/a&gt;. Make your own badge &lt;a href="http://www.flickr.com/badge.gne"&gt;here&lt;/a&gt;.&lt;/div&gt;
&lt;script type="text/javascript"&gt;if (document.getElementById) document.getElementById('zg_whatdiv').style.display = 'none';&lt;/script&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;!-- End of Flickr Badge --&gt;
</pre>

<p><ol start="3"><li>Log into Vox, at the bottom of your sidebar you should see a link called <i>Dress up your sidebar</i>.</li><li>Click on the link.</li><li>Give the widget a Name, e,g. My Pictures</li><li>Paste the code into the Widget Code box and click OK.</li></ol>You now have a flash based flickr badge on your page, however there are some problems as you can see from this screenshot.<br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="vox-flickr.jpg" src="http://www.composing-stick.net/screenshots/vox-flickr.jpg" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" width="181" height="240" /></span>
The badge is flush to the left of the sidebar and the height is wrong, the badge is cut off. What we need to do is make a few changes for the code. We will start by centering the badge in the sidebar by removing the fixed margins and replacing them an automatic margin like so<br /></p>

<pre>.zg_div {margin: auto; width:117px;}
</pre>

<p>Now we need to get some height on the div that contains the flickr badge<br /></p>

<pre>&lt;div class="zg_div" height="300"&gt;&lt;div class="zg_div_inner"&gt;&lt;a href="http://www.flickr.com"&gt;www.&lt;strong style="color:#3993ff"&gt;flick&lt;span style="color:#ff1c92"&gt;r&lt;/span&gt;&lt;/strong&gt;.com&lt;/a&gt;&lt;br&gt;  
</pre>

<p>Now your Flickr badge should be sitting nicely in the middle of the sidebar full height. Take a look at <a href="http://robkenny.vox.com/">my Vox page</a> to see the final results.<br /></p>
]]>
        

    </content>
</entry>

<entry>
    <title>How to Search Forums for Short Words</title>
    <link rel="alternate" type="text/html" href="http://www.composing-stick.net/2008/06/how-to-search-forums-for-short-words.html" />
    <id>tag:www.composing-stick.net,2008://1.9</id>

    <published>2008-06-18T19:02:32Z</published>
    <updated>2008-06-25T20:37:56Z</updated>

    <summary>The problem with most of the forum software out there is that, for performance reasons, there is a minimum word length for search terms; for most this is 4 characters or more. This limitation is fine for most purposes but...</summary>
    <author>
        <name>Webmaster</name>
        
    </author>
    
        <category term="Tips" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.composing-stick.net/">
        <![CDATA[The problem with most of the forum software out there is that, for performance reasons, there is a minimum word length for search terms; for most this is 4 characters or more. This limitation is fine for most purposes but technology tends to be full of TLA's which makes searching a pain. An example recently; trying to help a user on the Movable Type forums I needed to look up previous posts about 403 errors. Searching within the forum for 403 returned no hits.<br /><br />One trick is not to use the forums built in search facilities, but use Google instead. Most people that use Google do not know that you can limit your searches to a specific site by the following:<br /><br /><pre>site:http://forums.sixapart.com &lt;search&gt;</pre>this will find all occurrences of &lt;search&gt; on the site specified, for example:<br /><br /><pre>site:http://forums.sixapart.com 403</pre>helped me find all the posts about 403 errors in the forums.<br /><br />For more information on this, and other useful search terms see: <a href="http://www.google.com/help/operators.html">http://www.google.com/help/operators.html</a> ]]>
        
    </content>
</entry>

</feed>
