<< Next Previous >>

del.icio.us tags redux

del.icio.us tags redux

| 2 Comments | 0 TrackBacks

As you may have noticed, I've changed the look of the homepage a little bit: I added Technorati tags to all the posts. I also added a link to bookmark each post on del.icio.us.

But the point of all this? I've borrowed from someone else's work and modified it a bit to make the same keywords that it links to technorati also link to del.icio.us.

del.icio.usTags
I've bastardized a Movable Type plugin that will take an entry's Keywords field and turn them into del.icio.us tags. If you want to see it in action, look at the bottom of this entry.

Download del.icio.usTags-0.1 (zip)
(Jan Theofel created a PHP function for Movable Type 3's dynamic publishing, which is now included. Thanks Jan!)




NAME
del.icio.usTags - Plugin for Moveable Type

DESCRIPTION
A variable plugin that outputs an entry's keywords as links to del.icio.us Tags. For
more information on del.icio.us tags, see http://del.icio.us/help/tags

REQUIREMENTS
Moveable Type 2.2 or higher

Tested on Movable Type 2.661 and 3.14

INSTALLATION
Put del.icio.usTags.pl in the plugins directory for your Moveable Type
installation and make sure that the permissions make it readable by the web
server.

You may also want to customize your New Entry form to display the keyword
field. Choose New Entry then at the bottom of the form click the link
Customize the display of this page. On the form that pops up choose
Custom and then check all the fields you want to display, including
Keywords. Click the Save button.

USAGE
Add keywords for your post separated by spaces. For example, the
deliciousTags plugin might get these tags: technorati tags MovableType

Note that Movable Type was turned into one word: MovableType. If it had
been spelled with the space, each word would have been tagged with
Movable and Type but not Movable Type.

In your template add

<$MTdeliciousTags$>

where you want to display tags. By default it outputs the links with the
class "deliciousTags" but you can optionally override this with the
"class" attribute:
<$MTdeliciousTags class="someotherclass" $>

For more advanced formatting use Brad Choate's IfEmpty plugin from
http://www.bradchoate.com/weblog/2004/10/20/mtifempty

For example:

<MTIfNotEmpty var=&quot;EntryKeywords&quot;>
<div id=&quot;some_id&quot;>
<h2>Tags</h2>
<p><$MTdeliciousTags$></p>
</div>
<MTIfNotEmpty var=&quot;MTEntryKeywords&quot;>

COPYRIGHT
This program is copyright 2006 George Hotelling (http://george.hotelling.net/) and
Adam Gerstein (http://adam.gerstein.net) and licensed under the GPL General Public License.

No TrackBacks

TrackBack URL: http://www.agerstein.com/cgi-bin/MT-4.25-en/mt-tb.cgi/1391

2 Comments

Adam, many thanks for this plugin. I have it working pretty much like yours, but the cm.php part of the Technorati link escapes me. What does the PHP script do for you?

The plugin works terrific, thank you!

Leave a comment

Recent Actions

  • Adam saved geekgirldiva's tweet, "Trying really hard not to run out to the warehouse to try on the Serenity Malcolm Reynolds Browncoat Replica that just arrived. #willpower" as a favorite Adam saved geekgirldiva’s tweet, “Trying really hard not to run out to the warehouse to try on the Serenity Malcolm Reynolds Browncoat Replica that just arrived. #willpower” as a favorite
  • Adam saved fraying's tweet, "Early hackers were about exploration of virtual frontiers. 4chan has a more giddy darkness about it. Less Cousteau, more Borat." as a favorite Adam saved fraying’s tweet, “Early hackers were about exploration of virtual frontiers. 4chan has a more giddy darkness about it. Less Cousteau, more Borat.” as a favorite
  • Adam saved gknauss's tweet, "Some people, upon waking, don't immediately think, "Man, am I tired." These people are called "childless." Also: "Smug bastards."" as a favorite Adam saved gknauss’s tweet, “Some people, upon waking, don’t immediately think, "Man, am I tired." These people are called "childless." Also: "Smug bastards."” as a favorite
  • Adam saved robhimself79's tweet, "@darthvader 3 words. Baby ewok slippers." as a favorite Adam saved robhimself79’s tweet, “@darthvader 3 words. Baby ewok slippers.” as a favorite
  • Adam saved darthvader's tweet, "Subjects of the Empire, we have a winner. Well done @robhimself79 - http://twitter.com/robhimself79/status/19386981625" as a favorite Adam saved darthvader’s tweet, “Subjects of the Empire, we have a winner. Well done @robhimself79 - http://twitter.com/robhimself79/status/19386981625” as a favorite
  • Adam saved ChrisPirillo's tweet, "How do find everything once you finish moving? http://lgno.me/bWGvUk" as a favorite Adam saved ChrisPirillo’s tweet, “How do find everything once you finish moving? http://lgno.me/bWGvUk” as a favorite
  • Adam saved tolles's tweet, "worth watching. RT @jwz: Scott Pilgrim vs. The Matrix: http://jwz.livejournal.com/1280129.html" as a favorite Adam saved tolles’s tweet, “worth watching. RT @jwz: Scott Pilgrim vs. The Matrix: http://jwz.livejournal.com/1280129.html” as a favorite
  • Adam tweeted, "@Ihnatko stop toying with my stomach!!!!!" Adam tweeted, “@Ihnatko stop toying with my stomach!!!!!”
  • Adam tweeted, "@Salvegas24 @lacharitye well he does look like a young 'un..... Probably gets carded all the time!" Adam tweeted, “@Salvegas24 @lacharitye well he does look like a young ‘un….. Probably gets carded all the time!”
  • Adam tweeted, "RT @wilshipley: To celebrate Youth Literacy Day, I’m picking beta testers for our new SECRET iPhone toy from people who retweet “http:// ..." Adam tweeted, “RT @wilshipley: To celebrate Youth Literacy Day, I’m picking beta testers for our new SECRET iPhone toy from people who retweet “http:// …”

Recent Entries

Twitter only device appears - sign of the apocolypse?
The Wall Street Journal | Blogs brings us the tale of the TwitterPeek. Similar to the Peek Pronto, and produced…
Ryan Seacrest | What's Happening
Yes, I'm ashamed to admit that I went to Ryan Seacrest's site. But the video isn't horrible, and she certainly…
TV on DVD sale...
Limited offers this time around, but some good choices in here. They started with items under $15, and I threw…

Photos!