<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
   <channel>
      <title>MovableType Tips</title>
      <link>http://www.mttips.com/</link>
      <description>Leo&apos;s Movable Type Tips and Tricks</description>
      <language>en</language>
      <copyright>Copyright 2008</copyright>
      <lastBuildDate>Thu, 15 May 2008 14:41:50 -0800</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/?v=3.2</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

            <item>
         <title>Leverage Your RSS Feed</title>
         <description><![CDATA[<p>Chances are your RSS or Atom feed template has a section that
includes likes like these:</p>
<blockquote style="font-family: 'Courier New', Courier, monospace;">
&lt;MTEntries lastn="15"&gt;<br />
&lt;item&gt;<br />
&lt;title&gt;&lt;$MTEntryTitle remove_html="1"
encode_xml="1"$&gt;&lt;/title&gt;<br />
&lt;description&gt;&lt;$MTEntryBody
encode_xml="1"$&gt;&lt;/description&gt;<br />
&lt;link&gt;&lt;$MTEntryPermalink
encode_xml="1"$&gt;&lt;/link&gt;<br />
&lt;pubDate&gt;&lt;$MTEntryDate
format_name="rfc822"$&gt;&lt;/pubDate&gt;<br />
&lt;/item&gt;<br />
&lt;/MTEntries&gt;</blockquote>
<p>If so, you're missing out on something very, very powerful.</p>
]]></description>
         <link>http://www.mttips.com/leverage_your_rss_feed.html</link>
         <guid>http://www.mttips.com/leverage_your_rss_feed.html</guid>
         <category>Tips</category>
         <pubDate>Thu, 15 May 2008 14:41:50 -0800</pubDate>
      </item>
            <item>
         <title>Place Ads Precisely with OpenAds</title>
         <description><![CDATA[<p><a href="/d-openads" target="_blank">OpenAds</a>, formerly known as PhpAds,
is an ad management server that many people are using to display and control ad
blocks on their web sites. My site <a href="http://ask-leo.com">Ask Leo!</a>
used OpenAds to serve up ads, including both Google's Adsense as well as
<a href="http://ask-leo.com/advertising_info.html#website">direct purchase
advertising</a>.</p>
<p>The "problem" is that OpenAds doesn't natively support the level of ad
placement that I'm looking for. However things like that don't always stop me.
This article describes the approach I've taken using OpenAds to place ads in my
MovableType generated pages:</p>
<ul>
<li>in specific articles</li>
<li>on specific pre-defined positions on a page</li>
<li>any combination of those two</li>
<li>in any specific category</li>
<li>site wide</li>
</ul>
<p>All while maintaining <em>most</em> of OpenAds other features including
weighted distribution of ad content.</p>
<p>Now, I do have to throw out a few caveats:</p>
<ul>
<li>As I write this I'm running OpenAds 2.0.11. Naturally later versions might
add features and functionality that make my efforts redundant.</li>
<li>I'm going to assume you have at least a basic understanding of OpenAds.
It's non trivial, and documenting it is well beyond the scope of this site, and
for that matter, my abilities.</li>
<li>My approach might be stupid. Someone more familiar with OpenAds might well
say "you should do it this way" and define something much more elegant. Fair
enough. My approach works, though.</li>
</ul>
<p>With all that butt-covering out of the way, let's dive in.</p>
]]></description>
         <link>http://www.mttips.com/place_ads_precisely_with_openads.html</link>
         <guid>http://www.mttips.com/place_ads_precisely_with_openads.html</guid>
         <category>Tricks</category>
         <pubDate>Sat, 29 Sep 2007 15:03:23 -0800</pubDate>
      </item>
            <item>
         <title>Tolerate Broken URLs</title>
         <description><![CDATA[<p>If you <a href="http://mttips.com/use_meaningful_page_names.html">use meaningful page names</a>
on your site, you'll often end up with URLs that are quite long. For example
out on Ask Leo! you'll find an article
entitled <a href="http://ask-leo.com/whats_the_difference_between_windows_live_messenger_windows_messenger_msn_messenger_and_windows_messenger_service.html" target="_blank">What's the difference between Windows Live Messenger, Windows Messenger, MSN Messenger and Windows Messenger Service?</a>.
If you look at the resulting URL, it's <i>very</i> long. So long, in fact, that I need
to chop it down to show it to you here:</p>
<blockquote>
http://ask-leo.com/whats_the_difference_between_windows ... vice.html
</blockquote>
<p>More commonly you'll recognize this situation in email programs when you try to email someone
a long link:</p>
<blockquote>
<a href="http://ask-leo.com/whats_the_difference_between_windows_live_messenger_" target="_blank">http://ask-leo.com/whats_the_difference_between_windows_live_messenger_</a><br />
windows_messenger_msn_messenger_and_windows_messenger_service.html
</blockquote>
<p>As you see above, email programs see the "http://" on the first line and automatically
treat the rest of it as a link. But since the line is too long to fit on the screen,
they break it into two, and then don't include the second half in that link.
If you click on the highlighted link you get an error from the destination
site, since you didn't provide the full page URL.</p>
<p>And yet, if you click on that partial link above for Ask Leo!, you'll get to the intended page
anyway.</p>
<p>Ask Leo! tolerates broken URLs. Here's how I do it.</p>
]]></description>
         <link>http://www.mttips.com/tolerate_broken_urls.html</link>
         <guid>http://www.mttips.com/tolerate_broken_urls.html</guid>
         <category>Tricks</category>
         <pubDate>Fri, 18 May 2007 16:05:08 -0800</pubDate>
      </item>
            <item>
         <title>Leaving Breadcrumbs in Movable Type</title>
         <description><![CDATA[<p>Breadcrumbs are staple (pardon the pun) of many web sites. You've seen them,
they're the line typically near the top of an article page that shows you where
in the tree of semi-organized information that article resides. Something
like:</p>
<blockquote>
<p>News Home : World : National : Local : Seattle : Space Needle on Fire</p>
</blockquote>
<p>Each of those encompasses everything to its right, and each would be a link
to a summary page for that level of topic. The last might be the actual page
you're on.</p>
<p>If you've used Movable Type for any length of time, you might be thinking
something about categories, sub categories and the like.</p>
<p>As was I, when a friend prodded me with "If you come up with an MT hack for
that, please post it."</p>
<p>I hate a challenge that I can't resist if I'm already overbooked - particularly
for something I want myself. :-)</p>
]]></description>
         <link>http://www.mttips.com/leaving_breadcrumbs_in_movable_type.html</link>
         <guid>http://www.mttips.com/leaving_breadcrumbs_in_movable_type.html</guid>
         <category>Tricks</category>
         <pubDate>Fri, 19 Jan 2007 16:15:27 -0800</pubDate>
      </item>
            <item>
         <title>Use Meaningful Page Names</title>
         <description><![CDATA[<p>It's a fairly common search engine technique to use "meaningful" page names
in your URL. "apples.html" is seen by the search engines as more likely to be
about apples than, say, "000023.html". Similarly, pages that are at the root of
your site may be considered more "important" than those in subdirectories.</p>
<p>My approach at <a href="http://ask-leo.com" target="_blank">Ask Leo!</a> is
to use the article title as the basis for the URL and to place it in the root.
Fortunately, MovableType makes both of the steps easy.</p>
]]></description>
         <link>http://www.mttips.com/use_meaningful_page_names.html</link>
         <guid>http://www.mttips.com/use_meaningful_page_names.html</guid>
         <category>Tips</category>
         <pubDate>Thu, 14 Dec 2006 11:22:37 -0800</pubDate>
      </item>
            <item>
         <title>Changing Page Names Mid-Stream</title>
         <description><![CDATA[<p><a href="http://ask-leo.com">Ask Leo!</a> was originally set up to name
files using MovableType 2.x's default structure. Individual articles were
archived with old style names of the form:
http://ask-leo.com/archives/000001.html</p>
<p>That works, but current thinking is that search engines "like" seeing
keywords in URLs. Since I wanted to do all I could to improve my search engine
rankings, I decided to change my page names from being numbered and in a
subdirectory to being the article title and in the root of the site.</p>
<p>Changing names midstream becomes a bit of a challenge. With several hundred
articles on the site already, I wanted to switch to the new naming scheme while
still allowing the old-style URLs, that people had perhaps bookmarked, to
work.</p>
<p>I'm presenting these steps in the order that you need to do them to a live,
running site. Review the entire set of steps before proceeding. If you follow
these steps in this order, your site should never appear "down" and links will
not be broken as you make this conversion.</p>
]]></description>
         <link>http://www.mttips.com/changing_page_names_midstream.html</link>
         <guid>http://www.mttips.com/changing_page_names_midstream.html</guid>
         <category>Tricks</category>
         <pubDate>Sun, 08 Oct 2006 20:21:30 -0800</pubDate>
      </item>
            <item>
         <title>Get creative with Templates</title>
         <description><![CDATA[<p>There's nothing that says MovableType templates can't be added to create
other types of files.</p>
<p>The challenge I had was this: I want to be able to have a list of all my
category archive pages on some of the other pages that are not built by
MovableType.</p>
<p>The solution? Create an index template that contains that list - and only
that list - and have it produce an include file that I can use anywhere I
like.</p>]]></description>
         <link>http://www.mttips.com/get_creative_with_templates.html</link>
         <guid>http://www.mttips.com/get_creative_with_templates.html</guid>
         <category>Tips</category>
         <pubDate>Sun, 23 Jul 2006 15:47:25 -0800</pubDate>
      </item>
            <item>
         <title>Get creative with HTML</title>
         <description><![CDATA[  <p>
   Remember that the goal of the templates is simply to transform your content into your desired results - normally HTML pages for
   display.
  </p>
  <p>
   When dealing with templates, it's easy to think that you have to do everything using MT's constructs and easier still to get
   stuck into the rut of using only the examples or variations of the default templates.
  </p>]]></description>
         <link>http://www.mttips.com/get_creative_with_html.html</link>
         <guid>http://www.mttips.com/get_creative_with_html.html</guid>
         <category>Tips</category>
         <pubDate>Sat, 24 Jun 2006 15:46:31 -0800</pubDate>
      </item>
            <item>
         <title>Repurpose the Excerpt</title>
         <description><![CDATA[<p>I found myself wanting to add a "Summary" for each article on <a href=
"http://ask-leo.com">Ask Leo!</a> The summary is written by hand for each
article - partly for the search engines, and partly to help people decide
whether the article is, in fact, what they're looking for.</p>
<p>One complicating factor is that with over 860 articles, I wasn't about to
add summaries for most. So I wanted summaries to be visible only if a summary
had, indeed been written.</p>
<p>As we all know, there is no "Summary" field in MovableType, instead there's
something called an "Excerpt". Excerpt serves my purposes well, but only after
a minor configuration change.</p>]]></description>
         <link>http://www.mttips.com/repurpose_the_excerpt.html</link>
         <guid>http://www.mttips.com/repurpose_the_excerpt.html</guid>
         <category>Tips</category>
         <pubDate>Tue, 13 Jun 2006 10:45:00 -0800</pubDate>
      </item>
            <item>
         <title>Dealing with a Wealth of Comments</title>
         <description><![CDATA[  <p>
   One of the interesting things about writing a technical Q&amp;A site that deals primarily with Microsoft Windows is that people
   have no shortage of questions - and opinions. Lots of questions and lots of opinions. When some article pages became slow to
   load due to there being literally hundreds of comments I needed a solution. What I found was a MovableType extension:
   <a href="d-mtpaginate" target="_blank">MTPaginate</a>.
  </p>
  <p>
   Have a look at the article <a href="http://ask-leo.com/what_are_lsass_lsassexe_and_sasser_and_how_do_i_know_if_im_infected_what_do_i_do_if_i_am.html" target="_blank">What are "LSASS", "LSASS.EXE" and "Sasser" and how do I know if I'm infected? What do I do if I am?</a> -
   it's one of my most viewed articles. One of the most commented on also. As I type this there are almost 400 comments on the
   article. Displaying all 400 at once (the way that MovableType's default templates work) would make for a very unwieldy page.
  </p>
  <p>
   Now my approach is this:
  </p>
]]></description>
         <link>http://www.mttips.com/dealing_with_a_wealth_of_comments.html</link>
         <guid>http://www.mttips.com/dealing_with_a_wealth_of_comments.html</guid>
         <category>Tips</category>
         <pubDate>Fri, 28 Apr 2006 15:44:15 -0800</pubDate>
      </item>
            <item>
         <title>MovableType Styles</title>
         <description><![CDATA[<p>The default set of templates that come with MovableType make extensive use
of the stylesheet "styles-site.css". It's possible, by manipulating only the
stylesheet, to achieve <em>dramatically</em> different looks for a site based
on the default templates.</p>
<p>MT's default CSS is <em>far</em> from trivial, nor is it documented anywhere
that I can find. It requires an investment of time to understand. My original
"Tip" was to invest that time understanding the default CSS.</p>
]]></description>
         <link>http://www.mttips.com/movabletype_styles.html</link>
         <guid>http://www.mttips.com/movabletype_styles.html</guid>
         <category>Tips</category>
         <pubDate>Sun, 23 Apr 2006 22:26:17 -0800</pubDate>
      </item>
            <item>
         <title>Reader Comments</title>
         <description><![CDATA[<p>Rather than sprinkle comments throughout <b>MovableType Tips</b>, I'm setting aside this item specifically for your questions and feedback.</p>]]></description>
         <link>http://www.mttips.com/reader_comments.html</link>
         <guid>http://www.mttips.com/reader_comments.html</guid>
         <category>General</category>
         <pubDate>Sun, 23 Apr 2006 22:17:35 -0800</pubDate>
      </item>
            <item>
         <title>Get between your Entry Body and Extended Entry</title>
         <description><![CDATA[<p>When you create a new entry in MT, you're presented with the default entry
form that contains areas for both an Entry Body and an Extended Entry. Most
folks use them for either of two purposes:</p>
<ol>
<li>The entry body is the "tease" portion of the entry that goes on to the home
page, while the extended entry is the rest of the entry that shows up only on
the entry's individual archive page.</li>
<li>The entry body is what shows up in the RSS feed. The extended entry is the
rest of the entry that shows up only on the entry's individual archive
page.</li>
</ol>
]]></description>
         <link>http://www.mttips.com/get_between_your_entry_body_and_extended_entry.html</link>
         <guid>http://www.mttips.com/get_between_your_entry_body_and_extended_entry.html</guid>
         <category>Tips</category>
         <pubDate>Sat, 22 Apr 2006 21:32:53 -0800</pubDate>
      </item>
            <item>
         <title>Next and Previous - Within a Category</title>
         <description><![CDATA[<p>MT automatically gives you the next and previous items for your individual
archives with <code>&lt;MTEntryNext&gt;</code> and
<code>&lt;MTEntryPrevious&gt;</code> items. The problem is that's within the
global list of all entries within your blog. What if you wanted to link to the
next or previous item within a given category?</p>
<p>As an example, check out any of the entries on <a href=
"http://www.forwardedfunnies.com" target="_blank">Forwarded Funnies</a>. There,
in the upper right, you'll see not only a previous and next for "All Entries",
but a separate previous and next for entries of the same rating as the current.
In other words a previous and next for all the "G-Rated" entries if the current
item is itself G-rated.</p>
<p>Needless to say, ratings within Forwarded Funnies are simply separate MT
categories.</p>
<p>My approach uses a combination of PHP code generated from a category archive
template, and a <a href="/use_serverside_includes.html">server-side
include</a>, or "SSI", in the individual entry archive template.</p>
]]></description>
         <link>http://www.mttips.com/next_and_previous_within_a_category.html</link>
         <guid>http://www.mttips.com/next_and_previous_within_a_category.html</guid>
         <category>Tips</category>
         <pubDate>Sat, 18 Feb 2006 15:35:48 -0800</pubDate>
      </item>
            <item>
         <title>Dealing with Comment Spam</title>
         <description><![CDATA[<p>Comment spam is the bane of the modern weblog. In an effort to boost their
own ranking in the search engines, nefarious webmasters create software tools
or "bots" that go out, find weblogs, and post scores of comments which contain
links back to their sites. Those links are then seen by the search engines,
which use the general rule that "the more people link to you, the more
important you must be". The goal of comment spam is that the spammers' websites
about poker, Viagra and body part enlargement get better search engine ranking
as a result.</p>
<p>As weblog owners, not only do we not want to help the spammers, but we also
just don't want their off-topic posts included in our weblogs.</p>
]]></description>
         <link>http://www.mttips.com/dealing_with_comment_spam.html</link>
         <guid>http://www.mttips.com/dealing_with_comment_spam.html</guid>
         <category>Tips</category>
         <pubDate>Tue, 14 Feb 2006 17:33:00 -0800</pubDate>
      </item>
      
   </channel>
</rss>
