***UPDATE***
This plugin no longer works. In June of 2013, Twitter decided to change their API and make grabbing a single tweet from a user very complicated. Because of this, the code for this plugin is useless. Don’t use it!
In an earlier post I showed how to get your latest tweet on your site without a plugin. It has been an extremely popular post, but for some folks. it was just over their head. I have had quite a few people email me asking to make a simple plugin to accomplish the same task, so that is what I did. I pretty much had all the code already, I just needed to wrap it nicely in to a plugin.
It is called PB-Tweet, and you can download it now on Extend. PB is for PluginBuddy in case you live under a rock.
So download it, test it out, and please let me know what you think. If you like it, please post a link to your site that is using it in the comments of this post.
Awesome plugin!
I was only wondering how can you make
your own @username also clickable?
I hope you can help me out.
Thanks in advance.
Patrick
Patrick –
You will have to dig in to the code a bit to do that. If you feel comfortable with it, open the tweetbuddy.php file and go to line 77.
Change it to this:
$prefix = "<b style='font-style:italic; vertical-align:top;'><a href='http://twitter.com/" . $username . "'>@{$this->_options['twitter_id']}: </a></b>";
That should do the trick.
-matt
Hello Matt,
You’re a true hero!
Thnx
Patrick.