<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
    <channel>
        <title>shiny parts</title>
        <link>http://www.invisiblecompany.com/shiny parts/</link>
        <description>how this site was built</description>
        <language>en</language>
        <copyright>Copyright 2008</copyright>
        <lastBuildDate>Tue, 30 Dec 2008 21:11:27 +0800</lastBuildDate>
        <generator>http://www.sixapart.com/movabletype/</generator>
        <docs>http://www.rssboard.org/rss-specification</docs>
        
        <item>
            <title>new personal page</title>
            <description><![CDATA[New <a href="http://invisiblecompany.com/personal/archives/2008/12/personal20081230.php" title="20081230">personal page</a>, last one this year. hey, at least there's an update in less than a year.
<br />]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2008/12/new-personal-page-2.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2008/12/new-personal-page-2.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">what&apos;s new</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">25squares</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">personal</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">website</category>
            
            <pubDate>Tue, 30 Dec 2008 21:11:27 +0800</pubDate>
        </item>
        
        <item>
            <title>new personal page</title>
            <description><![CDATA[After more than a year, I posted a new <a href="http://invisiblecompany.com/personal/archives/2008/09/" title="personal200809">personal page</a>. No big difference from before, indicating that either a) my life hasn't changed from a year ago or b) my life is so boring that it doesn't change.

]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2008/09/new-personal-page-1.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2008/09/new-personal-page-1.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">what&apos;s new</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">25squares</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">personal</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">website</category>
            
            <pubDate>Mon, 22 Sep 2008 19:22:43 +0800</pubDate>
        </item>
        
        <item>
            <title>tumbles</title>
            <description><![CDATA[I've been diligently posting on <a href="http://invisiblecompany.tumblr.com/" title="tumblr">tumblr</a>, I feel like I have a fairly clear idea of how to distinguish tumblelogs from blogposts. Hopefully this means the homepage becomes more thoughtful and discussion-like.

Tumblr is hosted at their site. At first I used one of their default templates, but now it's been converted to somewhat looking like the main site. They are very kind to provide a custom option where users can change the html and the css. I took one of the static pages -- in this case the gallery page -- and copied in the tumblr specific code. The original css is embedded in the html so I stripped it out and created a new css file called base-tumblr.css which gets called by a tumblr specific styles.css file.
<br />]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2007/09/tumbles.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2007/09/tumbles.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">my other sites</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">css</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">tumblr</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">website</category>
            
            <pubDate>Sat, 29 Sep 2007 19:24:12 +0800</pubDate>
        </item>
        
        <item>
            <title>about</title>
            <description><![CDATA[I added an <a href="http://www.invisiblecompany.com/personal/about/about.php" title="about">about</a> page. The thing about about pages is that, it's really only useful if you want people to know about you. To strike a balance between revealing too much and being entirely obscure is the trick, and I'm sure I was borderline successful only. 

I wanted to include the about page on the main index of the about section. The options were: take it outside of mt and handcode index.php with an include to the mt generated parts; I could post date it so it always appear at the top; I could do some complicated include / exclude with categories; I could hardcode it into the main index template; or I could do it the easy way.

<ol>
<li>create it as a page</li>
<li>note down its page id -- in manage pages hover on the title and it gave me id=1976</li>
<li>create a module called "about" that has the same tags as the page detail module, with one addition: wrap the whole thing in a mtpages tag:
<blockquote><strong>&lt;mt:pages id="1976"&gt;</strong><br />
&lt;div id="page-&lt;$MTPageID$&gt;" class="page-asset asset"&gt;<br />
&lt;div class="asset-header"&gt;<br />
&lt;h1 class="asset-name"&gt;&lt;$MTPageTitle$&gt;&lt;/h1&gt;<br />
&lt;/div&gt;<br />
&lt;div class="asset-content"&gt;<br />
&lt;MTIfNonEmpty tag="PageBody"&gt;<br />
&lt;div class="asset-body"&gt;<br />
&lt;$MTPageBody$&gt;<br />
&lt;/div&gt;<br />
&lt;/MTIfNonEmpty&gt;<br />
&lt;MTIfNonEmpty tag="PageMore" convert_breaks="0"&gt;<br />
&lt;div id="more" class="asset-more"&gt;<br />
&lt;$MTPageMore$&gt;<br />
&lt;/div&gt;<br />
&lt;/MTIfNonEmpty&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
<strong>&lt;/mt:pages&gt;</strong></blockquote>

I could have scrubbed the page detail code more, but I left it as default. </li>
<li>in the main index call the module using mtinclude</li>
<li>save and rebuild</li>
</ol>

The second part of the index page is the latest 25 squares. I have to think of a better way of integrating the two and making it flow better.
<br />]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2007/09/about-1.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2007/09/about-1.php</guid>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">about</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">movabletype</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">website</category>
            
            <pubDate>Tue, 18 Sep 2007 07:54:27 +0800</pubDate>
        </item>
        
        <item>
            <title>embed sound</title>
            <description><![CDATA[I remember looking for, and finding a solution to <a href="http://www.invisiblecompany.com/shiny%20parts/archives/2005/12/embed-quicktime-movie.php" title="embedquicktimemovie">embed a quicktime movie</a> to the website. So today I was playing around with ringtones, found some and wanted to <a href="http://www.invisiblecompany.com/quiet/archives/2007/09/ring-ring.php" title="quiet ringring">post</a> on the website, I needed to find a way to embed mp3s. Of course the quicktime method works too, all I'll have is audio but not video.

There are many ways and many online players. This from, of all places, the <a href="http://googlesystem.blogspot.com/2006/07/embed-mp3-files-into-your-website.html" title="googleblog">google blog</a>, is a 10 second cut and paste. All I needed to do was replace [mp3 file address] with the url of my uploaded mp3. 

<blockquote>
&lt;embed src= "http://www.odeo.com/flash/audio_player_standard_black.swf" quality="high" width="300" height="52" allowScriptAccess="always" wmode="transparent"&#160;&#160;type="application/x-shockwave-flash" flashvars= "valid_sample_rate=true&external_url=[mp3 file address]" pluginspage="http://www.macromedia.com/go/getflashplayer"&gt; &lt;/embed&gt;
</blockquote>

There are several styles of players -- they're not fabulous, but get the job done. Supposedly we have to sign up and go to our profile page to select the player, but I found that by going to studio.odeo.com, selecting one of the featured people and clicking the link that says "embeddable player" will bring me to the page with a selection of players. It's just a matter of changing the mp3 url and twiddling with bits of the code if necessary.

<img src="http://www.invisiblecompany.com/images/odeoplayer.jpg" alt="odeoplayer" />

<br />]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2007/09/embed-sound.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2007/09/embed-sound.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">how to code</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">embed</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">sounds</category>
            
            <pubDate>Wed, 12 Sep 2007 23:37:18 +0800</pubDate>
        </item>
        
        <item>
            <title>static pages</title>
            <description><![CDATA[The rest of the site was converted to the new look.

For the about section, I thought using the "3-column footer in a 2-column theme" -- putting categories, links, delicious tags etc that is all the rage now. But that means relegating static pages to the bottom of the screen and no one will ever read them.

Instead I created a new blog for the about section, to include -- 100 things, faq, specs and the 25 square personal pages. There's no actual about.php page, because there isn't much to say. I figured out how to use the Pages function for these. Added the Pages widget to the sidebar, create a new page, save in its own folder and they get published. The standard Pages widget includes nesting by folder, but I took it out since it's all flat in the hierarchy.

The download page on hidden doors is a page.

I fixed the divs on the 404 page too.

I think this is it. 
<br />

]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2007/09/static-pages.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2007/09/static-pages.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">weblog</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">movabletype</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">pages</category>
            
            <pubDate>Sun, 09 Sep 2007 21:19:02 +0800</pubDate>
        </item>
        
        <item>
            <title>gallery</title>
            <description><![CDATA[Gallery is in the new design. I took the html of an entry page, stripped out the contents and inserted the flashplayer script for simpleviewer.

Changed background, fixed some of the margins.

The text is still in white, even though I changed it to #666666, not sure what's going on. This needs to be fixed because I have white text on a white background.

The viewer takes pictures from my flickr set called favourites. I need to put more pictures in that set.
<br />]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2007/09/gallery.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2007/09/gallery.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">images</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">images</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">website</category>
            
            <pubDate>Sat, 08 Sep 2007 22:29:17 +0800</pubDate>
        </item>
        
        <item>
            <title>logo</title>
            <description><![CDATA[<div class="floatleft"><img src="http://www.invisiblecompany.com/public%20images/rotatetree/maratreeblue.jpg" alt="maratreeblue" /><br /></div>I got tired of the fugly minimalist white header and boring text at the top so I made myself a logo and new header.

The logo is a variation of maratree; this time it's the bright blue-orange combo version. If anyone asked me how I got from the original to this, I will have to shrug and say no idea. I was playing around with photoshop. The text is based on the blue and orange colour of the image. I fiddled with margins and padding in the header to fix the position.

<br clear="all" />

<img src="http://www.invisiblecompany.com/images/mt4header.jpg" alt="mt4header" />
<br />

]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2007/09/logo-favicon-v4.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2007/09/logo-favicon-v4.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">images</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">weblog</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">images</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">logo</category>
            
            <pubDate>Fri, 07 Sep 2007 22:01:37 +0800</pubDate>
        </item>
        
        <item>
            <title>hidden doors reset</title>
            <description><![CDATA[<strong>main index</strong>

The main index for hidden doors is pretty much unchanged from before. Instead of the default entry view it shows category title, category description and a horizontal listing of individual entries. In other words: story title, story information and chapter headings.

With the new modular system the main index template is so much cleaner:
<blockquote>&lt;MTSetVar name="body_class" value="mt-main-index"&gt;<br />
&lt;MTSetVar name="main_template" value="1"&gt;<br />
&lt;MTSetVar name="main_index" value="1"&gt;<br />
&lt;MTSetVar name="sidebar" value="1"&gt;<br />
&lt;MTSetVar name="module_recent_entries" value="1"&gt;<br />
&lt;MTSetVar name="module_category_archives" value="1"&gt;<br />
&lt;MTSetVar name="module_author_archives" value="1"&gt;<br />
&lt;MTSetVar name="module_monthly_archives" value="1"&gt;<br />
<br />
&lt;$MTInclude module="Header"$&gt;<br />
<br />
&lt;$MTInclude module="Disclaimer"$&gt;<br />
<br />
&lt;$MTInclude module="Categories Summary"$&gt;<br />
<br />
&lt;div class="content-nav"&gt;<br />
&lt;a href="&lt;$MTLink template="archive_index"$&gt;"&gt;archives&lt;/a&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;$MTInclude module="Footer"$&gt;<br />
</blockquote>

I created 2 new modules. The disclaimer is just text contained in a box. Categories summary is a modification of the default category listing that is usually found in the sidebar. Hardly any change from 3.35.

<blockquote>
&lt;MTTopLevelCategories&gt;<br />
&lt;MTSubCatIsFirst&gt;&lt;/MTSubCatIsFirst&gt;<br />
&lt;MTIfNonZero tag="MTCategoryCount"&gt;<br />
&lt;div class="asset-header"&gt;<br />
&lt;h2 class="asset-name"&gt;&lt;a href="&lt;$MTCategoryArchiveLink$&gt;"<br />
title="&lt;$MTCategoryLabel$&gt;"&gt;&lt;MTCategoryLabel&gt;&lt;/a&gt;&lt;/h2&gt;<br />
&lt;/div&gt;<br />
&lt;$MTCategoryDescription$&gt;<br />
&lt;div class="asset-content"&gt;<br />
&lt;MTEntries sort_by="title" sort_order="ascending" glue=" | "&gt;<br />
&lt;a href="&lt;$MTEntryPermalink$&gt;"&gt;&lt;$MTEntryTitle$&gt;&lt;/a&gt;<br />
&lt;/MTEntries&gt; | &lt;a href="&lt;$MTBlogURL$&gt;download.php" title="download"&gt;downloads&lt;/a&gt;<br />
&lt;/div&gt;<br />
&lt;MTElse&gt;<br />
&lt;h1 class="archive-title"&gt;&lt;MTCategoryLabel&gt;&lt;/h1&gt;<br />
&lt;/MTElse&gt;<br />
&lt;/MTIfNonZero&gt;<br />
<br />
&lt;MTSubCatsRecurse&gt;<br />
&lt;MTSubCatIsLast&gt;&lt;/MTSubCatIsLast&gt;<br />
&lt;/MTTopLevelCategories&gt;<br />
<br />
</blockquote>
<br />

So happily I went off to publish, expecting a similar look to before. And I tried again. And again. And again. What was wrong? The entries simply refused to list in ascending order even though I'd specified <em>MTEntries sort_by="title" sort_order="ascending"</em>. It turns out that it's a <a href="http://forums.sixapart.com/index.php?showtopic=63319" title="known issue">known issue</a>. How ridiculous is that? They're at version 4 and they can't get something this simple to work?

Blimey.<br /><br />

<strong>entry listing archive</strong>

Normally this is the "Recently in [category] category" page that shows full entries. My modification is to use this archive template to list all chapters in one story. 

<blockquote>
&lt;MTSetVarBlock name="body_class"&gt;mt-archive-listing mt-&lt;MTVar name="archive_class"&gt;&lt;/MTSetVarBlock&gt;<br />
&lt;MTSetVar name="sidebar" value="1"&gt;<br />
&lt;MTSetVar name="module_about_context" value="1"&gt;<br />
<br />
&lt;MTSetVarBlock name="page_title"&gt;&lt;$MTArchiveTitle$&gt;&lt;/MTSetVarBlock&gt;<br />
<br />
&lt;$MTInclude module="Header"$&gt;<br />
<br />
&lt;h1 class="archive-title"&gt;<br />
&lt;MTUnless name="datebased_archive"&gt;<br />
&lt;MTIfArchiveType archive_type="Category"&gt;<br />
&lt;em&gt;&lt;$MTArchiveTitle$&gt;&lt;/em&gt;<br />
&lt;/MTIfArchiveType&gt;<br />
&lt;MTIfArchiveType archive_type="Author"&gt;<br />
Recently by &lt;em&gt;&lt;$MTArchiveTitle$&gt;&lt;/em&gt;<br />
&lt;/MTIfArchiveType&gt;<br />
&lt;MTElse&gt;<br />
&lt;$MTGetVar name="page_title"$&gt;<br />
&lt;/MTUnless&gt;<br />
&lt;/h1&gt;<br />
<strong>&lt;$MTCategoryDescription$&gt;</strong><br />
&lt;MTIf name="datebased_archive"&gt;<br />
&lt;MTEntries&gt;<br />
&lt;$MTEntryTrackbackData$&gt;<br />
<strong>&lt;$MTInclude module="Entry excerpt"$&gt;</strong><br />
&lt;/MTEntries&gt;<br />
&lt;MTElse&gt;<br />
&lt;MTEntries limit="auto"&gt;<br />
&lt;$MTEntryTrackbackData$&gt;<br />
<strong>&lt;$MTInclude module="Entry excerpt"$&gt;</strong><br />
&lt;/MTEntries&gt;<br />
&lt;/MTIf&gt;<br />
<br />
&lt;div class="content-nav"&gt;<br />
&lt;MTArchivePrevious&gt;<br />
&lt;a href="&lt;$MTArchiveLink$&gt;"&gt;« &lt;$MTArchiveTitle$&gt;&lt;/a&gt; |<br />
&lt;/MTArchivePrevious&gt;<br />
&lt;a href="&lt;$MTLink template="main_index"$&gt;"&gt;Main Index&lt;/a&gt; |<br />
&lt;a href="&lt;$MTLink template="archive_index"$&gt;"&gt;Archives&lt;/a&gt;<br />
&lt;MTArchiveNext&gt;<br />
| &lt;a href="&lt;$MTArchiveLink$&gt;"&gt;&lt;$MTArchiveTitle$&gt; »&lt;/a&gt;<br />
&lt;/MTArchiveNext&gt;<br />
&lt;/div&gt;<br />
<br />
&lt;$MTInclude module="Footer"$&gt;<br />
</blockquote>
<br />

I added an include for category description and created a new module called entry excerpt. This is based on entry summary, changing MTEntryBody to MTEntryExcerpt. Word count (so important!) is from the <a href="http://code.appnel.com/mt-wordcount" title="mt-wordcount">mt-wordcount</a> plugin. which I've used since I started with mt.

<blockquote>
&lt;div id="entry-&lt;$MTEntryID$&gt;" class="entry-asset asset"&gt;<br />
&lt;div class="asset-area"&gt;<br />
&lt;div class="asset-title"&gt;&lt;a href="&lt;$MTEntryPermalink$&gt;"&gt;&lt;$MTEntryTitle$&gt;&lt;/a&gt;&lt;/div&gt;<br />
&lt;MTIfNonEmpty tag="EntryBody"&gt;<br />
&lt;div class="asset-area"&gt;<br />
<strong>&lt;$MTEntryExcerpt$&gt; &lt;br /&gt;<br />
Date: &lt;$MTEntryDate format="%e %B %Y"$&gt;&lt;br /&gt;<br />
Word count: &lt;$MTWordCount$&gt; words&lt;br /&gt;</strong><br />
&lt;/div&gt;<br />
&lt;/MTIfNonEmpty&gt;<br />
&lt;MTIfTagSearch&gt;<br />
&lt;$MTInclude module="Tags"$&gt;<br />
&lt;/MTIfTagSearch&gt;<br />
&lt;MTIfNonEmpty tag="EntryMore" convert_breaks="0"&gt;<br />
&lt;div class="asset-more-link"&gt;<br />
continue reading &lt;a href="&lt;$MTEntryPermalink$&gt;#more"&gt;&lt;$MTEntryTitle$&gt;&lt;/a&gt;.<br />
&lt;/div&gt;<br />
&lt;/MTIfNonEmpty&gt;<br />
&lt;/div&gt;<br />
&lt;/div&gt;<br />
<br />
</blockquote><br />
<br />

<strong>archive page</strong><br />

Lists all entries in chronological order. Since I use simple entry titles ("part 06") it's not a very useful page.
<br /><br />

<strong>about</strong><br />

The new feature in mt4 is the about blurb at the top of the sidebar. Sometimes it's useful. I changed the wording somewhat to reflect that I have stories and chapters instead of categories and entries. For the single entry archive I had to re-implement the <a href="http://weblog.philringnalda.com/2004/02/05/previous-and-next-in-category" title="previousincategory">previous next in category</a> plugin. I'm glad it still works with mt4. Simple substitutes for MTEntryPrevious and MTEntryNext and a little change in formatting.

<blockquote>
&lt;MTEntryPreviousInCategory&gt;<br />
&lt;p&gt;&lt;a href="&lt;MTEntryPermalink&gt;" title="Previous in category"&gt;« &lt;MTEntryTitle&gt;&lt;/a&gt; |<br />
&lt;/MTEntryPreviousInCategory&gt;<br />
&lt;MTEntryNextInCategory&gt;<br />
&lt;a href="&lt;MTEntryPermalink&gt;" title="Next in category"&gt;&lt;MTEntryTitle&gt; »&lt;/a&gt;&lt;/p&gt;<br />
&lt;/MTEntryNextInCategory&gt; 
</blockquote><br />

I suppose the single entry page shouldn't have a sidebar, but \*whatever\*.
<br />]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2007/09/hidden-doors-reset.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2007/09/hidden-doors-reset.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">weblog</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">movabletype</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">website</category>
            
            <pubDate>Thu, 06 Sep 2007 23:01:47 +0800</pubDate>
        </item>
        
        <item>
            <title>tabbed navigation</title>
            <description><![CDATA[I've been working on implementing tabbed navigation. Using the <a href="http://www.alistapart.com/articles/slidingdoors/" title="sliding doors">sliding doors</a> method gave really elegant results, but I had problems with the placement fo the tabs. First I put it underneath the header, but somehow their position ended up being absolute, and didn't move when the window is resized. Placing it inside the header beneath the title description looked nice in firefox but I ran into problems with stupid IE. For a brief moment I thought about ignoring the IE anomaly but since I'll have to look at the website at work, I know I'd be unhappy if I didn't improve on the design.

The simplest solution, as of today, was: 1) not to use fancy rounded edge tabs and 2) place the tabs immediately above the content container rather than near the header. While I was at it, I put a light blue dotted border around the content container.

<img src="http://www.invisiblecompany.com/images/tab-blue.jpg" alt="tab-blue" border="2" />

The html for the tabs is easy, all the items in an unordered list. I had to do a different list for each section, to  distinguish between the current tab and the others. 
<blockquote>			
&lt;div id="tabs"&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;a href="http://invisiblecompany.com/"&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="http://invisiblecompany.com/hidden%20doors"&gt;&lt;span&gt;words&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="http://invisiblecompany.com/gallery/simpleviewer"&gt;&lt;span&gt;pictures&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="http://invisiblecompany.com/gullsway"&gt;&lt;span&gt;places&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="http://invisiblecompany.com/taste"&gt;&lt;span&gt;taste&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;li id="current"&gt;&lt;a href="http://invisiblecompany.com/shiny%20parts" id="active"&gt;&lt;span&gt;technical&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="http://invisiblecompany.com/about.php"&gt;&lt;span&gt;about&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt<br />
&lt;/div&gt;
</blockquote>

The css turned out to be straight-forward too, though I spent a lot of time fiddling about and reading all sorts of different approaches. First, take out the list style and define the method of display as block. This puts the text in a nice block so I can add colours and borders.

<blockquote>
#tabs	{<br />
		float: left;<br />
		width: 100%;<br />
		margin-left: 5px;<br />
		}<br />
		<br />
#tabs ul 	{<br />
			margin: 0;<br />
			padding: 0;<br />
			list-style: none;<br />
			}<br />
</blockquote>

Then define the li elements -- colours, text-decoration.

<blockquote>
#tabs ul li	{<br />
			display: block;<br />
			float: left;<br />
			padding: 0;<br />
			}<br />
<br />
#tabs ul li a	{<br />
				background: #85d6ff;<br />
				color: #fff;<br />
				text-decoration: none;<br />
				display: block;<br />
				margin-left: 1px;<br />
				margin-right: 1px;<br />
				padding: 0 20px 0px 20px;<br />
				}<br />
</blockquote>

Finally, define different behaviours for hover and for the current tab.

<blockquote>
#tabs ul li a:hover	{<br />
					color: #006699;<br />
					}<br />
<br />
#tabs a:active 	{<br />
				background: #008fd6;<br />
				color: #fff;<br />
				}		<br />
<br />
#tabs li#current a	{<br />
				background: #008fd6;<br />
				color: #fff;<br />
					}	<br />
</blockquote>

<br />
]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2007/09/tabbed-navigation.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2007/09/tabbed-navigation.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">how to code</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">stylesheets</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">navigation</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">tabs</category>
            
            <pubDate>Wed, 05 Sep 2007 14:49:01 +0800</pubDate>
        </item>
        
        <item>
            <title>small style changes</title>
            <description><![CDATA[The way the theme is working goes like this: there's a base theme css that sits within each blog, it's the absolute default theme and defines margins and sizes. No specific fonts, borders or colour. Within the mt-static&#62;support&#62;themes folder is a folder for the selected theme.

Both stylesheets are called by an index called Stylesheet - Main.

To add my own customisations I could have gone into the minimalist white css and made changes. I decided not to do that; instead I created a new css called base-custom, which I saved in the root directory. Appended the command in Stylesheet - Main:

<blockquote>
&#64;import url(http://www.invisiblecompany.com/base-custom.css);<br />
</blockquote>


This custom css contains all the personalised elements like float, box100, blockindent, copyright, disclaimer etc. It also holds any over-ride I want to implement. 

For instance, the link behaviour goes through 3 iterations. First the default base theme tells it to underline links:
<blockquote>
a      { <br />
         text-decoration: underline;<br />
         outline: none;<br />
         }<br />
</blockquote>

then the imported theme tells it what colour, and adds hover:
<blockquote>
a      { <br />
        color: #000;<br />
         }<br />
<br />
a:hover     {<br />
                  text-decoration: none;<br />
                  }<br />
</blockquote>

I hate all of this, so in my custom css I tell it to do something else:
<blockquote>
a, a:active, a:visited      {<br />
                                      color: #008fd6; <br />
                                      text-decoration: none; <br />
                                      }<br />
<br />
a:hover	    {<br />
                  color: #006699; <br />
                  text-decoration: underline<br />
                 }<br />
</blockquote>

It's kinda clunky to have one element go through 3 different behaviours, but it seems to work. Plus I'm not disturbing the default themes, meaning when (and I sincerely hope it happens) more themes become available I can switch easily. All I will need to change is the custom css.
<br />
]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2007/09/small-style-changes.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2007/09/small-style-changes.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">stylesheets</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">stylesheets</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">website</category>
            
            <pubDate>Sun, 02 Sep 2007 22:18:38 +0800</pubDate>
        </item>
        
        <item>
            <title>movabletype 4 upgrade - styles</title>
            <description><![CDATA[<strong>Styles</strong>

Let's face it, movabletype themes suck. And I'm coming from the point of view of a loyal user. If I ever switch to Wordpress, it will be because of the themes, plugins and MT's technical demands.

To illustrate my point, compare the <a href="http://www.thestylearchive.com/browser/" title="stylearchive">MT style archive</a> against <a href="http://themes.wordpress.net/" title="wordpress themes">Wordpress themes</a>. What's worse, MT4 comes with 3 ... yes <strong>THREE</strong> excrutiatingly boring default themes -- a Cityscape collection of illustrated skylines of a handful of cities; a basic Minimalist theme which is a rehash of the Vox theme; and something called Unity which basically puts some colour to the sidebar. 

Something I don't understand is there are Default Styles and then there's the MT4 Style Library. I was excited when I clicked on MT4 Style Library but that excitement only lasted for 1 millisecond until it loaded. The so-called extended library is nothing more than versions of the THREE default styles -- instead of Minimalist Red or Green we have Blue, Brown, Grey, Purple, Light Blue (\*gasp\*), Light Green, Pink and White. I don't know whether to <img src="http://www.invisiblecompany.com/public%20images/smileyeyeroll.gif" alt="eyeroll" /> or <img src="http://www.invisiblecompany.com/public%20images/smileypullhair.gif" alt="pullhair" /> at the dismal choices.

None of the themes in the StyleArchive are MT4 compatible yet.

The least evil of the three evils is Minimalist. And the least evil of that lot is White. MT3 introduced Stylecatcher, which allows easy capturing and implementation of styles. I guess the saving grace was how easy it was to apply the style. 

The problem with it being so easy is that I seem to need to apply it to each blog, I can't do a system-wide implementation. This also means the css files are under the sub-folders and I have no idea how to pull one out to the root, apply to the entire site and make changes.

So here's how things stand. Using the 80-20 rule, 80% is done, there's just the remaining fiddly 20% to finish. Here's how the website look today.

<img src="http://www.invisiblecompany.com/images/mt4stylewhite.jpg" alt="mt4stylewhite" border="2" />
<br />

Known issues in terms of styles:
<ol>
<li>custom styles like float and box elements are not implemented</li>
<li>need to add horizontal tabbed navigation -- the links are there but because I haven't added the stylesheet elements it's just a standard ul at the top left</li>
<li>entry container is too close to the sidebar</li>
<li>narrower container, something that looks like Kubrick</li>
<li>calendar is too cluttered
<li>difference in list behaviour in sidebar -- look at the admin section and the recent posts section; the line heights are inconsistent</li>
<li>fonts -- cripes I really don't like trebuchet, I prefer verdana; then again it's miles preferable to a serif font</li>
<li>font colur = #666, not #333
<li>link behaviour -- normal a, a:visited and a: active need to be not underlined and in a different colour; a:hover should be in a darker colour and underlined</li>
<li>sidebar links to behave differently to main links -- not blue, probably the same colour as normal text</li>
<li>borders on images and linked images to be dictated by the html not the stylesheet</li>
<li>comment form too prominent</li>
<li>add an "all tags" link -- okay this isn't stylesheet but I need to do it too</li>
</ol>

<br />]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2007/09/movabletype-4-upgrade-styles.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2007/09/movabletype-4-upgrade-styles.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">stylesheets</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">movabletype</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">stylesheets</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">website</category>
            
            <pubDate>Sat, 01 Sep 2007 16:38:38 +0800</pubDate>
        </item>
        
        <item>
            <title>movabletype 4 upgrade - templates</title>
            <description><![CDATA[<strong>Templates</strong>

This was the toughest part of the upgrade. And the most scary. New features to the templates are:
<ul>
<li>new archive types -- for example category: monthly, entry, entry listing and page</li>
<li>paginated archives -- not sure how useful these are to me, but it's all good</li>
<li>consolidated archive templates</li>
<li>restructured default templates -- instead of a long and cluttered file full of code, it's now a modular system</li>
<li>widgets -- what used to be includes</li>
</ul>

There are <a href="http://www.movabletype.org/documentation/upgrade/upgrading-templates.html" title="mt4upgrade templates">official instructions</a> on how to upgrade 3.3 templates to 4 templates. Mostly it involves editing existing templates to fit the new version.

What SixApart called for the brave of heart only, is to use the default 4 templates in order to take advantage of "all the new features, new archive types, new template tags, new widgets and new template structure." Why is it so daunting? Because it's basically a fresh install, rendering all old templates inactive. In practice this means deleting all the old templates and starting from scratch.

My old templates were full of includes and little hacks here and there. I thought about it -- will I lose a lot by implementing fresh templates? The answer was no. I know I will end up learning more about the system this way. 

\*deep breath\* here goes.

<strong>the easy part</strong>
<ol>
<li>retrieve index txt files from the backup</li>
<li>create a new blog -- I've talked about the recipe section for years, now is the perfect opportunity</li>
<li>set preferences </li>
<li>under design&#62;templates check each template -- I found that no configuration was needed and looking at the main index made me appreciate the clean-ness of the modular system</li>
<li>check out the new archive templates -- again no configuration needed, I'm still learning</li>
<li>click on template modules -- look at the building blocks</li><br />
<img src="http://www.invisiblecompany.com/images/mt4modules.jpg" alt="mt4modules" border="2" /><br /><br />
<li>configure header to show site name</li>
<li>edit entry metadata so it shows preferred date format and category</li>
<li>by far the most editing is in the sidebar but it's relatively painless using widgets -- I added calendar, bloglines list, buttons and an admin section; the search bar I moved down from where it was at the top</li>
<li>talking about widgets, these are great ... pretty intuitive</li>
<li>no change to system templates</li>
<li>save and publish (I'm getting used to calling it publish instead of rebuild)</li>
</ol>

I made a couple of new posts just to see how it all looks, and it was okay.

<strong>the hard part</strong>

<ol>
<li>start with the travel section -- fewest posts, and I figured this is the one section I can afford to completely rebuild if necessary </li>
<li>check preferences</li>
<li>under Design&#62;templates go first to the index template section, take a deep, cleansing breath and delete all the templates</li>
<li>with 2 tabs open -- one with the current blog and one with the baseline recipes blog -- copy the baseline templates one by one and create an identical new one in the target blog</li>
<li>repeat with all templates -- this will take about an hour of intense &#8984;-c and &#8984;-v</li>
<li>some of the templates can be just refreshed (menu under more actions) but just to be pedantic, it's worth double checking each one</li>
<li>save and publish</li>
<li>re-edit any parts that need tweaking</li>
</ol>

So that was it. Took 2 nights working till very late to accomplish. I still need to look at all the archive pages further down the hierarchy and change some of the verbage and positioning. But I consider it 90% done for every section except hidden doors. Talking about hidden doors, the modular system worked very well, I created a new module to hold the disclaimer and use mt-include on the main index to call it. The trick is to change the main index and category archive to show categories rather than entries. 
<br />]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2007/09/movabletype-4-upgrade-templat.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2007/09/movabletype-4-upgrade-templat.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">weblog</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">movabletype</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">website</category>
            
            <pubDate>Sat, 01 Sep 2007 15:39:53 +0800</pubDate>
        </item>
        
        <item>
            <title>movabletype 4 upgrade - installation</title>
            <description><![CDATA[I guess I can break down the process of upgrading into 3 parts: Installation, Templates and Styles. I'll split them up into 3 posts.

<strong>Installation</strong>

There are <a href="http://www.movabletype.org/documentation/upgrade/" title="mtupgrade">two official methods</a> for upgrading. The first is to replace old files with new: this preserves existing indexes, templates and customisations. The second, and recommended, is to download MT4 into a fresh installation, then copy over plugins and customisations. Step 5 of the recommended way says:

<blockquote>Login to Movable Type - The first time you access Movable Type, the system will detect the new version of MT installed on your system and take you through the automated process of upgrading your database. When this process is complete, you will be able to begin using Movable Type immediately.</blockquote>

Except it didn't work for me. When I logged in as usual by pointing the browser to mt.cgi I got a server 500 error. What SixApart didn't point out, or assumed, was that the permissions on the cgi files are correctly set. This isn't the case. In any event, Elise's instructions on <a href="http://www.learningmovabletype.com/a/00156633_safe_upgrading/" title="lmt">how to safely upgrade to mt3.3</a> also apply for mt4. The steps I followed:
<ol>
<li>back up everything -- ftp the entire site to my computer, exported all entries by clicking the Import/Export button, exported the database using myphpadmin</li>
<li>rename 3.35 folders -- mt became mt3.35 and mt-static became mt-static3.35</li>
<li>place the mt4 folders in their proper place on my hard disk -- the mt folder in cgi-bin and mt-static in the root directory</li>
<li>make a duplicate of mt-config.cgi-original and call it mt-config.cgi</li>
<li>edit mt-config.cgi to configure urls, paths, database and to copy the customised directives from the mt3 mt-config file</li>
<li>ftp mt4 files to the server</li>
<li>I did not copy plugins into the new installation -- I'll reinstall the ones I need after installation</li>
<li>change the permissions of all cgi files to 755</li>
<li>login as normal</li>
<li>hey presto! I got the Time to Update prompt</li>
<li>allow to update then return</li>
<li>afterwards change permissions of old cgi files to 644</li>
</ol>

<img src="http://www.invisiblecompany.com/images/mt4upgrade.jpg" alt="mt4upgrade" border="2" /><br />

I was then greeted with the new "back in black" dashboard. Heh, they even took the name from Wordpress. What I like about the dashboard:
<ul>
<li>looks clean and sleek</li>
<li>easy stats -- though it's probably more useful for a multi-authored, more complicated blog</li>
<li>system-wide configurations -- very useful for those of us with more than one blog in the installation</li>
<li>switching to another blog brings me to (roughly) the same point in that blog rather than the homepage</li>
<li>autosave</li>
<li>easy edit entry screen, with tabs for body and extended body, easy selection of tags and categories (pop ups are gone forever, thank god)</li>
<li>wysiwyg preview</li>
<li>publish (what used to be rebuild) is faster and is on the main menu
<li>did I mention the shiny black header?</li>
</ul>

What I dislike about the dashboard:
<ul>
<li>posting a new entry is now 2 extra clicks away; they desperately need to list all the blogs on the home dashboard page to give users one click posting (ie the old dashboard). I know I can set up bookmarklets but I don't like them [<strong>ETA</strong>: there's a <a href="http://plugins.movabletype.org/my-blogs/" title="my blogs plugin">plug-in</a> which replicates the 3.35 screen which is great. my bugbear is that it's at the bottom of the screen]</li>
<li>the contextual menus activate far too easily, just mouse over accidentally and they drop down</li>
<li>no breadcrumbs -- going back and forth when updating templates (more later) was a nightmare of clicking, clicking and more clicking</li>
<li>while the stats are interesting, it's of little or no use for me as a single author on a personal site</li>
<li>too much clicking</li>
</ul>

<img src="http://www.invisiblecompany.com/images/mt4dashboard.jpg" alt="mt4dashboard" border="2" /><br />



<br />]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2007/09/movabletype-4-upgrade.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2007/09/movabletype-4-upgrade.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">weblog</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">movabletype</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">website</category>
            
            <pubDate>Sat, 01 Sep 2007 14:19:33 +0800</pubDate>
        </item>
        
        <item>
            <title>favicon in bloglines feeds</title>
            <description><![CDATA[<div class="floatleft"><img src="http://www.invisiblecompany.com/public%20images/bloglinesfeed.jpg" alt="bloglinesfeed" border="2" /><br /></div>
I have about 30-odd feeds on bloglines, which is around average. According to their <a href="http://www.bloglines.com/help/faq#NumSubs" title="bloglines">faq</a> the average is more than 20 (I wonder how more than a certain number can be considered as average). I subscribe to quiet thoughts and pizzaorme -- so I can be notified if there's a comment on my website; and to keep track of mm. :)

What's always been a niggling annoyance is that my favicon doesn't appear in either feed. I've noticed more and more of my feeds getting their favicon "noticed" by bloglines, but it's been at least 2 years and mine is still blank. I know it's probably cos the favicon is in the root directory whereas the feeds are in their own folders.

Googling pointed me to a couple of forums but the answer seems to be "email bloglines with your url". Not satisfactory, and I imagine not bloglines' preferred method. 

It was easy when I found it. I need to Claim my urls first, by going to my profile and clicking on Publisher Tools. I entered the site url and it found the 3 feeds: rdf, xml, atom. I then needed to do 2 things to prove my ownership:
<ol><li>make a new post with a code they gave me</li>
<li>add a code to the index template</li></ol>

Clicking on Verify and it confirmed that I managed to claim 2 out of the 3 feeds. For some reason the rdf feed didn't authenticate, probably because it's old. I subscribe to the xml one anyway, so it was fine.

Once verified, I returned to the Publisher Tools page and there was an Edit link next to each feed url. I was then able to specify the location of the favicon in the edit menu.

I wonder why this isn't in the Help section, or at least more obvious. 

<br clear="all" />]]></description>
            <link>http://www.invisiblecompany.com/shiny parts/archives/2007/08/favicon-in-bloglines-feeds.php</link>
            <guid>http://www.invisiblecompany.com/shiny parts/archives/2007/08/favicon-in-bloglines-feeds.php</guid>
            
                <category domain="http://www.sixapart.com/ns/types#category">images</category>
            
                <category domain="http://www.sixapart.com/ns/types#category">my other sites</category>
            
            
                <category domain="http://www.sixapart.com/ns/types#tag">marketing</category>
            
                <category domain="http://www.sixapart.com/ns/types#tag">website</category>
            
            <pubDate>Tue, 28 Aug 2007 12:00:00 +0800</pubDate>
        </item>
        
    </channel>
</rss>
