THIS PLUGIN IS NO LONGER UPDATED EXCEPT FOR CRITICAL UPDATES AND/OR BUG FIXES. PLEASE CHECK OUT MY OTHER PLUGIN AOI TORI INSTEAD.
Twitter Stream is a simple plugin designed to simply show a users Twitter timeline. It includes file caching to stop overuse of Twitter’s API. You can also choose how many updates to return (maximum of 200). It also includes autolinking for URL’s found within the timeline. Also includes a date ago feature, showing the time the tweet was posted in xx ago format. Also has a permalink pointing to the tweet.
A widget is included, but you must have WordPress version 2.8 or higher for it to work, however function usage should work down to version 2.5 although it has not been tested.
Twitter Stream requires PHP5 due to the use of SimpleXML. If you do not have PHP5 installed you will not be able to use this plugin.
Twitter Stream is also designed to be very lightweight & use the smallest amount of resources possible, ideal for shared or low memory servers.
Here is a quick run down of the features available in Twitter Stream.
- Show the twitter timeline for the oAuth athorized user or any public user.
- Choose how many tweets to show.
- A Widget or template function is available.
- File caching to stop API overuse.
- Optional date shown in xx ago format, also links to permalink for the tweet. (Requested by Ron)
- Customizeable via CSS. (see ‘Can I Style It?’ in the FAQ)
- Authentication for more accurate API counting & so protected users can show their tweets.
- Translation files for different languages are now available to download on my blog post.
- @replies now link to the user profile of the user you are replying to.
- hashtags now link to the Twitter search page for that hash tag.
- Link to user’s profile, customizable via CSS & via function parameter.
- Optional display of follower count.
- Retweets can now be shown.
- Cache time can be customized via the widget or template function.
- Tweets can be returned for manipulation via PHP.
A big thank you to all the people who have translated Twitter Stream into different languages.
Download & install via the WordPress plugin repository in the admin of your blog, or you can do it the manual way as follows:
- Unzip the zip file.
- place the folder into the
- To use the Widget. Go to appearance, click widgets & drag it to a widgetized area of your choice & fill in the fields.
- Go here for info on how to use Twitter Stream in your template.
- Can I Style It?
You can. I haven’t added any styles so I could keep the plugin on one file & keep it free of clutter. The available CSS classes are:
- .at-reply for @replys.
- .hash-tag for #tags.
- a.twitter-link for autolinked URL’s within the timeline.
- a:hover.twitter-link for autolinked URL’s within the timeline when they are hovered over.
- a.twitter-date for the date permalink.
- a:hover.twitter-date for the date permalink when it’s hovered over.
- .profile-link for the newly added link to user profile.
- .follower-count for the newly added follower count.
- I Have Some More Questions!
To make it easier for me to answer questions & to keep everything in one place, please go to the blog post for Twitter Stream on my website. If you have any requests or problems please leave a comment there or drop me an email via the contact form also available there. Thanks.
- I Need Help
does not work 🙁
Please check you plugin with the latest WP and debug on.
Contributors & Developers
“Twitter Stream” is open source software. The following people have contributed to this plugin.
- Added PHP 5.5 compat to regex (thanks to Brandon from PixelJar), also added some minor error checking to stop crashes when errors are sent back from Twitter. Last update (except for bug fixes) plugin please consider changing to Aoi Tori my new Twitter plugin that I am actively maintaining.
- Updated tested to tag.
- Minor stability improvements, urgent bug fix reported after last push.
- Minor changes to documentation links + reminder of rebuild of plugin.
- Issue with migration between Git and SVN…
- Add if exists to TwitterOAuth class to make sure it isn’t already defined, preventing clashes with other oAuth based plugins.
- Rewrote documentation to match Twitter’s new dev site layout & to comply with the name change from Consumer keys to API keys.
- Completely rewrote parsing of Tweets to use JSON as Twitter have depricated XML support in their v1.1 API.
- Updated oAuth connection script to use API v1.1. Added whitespace stripping to keys to prevent 401 errors & added instructions to advise checking for whitespace on keys.
- Alterations to the oAuth instructions to reflect Twitter’s new development system.
- Additional Fix for those with hosts that have the PECL oAuth extension set to load automatically. Sorry for all the recent updates.
- Fix for those with hosts that have the PECL oAuth extension set to load automatically.
- Fixed blocking error. Needed to specify format for retreived tweets after new oAuth connection script update.
- Forgot to change version number in main plugin file.
- Updated version of the oAuth connection script.
- Fixed a problem with profile links. Thanks to LoriOnline for spotting it.
- Changed regex to match t.co links when auto hyperlinking URLs in tweets. Thanks to Jonny Vaughan for the modification.
- Removed chmod. Causing too many problems for users who are currently using Twitter Stream with no problems.
- Change chmod permission settings. I really wish all hosts would set up apache & PHP to work together in harmony.
- Added chmod for cache creation to try and fix permission denied problems on servers with different file permission setups.
- Added small fix to stop nameless cache file being generated when no username is specified…
- Fixed an error which was stopping the permalinks on the dates going to the correct URL.
- Correct error cause by OAuth PECL being installed on server. I thought I’d fixed it but apparently not.
- Correct syntax error. Thanks Notepad++
- Check if OAuth is already available on server
- Now requires oAuth authorization and added a custom cache timing.
- Added fix for those who’s PHP install includes PECL oauth library
- Fixed extremely stupid mistake whiched stop oAuth from becoming active.
- Fixed problem that makes oAuth refuse connection with 401
- Correct an annoying SVN problem now have to create new version number to force update in WP admin for users of plugin.
- Reintroduced oAuth using user application registration method for consumer keys…
- Fixed cURL bug. curlopt_get is not needed as is set to get by default & it is curlopt_httpget…
- Removed oAuth until key exchange system does not make keys public…
- Version number change
- Changed authentication system to oAuth & made general improvements to the entire code.
- Once more, trying to fix ugly errors.
- Tried to fix ugly errors.
- Added TRUE to array_slice() to preserve the keys. How my localhost was preserving them without this option I’ll never know. Thanks to Bryon Powell for the heads up.
- fixed an exceptionally stupid spelling mistake in a variable effecting the widgets. Thanks to fruityoaty for spotting the bug.
- Added back support for parameters, please use twitter_stream_args for array/query string support.
- Minor bug fix. Showed more tweets than specified count.
- Stopped function parameter support, now only support array or query based options. Also added follower count & retweet support.
- fixed some small errors.
- Fixed stupid widget HTML error that caused WP’s text to go tiny.
- Added i18n pluralization support for xx ago time system.
- Added i18n support & Swedish .po file.
- Added a bug fix for some strange PHP bug. Bug number #36795…
- Added htmlentities() for escaping special characters such as ampersands etc..
- Added user authentication & more advanced error checking.
- Added date ago feature. Also added some minor fixes including PHP version checking & Username checking.
- Initial Release.