Easy Retweet Plugin

Posted By: Mark Aplet 8 Comments July 09, 2009

Easy Retweet Plugin

UPDATE: This plugin has been updated! Download the newest version here.

Earlier today, John Resig released a script called Easy Retweet for tracking the number of people visiting his blog from Twitter. It's a stand alone script than can be used anywhere you like. All you need to do is make a link with a class of "retweet" and your done. Of course there are other options available and I encourage you to check John's blog post where he lists all the available options for creating a link.

Since the script was so simple I thought I would make a very simple Mango Blog plugin out of it. The plugin has two possible functions. By default the plugin will create a new sidebar pod and automatically generate the retweet button for any page you include the pod on.

If you don't like the sidebar pod, you can disable it and simply include the retweet script into your template and make links manually in your blog posts or anyplace in your template that you specify.

Note: I barely tested the plugin before posting it, but it all appeard to work in the few themes that I tested it out on. Let me know if you discover any bugs.

Get the Easy Retweet Plugin

Plugin version:
1.0
Last Updated:
2009-07-10
Requires:
Mango Blog 1.3+
Auto-install URL:
http://www.visual28.com/assets/content/mango/EasyRetweet.zip

Tags: Freebies · Mango Blog · Plugins

8 comments so far ↓

  • 1 Adam Tuttle // Jul 13, 2009 at 6:20 AM
    Cool, thanks for packaging it up for us. I'll give it a whirl.
  • 2 Adam Tuttle // Jul 13, 2009 at 6:26 AM
    Ew, it uses bit.ly. Is there any way to change that? :(
  • 3 Bret // Jul 19, 2009 at 11:17 PM
    I just implemented this into my site tonight. works like a charm. I disabled the sidebar and went with the code snippet. It actually is a great way for twitter tracking, too. I didn't realize some of my posts had been retweeted. Gotta love #coldfusion developers!
  • 4 Laura Arguello // Jul 21, 2009 at 12:44 AM
    Hi Mark,
    It would be great if it would listen to the "beforePostContentEnd" event so that it can be automatically added to the footer of all posts.
  • 5 Mark Aplet // Jul 21, 2009 at 4:41 PM
    Good suggestion Laura. I will add that for sure!
  • 6 John Barrett // Jan 17, 2010 at 4:48 AM
    I am trying to change the font color for the amount of re tweets. I am using a black them, and the black text is not showing up.

    I looked in the /assets/retweet.js
    I changed the font color to #FFFFFF

    Under the // Style information section. I changed them all, but nothing seemed to work.

    By blog is at hawaiiflash.net/blog.
    is it possible to change the black text(to the left of the re tweet button) to white?

    Thanks so much,
    Johnny`-`
  • 7 Mark Aplet // Jan 17, 2010 at 10:12 PM
    Johnny, you can add your own styles and customize the look ad feel. If you wanted to make drastic changes I would suggest using the web developer tool bar for FireFox so that you can right click and see what's being rendered to the browsers DOM.

    In this case you should change "a.retweet" or possibly more specifically "a.retweet strong" depending on what styles are being overwritten. I didn't dig to deep but one of those should do the trick.
  • 8 John Barrett // Jan 19, 2010 at 2:30 AM
    Hi Mark,
    Thanks so much!

    I will try the firefox toolbar first, this way I can't mess up any of the code.

    Thanks again for pointing out which tag to look at as well.
    Johnny

Leave a Comment

Leave this field empty:

Theme Design By Mark Aplet

Super Powered by Mango Blog