Twitter button with pre-shortened URLs

Cyclelicious Shop
Bicycle Lights - Wald Baskets - Dahon - Strida

IMPORTANT: This content is deprecated. Please visit the new CYCLELICIOUS 2.0.
Monday, August 31, 2009
By Yokota Fritz

I was stuck inside all weekend recovering from H1N1, so I spent some time creating the Bike Shorts URL shortening service for my use, but I'd be delighted if you used it also. Once I have a critical mass of links in the database you'll see recent and top links listed over there too.

My main motivation for this is to have my own pre-shortened URLs for my blog posts. I've had the "Tweet Meme" button at the top of my posts for a while, but I always thought they were a little clunky. At the bottom of this post you'll now see a tiny little Twitter button listed alongside the other social media buttons. Go ahead and try it if you want.

You can add this button with pre-shortened URLs to your own blog. The Javascript code you need to add looks like this:

<script type="text/javascript"
src=" title&url=">

Replace post title with the code for your blogging platform for the title of your post, and with the code for your permalink page URL. For, for example, add this code to your Template:

<script type="text/javascript"

In Wordpress, you can add this code to your theme:

<script type="text/javascript"
src="<$?php the_title() ;?>&url=<?php the_permalink() ;?>">

...or could just use the WP Plugin that auto-tweets each post. Point to in the settings and you should be ready to go.

Please let me know what you think of Bike Shorts and what kinds of features you'd like to see with it.

Huge props to Steve Vance for some technical pointers and the domain name suggestion.

    IMPORTANT: Please post comments for this article at the new CYCLELICIOUS 2.0 version of this page.
I know. I'm a genius. Thx.
geek : )
Post a Comment

Links to this post:

Create a Link

Blog Widget by LinkWithin Cyclelicious Home

Scotts Valley Cycle Sport

Scotts Valley Cycle Sport Santa Cruz California


Powered by Blogger

Subscribe to
Posts [Atom]