« Wingsuit Base Jumping on Vimeo | Main | My Gmail Experiment »

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e54fd6bffd88330148c8504aa5970c

Listed below are links to weblogs that reference Add Retweet Links to Your Blog Entries in Moveable Type:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Amy Iris

Pretty Cool!

So are the values $MTEntryTitle$ and $MTEntryPermalink$ universally accepted? Is that a Blogger thing, or will it work in Word Press, etc.?

As you probably know, I'm all about automations!

-AI

Tom Karlo

Amy,

Those tags are the ones used in MoveableType. Folks using Wordpress or other platforms will need to substitute in the appropriate tags for their system. Since the whole clip should go into the entry template (which already includes the substitution tags for the title and the URL, generally) it should be pretty straightforward to find them in the existing template.

Tom

Jag SEO Follow

Thanks for the code how will i fix a width size for long urls?, some times it appears

Tom Karlo

A "long" URL may appear in the retweet if the overall message plus the URL is short enough that Twitter decides not to shorten it. One option might be to replace the "MTEntryPermalink" with a pre-shortened link.

The longer URL showing up in the Twitter window when the user clicks on the retweet link is generally not a problem - Twitter will automatically shorten links and also keeps the longer version of long tweets available for users on the web.

BiblioScribe

What if $MTEntryTitle$ has the potential for containing an apostraphe. The escape will not work and the javascript will not run. Is there a way around?

Tom Karlo

Thanks to the previous comment I have updated the code slightly to fix that bug with handling apostrophes.

Jag SEO: URL shortening is managed by Twitter in this case, so unless you want to add a URL shortening mechanism to your CMS and have it done there isn't any way to control it as long as you are trying to do automated Tweets. I _have_ seen an increasing number of web sites that are doing their own short URLs (Zappos.com for one) so I wouldn't be surprised if someone made a short URL generator plugin for MT one of these days.

airguitarandy

Hey great post, Im trying to make a retweet link for in my youtube videos info section like in the vid below.

http://www.youtube.com/watch?v=N0B4ysclq4U

Im guessing it involves some sort of routing to a script via the bit.ly the link!? Would be great if you could do a post on how to do this!

That would rock, cheers, Andy

The comments to this entry are closed.

My Svpply