I added a TweetMeme to my Movable Type blog

| 5 Comments | 1 TrackBack

Wow, in just 10 minutes I added a TweetMeme button to the entries and the home page of this Movable Type blog.

Why am I stressing the "Movable Type" part of that sentence? Because if you happen to blog using Wordpress then there's retweet plugins coming out of your wazzoo. For those of us using MT there doesn't seem to be a single one. So you have to add the code to your template yourself - which can be scary to some.

It's really dead easy. Especially in a template like this one, where the compact button fits neatly along side the entry title.

The easiest to do is the individual entry archive:

  1. Navigate to the "Blog Template" page and select the "Entry" link.
  2. Find the code "<$mt:EntryTitle$>". This will probably be in a line that starts and ends <h1 blah blah blah> ... <h1>
  3. Immediately before the "<h1" insert the following code:
    <p style="float:right; margin: 0 0 0 5px; padding:0;">
    <script type="text/javascript">
    tweetmeme_style = 'compact';
    tweetmeme_source = 'your username';
    </script>
    <script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
    </p>

If this has been any help RT it (using the button) and leave a comment. If you want details on how to add it to the front page let me know.

Reblog this post [with Zemanta]

1 TrackBack

TrackBack URL: http://www.theaardvark.co.uk/mt/mt-tb.cgi/29

About 3 months ago I blogged about adding a TweetMeme button to this Movable Type blog. In that entry I gave guidance on adding the button to an individual entry page on one of the standard templates where the "compact"... Read More

5 Comments

Thanks for this tweetmeme tip.

The icon isn't lining up nicely on the right. It is sitting a bit too high.

http://www.charlesandhudson.com/archives/2009/10/kitchen_design_and_planning_for_the_handicapped.htm

I didn't change any of the margins. Any suggestions? Thanks.

Are there any difference between Movable type blogs and Joomla ?

This is a great Movable Type tip, particularly for those just starting out with (re-)coding their templates.

You mentioned that there's a way to get it onto the front blog page? How do you accomplish that?

Your instructions are great, and I got it on the Entry pages in 2 minutes!

But I realized that you should also include it in the homepage, otherwise you won't see it there.

To do that, I went to the Templates, found the Entry Summary template and edited it.

Then found the <h2> tag where the title of the post begins, and followed the same instructions.

I'm not sure if other blogs are set in the same way, but in my case this is the place where I pasted the code:

<div id="entry-<$mt:EntryID$>" class="entry-asset asset hentry">
<div class="asset-header">
####PASTE CODE HERE###
<h2 class="asset-name entry-title"> ...

Hope this helps other users

Leave a comment

About this Entry

This page contains a single entry by theaardvark published on October 25, 2009 7:48 PM.

I look like Bruce Willis. :) was the previous entry in this blog.

Razor Grrrr! is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.