AJAX Twitter plugin for Wordpress

by Kishore on September 29, 2008

image I have been working on a plugin which I had early posted on my personal blog. I have finished the Twitter plugin for Wordpress now and ready to release for public download.

This plugin is using the Twitter API to get and post the updates. You need to have a twitter account to post updates. I am sure now almost all the bloggers use twitter.

Features

  1. You can update your twitter status from your blog
  2. You can view and display public updates on your blog
  3. You can view and display your followers updates on your blog
  4. You can view and display your followers on your blog and increase your followers
  5. Simple installation
  6. Widget Ready, just need to enable to use
  7. Can you displayed anywhere on your blog, by just adding a simple code if you do not want to display using the widget
  8. Widget fully customisable, size, font, font size, colour, number of updates, number of followers, etc
  9. Enable and disable different features
  10. Regular Updates

Installation

Installation is very simple, just upload the unzipped files to the plugins directory and activate the plugin. If you wish to display on the sidebar, just go to the widgets option as shown below

image

Settings

After activating the plugin, just go to the setting link , you will find the Kish Twitter settings link

image

Once you go to the settings, you will find all the options to customize the view of the “Kish Twitter” Widget

image

Options Explained

  • Twitter Enabled – If you want this plugin to work, you need to check this option or nothing will be shown even if the plugin is activated
  • Enable Public Updates – You can enable or disable public updates on your widget
  • Enable Followers Say – By enabling this, you can display the messages from your followers on your widget
  • Enable Rel = nofollow – You can add rel tag by enabling this
  • Enable Follow Me- You can enable this to get your followers details
  • Twitter User Name – You need to enter your username and password for this plugin to work
  • Maximum Info Lines – The maximum number of updates that you want to show on your widget. You will need to set this according to the size of the widget.
  • Maximum Users- You need to set this to display the number of followers and the number of twitters you follow
  • Font- Family – Name of the font that you want to use for this widget, example a series of fonts or font name
  • Font Size – Font size of the widget
  • Message – You can display a message on the footer of the widget
  • After you make the changes, just save the options

You can display the widget anywhere on your blog by just adding the following to your blog template

<? if (function_exists('printKishTwitter')) printKishTwitter(); ?>

If you have a questions please post it here.

UPDATE – Please check the latest version of Twitter Wordpress Plugin – Kish Twitter

Download Now

Possibly Interesting Posts

Google AdManager to be Upgraded DFP Small Business : If you are using Google Ad Manager and you were looking for features like an advertiser signing up /..[](0)
Hacked by GHoST61 - My Blog Got Hacked : My blog got hacked - One of my friend called me and told that my blog is hacked. I thought it was a ..[](0)
Wordpress MU Plugins, Themes and other tools : If you are using Wordpress MU  then you should surely be looking for Wordpress MU Specific plug..[](0)
New Guidelines for Plugin Developers - Wordpress : Mark Jaquith has written on his blog on the Wordpress plugin repository where Plugin Authors can hos..[](0)
Wordpress MU 2.9.1.1 Upgrade Error : Yesterday I upgraded my Wordpress MU installation to version 2.9.1.1 which has some fixes that I had..[](0)
Fill out your e-mail address to receive our free newsletter from Kishore Blog!
E-mail address:
Name:
 

{ 12 trackbacks }

WordPress Plugin Releases for 10/01 | Wordpress Blog NL
October 2, 2008 at 12:25 am
Customizable Ajax Twitter Plugin for Wordpress that auto refreshes - Daily SEO blog
October 2, 2008 at 2:58 pm
Configurable AJAX Twitter Plugin For Wordpress | BloggingBandit
October 3, 2008 at 12:37 pm
WordPress Plugin Releases for 10/01 | PATRONIT.NET
October 15, 2008 at 1:43 am
Customizable Ajax Twitter Plugin for Wordpress that auto refreshes | adtech ile reklam 2.0 dönemi ba?l?yor ve Trkycmhrytllbtpydrklcktr r10.net seo yar??mas?
October 19, 2008 at 1:41 am
Twitter Plugins - Twitter for Wordpress - Wordpress Twitter Plugin | Blogging Tools | Blogging OT
February 3, 2009 at 2:56 pm
Twitter – 140 Characters can do a lot
February 20, 2009 at 6:38 pm
Error Handling in PHP – Display Custom Message
March 24, 2009 at 9:42 am
Wordpress Twitter Plugins - 50 Best Twitter Plugins for Wordpress | Wordpress Jedi
June 12, 2009 at 2:20 pm
25+ Plugins de Twitter Para Wordpress
August 5, 2009 at 10:23 pm
Twitter wordpress plugins
August 12, 2009 at 4:49 pm
25+ Plugins de Twitter Para Wordpress « Tudo sobre Wordpress
January 24, 2010 at 1:25 pm

{ 74 comments… read them below or add one }

Jeff A October 2, 2008 at 2:09 am

Can activate but that is it. No options page and no widget show up.

Reply

Jeff A October 2, 2008 at 2:24 am

Found the problem, in this line you put in the wrong directory name.

[code]include_once($root.'/wp-content/plugins/kishore-twitter/functions.php');[/code]

change to;
[code]include_once($root.'/wp-content/plugins/kish-twitter/functions.php');[/code]

Reply

Jeff A October 2, 2008 at 2:26 am

sorry, that is from the file kish-twit.php for anyone who is trying to fix it.

Reply

Jeff A October 2, 2008 at 2:31 am

And then it broke my sidebar when the widget was put in there. Oh well, it is still buggy and I don’t have the time to debug.

Reply

Kishore October 2, 2008 at 5:11 pm

Jeff – use the code to display the widget < ?php if (function_exists('printKishTwitter')) printKishTwitter(); ?>

Reply

Kishore October 2, 2008 at 5:33 pm

Jeff I have cleared the path problem, please download and overwrite the files

Reply

vion October 3, 2008 at 10:23 pm

once i install he widget,it broke my sidebar…

Reply

Midcpro October 3, 2008 at 10:47 pm

Thanks for all the work you’re doing on this plugin. Today’s update of the plugin installs fine, and I was able to add the widget.
For some reason, it combined with my Recent Posts widget when I put the recent posts before Kish Twitter, and when I put Recent Posts AFTER Kish Twitter, It takes away all the themes styling of the widget. I’m using cutline, which is a pretty popular theme. Also, My tweets don’t show up, but I was able to add a tweet when that feature was enabled, so I figure I had the user/pass correct. Any ideas?

Reply

Kishore October 3, 2008 at 11:32 pm

-midcpro, it depends on the theme you use. I have tried on diffrent themes, some do have problems like this. try using the function to display on different location, it should work, can you try putting the widget on the left sidebar
-vion – Its again compatiblity problem with the theme design, I will update with a fix for this

Reply

Kevin W. October 14, 2008 at 9:42 am

good article, very useful.

Reply

Fred February 11, 2009 at 9:29 am

Kishore, I use the Revolution Template and would like to use your twitter in a category of it’s own, in fact would like to do the same as you did on this blog. What are the steps I would need to take to get a page up like yours.

Reply

Kishore February 11, 2009 at 1:42 pm

Fred, I have created a page with a custom template for this. To do this, add a custom template file to your theme folder and select that when you create the twitter page. In the custom template page you need to add the twitter function

< ? if (function_exists('printKishTwitter')) printKishTwitter(); ?>

Reply

Fred February 11, 2009 at 9:54 pm

Kishore, would you mind posting the code for the entire custom template page for me. I’m not a coder but tried to create a template page named tweet in my theme folder but it’s not cooperating. This is whats happening

http://www.fredspencer.com/tweet/

Reply

Kishore February 11, 2009 at 10:31 pm

Fred – I will do it, please give me some time

Reply

Fred February 11, 2009 at 11:00 pm

Thank you Kishore…

Kishore February 13, 2009 at 11:47 am

Fred, I have a done a post explaining the steps, please go through it. If you have any problems, please don’t hesitate to talk to me

Reply

Fred February 14, 2009 at 7:16 am

Kishore, Perfect! It turned out great no problem! You got the best twitter plugin! Thank you very much, appreciate your time.

Will February 12, 2009 at 10:07 am

I’m using the php_exec plugin to place your Twitter plugin into a page on my WP site, but it is screwing with my footer and sidebar. It floats my footer to the left of the screen and my sidebar to the right. Any idea what is causing this or what (if anything) I can do to fix it?

Other than that it seems like an awesome plugin … but it would be awesome to get this fixed. Thanks!

Reply

Kishore February 12, 2009 at 11:30 am

I will be releasing a new version soon fixing this issue. This problem is seen in some templates. You can get the new version in next 2-3 days time

Reply

Will February 12, 2009 at 11:55 am

Thanks so much for your time and efforts, Kishore!

Reply

Salem February 13, 2009 at 11:17 pm

I am currently using your plugin, which I have come to like. There are a few things that bother me, however. Is it possible to change the color of the buttons’ text so that it displays in black, while keeping all the other text white?
look at my website (technoheads.org) to see what i mean. I have a dark background, so only a light font really works.

Reply

Kishore February 14, 2009 at 12:24 am

Salem – you can modify the colors in the CSS function
#twitter {
font-family:"< ?php echo get_option('kish_twitter_ffam'); ?>";
font-size:< ?php echo get_option('kish_twitter_fsize'); ?>px;
height:< ?php echo get_option('kish_twitter_height')+10; ?>px;
color:#FFFFFF;
overflow:auto;
}

Change it to white with #FFFFFF;

Reply

Davd February 23, 2009 at 7:06 pm

When I use the code in my template code it just makes everything after the code disappear. I’ve also tried using it as a sidebar widget but after adding it to my sidebar it doesn’t appear and also, strangely, even though my widget manager says I have three widgets active in sidebar 1, I can’t see the Kish Twitter widget and have to deactivate it in the plugins to remove it from my widgets. I’m using the Revolution theme and can’t figure out what I’m doing wrong.

David

Reply

Kishore February 23, 2009 at 9:40 pm

David, did you enable the twitter in the settings? You will find a check box in the twitter settings page, you need to enable that for the twitter widget to be visible, please check that and let me know.

Reply

Davd February 23, 2009 at 9:55 pm

Kishore,

Yes, I have Twitter enabled.

David

Reply

Kishore February 24, 2009 at 10:42 am

David – Can you give me the URL of the blog where you are using this plugin. Are you using the latest version? Does your hosting has the curl library enabled?

Reply

Davd February 24, 2009 at 3:46 pm

Kishore,

I have version 1.2. How do I check to see if curl library is enabled?

The blog is at http://www.davidlawess.net

Kishore February 24, 2009 at 11:27 pm

Davd – I am unable to figure out the problem looking into your blog

Reply

Diogo February 25, 2009 at 2:31 am

Hi, got a bunch of errors when using your plugin as a widget. They all seem to be related to the simplexml_load_string() function. Any idea?

here’s on of the errors..

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 1: parser error : Space required after the Public Identifier in /home/aventureiro/public_html/wp-content/plugins/kish-twitter/twitter_api.php on line 470

Reply

Kishore February 25, 2009 at 8:39 am

Diogo – This could be because of the version of the PHP that you are using. I have tested this on only 5.2 version.

Reply

d. March 3, 2009 at 6:51 pm

I really like the look of this plugin in. In particular, i like your twitter page, which I have attempted to mimic. Unfortunately when I activate your plugin on my page (or as a widget) it does not show, and also prevents any further content on my page from showing (and indeed once the widget is added to my sidebar I cannot remove it again, so had to disable your plugin for the time being).

Is this likely to have something to do with the theme I am using (veryplaintxt), or the version of wordpress (I am yet to update to the latest version). Or do you have a known bug that may be causing this?

Thanks.

Reply

Kishore March 4, 2009 at 10:01 am

This plugin works only on PHP 5 version,with curl library. Please check if your server complies with this.

Reply

d. March 5, 2009 at 1:49 am

Argh! I have PHP 4.4.9 installed… will see what I can do about that.

Thanks for your quick response.

Reply

d. March 5, 2009 at 2:31 pm

Okay, further to this…

I now have PHP 5 installed, and the curl library, and I can get the plugin to display on the page, by creating a template page that contains it. So far so good, except it now does not show my tweets. Looking at the generated source each tweet contains the following code:

|

d.

Reply

d. March 5, 2009 at 2:33 pm

The comments do try to parse the HTML, so hopefully entities will work…

<div class = “kish_tweet_posts”><img src =”"><a href =”"> </a> |

Reply

Kishore March 5, 2009 at 3:00 pm

can you email me the blog URL so that I can check or send me an email with the error details. kishore@asokans.com.

Reply

d. March 6, 2009 at 5:10 am

Just in case it helps anyone else…

Turns out that the curl request was being sent with an Expect: 100-continue header, and the server was barfing at this… I assume this is a local setting, otherwise it would not work for others, but for for the record, setting the following line…

curl_setopt($ch, CURLOPT_HTTPHEADER, array( ‘Expect:’ ) );

along with your other curl options appears to fix things for me.

There is also a small error in the code to link to the twitter url in the bottom right corner… the link shoud read:

<a href =\”.$twhomepage. \”target = \”_blank\” >

Thanks for the plugin. :P

Reply

Kishore March 6, 2009 at 9:14 am

Thanks d.

Reply

Andy March 20, 2009 at 3:03 am

your site keeps redirecting to the yellowpages.com, it makes it hard to follow the directions and download the plugin.

Reply

Kishore March 20, 2009 at 8:35 am

I don’t find any redirection and the download is the wordpress plugin directory and not here

Reply

Stuart March 23, 2009 at 7:20 pm

Hi,
I am trying to set this plugin up for a customer but I keep getting:

wordpress/wp-content/plugins/kish-twitter/twitter_api.php on line 29

Have checked username / password etc. Can you point me in the right direction please?

Thanks

Reply

Kishore March 23, 2009 at 9:20 pm

Stuart – You have to give your username and password correctly. What is the exact error coming. Which version of PHP are you using. Does your server support CURL library?

Reply

Stuart March 24, 2009 at 1:24 pm

Hi Kishore,

I am running PHP4 (but PHP5 is availible should I need that), and the cURL option is running.

The username and password are correct, I have even changed the password to ensure that was correct.

Reply

Kishore March 24, 2009 at 2:13 pm

Stuart – I have not tested in PHP4, but it should work. The error seems to from the login information.

Reply

archie rhiens March 26, 2009 at 5:11 am

I am confident I have typed the correct user and password. I get the following error. I created the twitter account about 1 hr ago.

Invalid username/passwordStatus UpdatedInvalid username/passwordmissionalassoc’s Updates

Reply

Tom March 31, 2009 at 9:45 pm

Is this code to get the box to appear?

No luck yet.
Thanks.
Tom Russell

Reply

Kishore April 1, 2009 at 1:02 am

Tom you can enable the widget to view the twitter box

Reply

chris April 4, 2009 at 1:24 pm

it was working alright till today it suddenly read “Fatal error: Cannot redeclare class Snoopy in /home/xxx/public_html/wp-content/plugins/kish-twitter/extlib/Snoopy.class.inc on line 39

How to fix it please?

Reply

Kishore April 4, 2009 at 1:32 pm

Chris – Did you install any new plugin, it could be a clash with the same function name.

Reply

chris April 4, 2009 at 1:53 pm

yeah, I think I did, I installed the wp to twitter plugin…. :( will it work again if I remove the wptotwitter plugin?

Reply

chris April 4, 2009 at 8:55 pm

I removed the wptotwitter plugin, and your plugin is working fine now..thanks!

Reply

Kishore April 5, 2009 at 12:03 am

That could be the reason

Murad April 4, 2009 at 3:02 pm

Hi,
It is a cool Plugin. But it is not working properly in my blog!!
It is not showing any update in the blogpost or sidebar either :(

Username and password is ok because I can update my tweets via this plugin from my blog.

Can you plz take a look in this page and Give me a solution??

http://www.mydreamtech.com/bugatti-royale-coming-to-frankfurt.html

Thanks in Advance!

Reply

Kishore April 5, 2009 at 12:05 am

I could not see the plugin activated on your website

Reply

Fred April 16, 2009 at 12:37 am

Hi Kishore, I opened twitter from my blog and found that it showed a blank page. I pulled up your page and your twitter page on your blog is showing the same as mine. Can you help me with this?

Fred

Reply

Kishore April 17, 2009 at 10:58 am

Fred, there is some problem with the Twitter API, we need to wait for that to sorted out by twitter

Reply

machima April 23, 2009 at 8:26 am

thank for share

Reply

Marcel April 25, 2009 at 1:42 pm

I just installed the Kish Twitter plugin, but the twitter messages aren’t displayed and also the images before the twitter messages aren’t loaded. I am able to post messages, but they just won;t apear in the plugin

Reply

Kishore April 26, 2009 at 11:53 am

Marcel, I have noted the problem, but still could not work on that. I see there are some changes made in Twitter API which is reason

Reply

mssmotorrd May 3, 2009 at 5:51 pm

It’s the first time I commented here and I must say you share us genuine, and quality information for bloggers! Good job.
p.s. You have a very good template for your blog. Where did you find it?

Reply

Nick May 12, 2009 at 2:51 pm

I would love to know if it would be possible to have an option to such that there are more than two outputs.. let me explain.

I will be using your plugin as a related tweets on each of our blog posts..

But on our sidebar we would just like to implement a widget that shows all tweets that contain, @filipinovoices, so that we know who has replied to our tweets.. or has addressed @filipinovoices, if possible, if there are multiple search terms allowed.. i.e. for our widget we would show tweets that have “FV”, “@filipinovoices”, “filipinovoices” so that all bases are covered..

This is an option I think many are looking for.. thank you so much for this great plugin

Reply

Twitter Search May 27, 2009 at 7:30 am

thats great that you are talking about the twitter api,a good example of searching with the twitter api is on twiogle.com because you can search on twitter and google at the same time.

Reply

Omer Rosenbaum June 1, 2009 at 8:37 pm

Hi Kishore
I have the same problem with the display of twitts. You can see it here: http://onethatknows.com/cyberia/
Is there a solution for that?

Reply

Mark June 16, 2009 at 10:36 am

Hi there Kishore,

Like Omer, I’m also having the same problem with the display of twitts. It’s on my testing server but is exactly the same problem as Omer’s website: http://onethatknows.com

Reply

Kishore June 16, 2009 at 2:59 pm

Mark, I am aware of this problem, this is due to change in the Twitter API, I am trying to coming with a patch at the earliest

Reply

Josh June 28, 2009 at 6:30 pm

I just spend all night trying to set this up. it’s not accepting my user/password.. but I see you are working on an update :) I’m currently using it for the related tweets function which is pretty bad ass just by itself. Great tool! thanks fir all the cool plugins!

Reply

Ahmad July 30, 2009 at 8:52 am

helloplease help me the kashore plugin not display my twitter home page posts and no any thing i have set all option but no show just show only plugin header and footer.

Reply

Joe K July 31, 2009 at 5:26 am

Im haveing an issue the page comes up with red x all the timehttp://thewakeboardforum.com/did i do something rong

Reply

Kishore July 31, 2009 at 9:45 am

Joe – There is a problem now due to change in Twitter API, need to update it

Reply

Joe K July 31, 2009 at 4:44 pm

Will this be happening any time soon I think the app was grate

Reply

machima July 31, 2009 at 6:27 pm

errors..

Reply

SEO Tips Blogger August 26, 2009 at 1:50 pm

Wow great info , i am for the first time here but i will come back for sure :D , good work!

Reply

Andre August 27, 2009 at 7:21 pm

So, any update regarding the twitter API?

Reply

Merrie Priem March 10, 2010 at 10:29 am

Thank you for all of the advice

Reply

Leave a Comment

Previous post:

Next post: