Twitter Widget 1.2.3
Monday, January 18th, 2010A minor change in 1.2.3:
- Fixed issue with special characters.
http://www.ronakpatel.net/2009/04/05/twitter-widget-that-streams-multiple-accounts/
A minor change in 1.2.3:
http://www.ronakpatel.net/2009/04/05/twitter-widget-that-streams-multiple-accounts/
The widget has gone through a lot of under the hood changes in 1.2.2:
http://www.ronakpatel.net/2009/04/05/twitter-widget-that-streams-multiple-accounts/
Fixed a bug with characters not being escaped. Thanks Jeff (@jeff_uprising).
http://www.ronakpatel.net/2009/04/05/twitter-widget-that-streams-multiple-accounts/
The Twitter Widget now caches tweets using the PEAR package Cache_Lite. Follow the instructions in the link below.
http://www.ronakpatel.net/2009/04/05/twitter-widget-that-streams-multiple-accounts/
I updated my javascript Twitter Widget to give you the option to display user images and also fixed the bug where an error is thrown if the html or user attributes are missing.
http://www.ronakpatel.net/2009/04/05/twitter-widget-that-streams-multiple-accounts/
I created a PHP/JavaScript widget that will stream multiple Twitter accounts for a friends website (see it in action at Brown Girl Magazine). It’s simple to setup. As of version 1.2.2 you will need to setup the widget again.
Requirements
Instructions
<script type="text/javascript"><!--
var RPNetTwitterAttrs = {
url: 'http://localhost/TwitterWidget/reboot/TwitterWidget.php'
};
// --></script>
<script type="text/javascript" src="TwitterWidget.js"></script>
Update the url attribute to the path where you uploaded TwitterWidget.php.
You will also need to update the src=”TwitterWidget.js” attribute to point to where you uploaded the javascript file. For example, src=”http://yourwebsite.com/uploads/TwitterWidget.js”.
<div id='rpnetTWContainer'></div>
Editing the Look and Feel
There are two ways to change how the widget looks. The first is to add the CSS ids below to your stylesheet. The outline of the widget is as follows:
<div id="rpnetTWContainer"> <div id="rpnetTW"> <h2 id="rpnetTWTitle"></h2> <ul id="rpnetTWList"></ul> </div> </div>
The second way is to go into the createWidget() function in the RPNetTWView class in TwitterWidget.php and edit the html of the widget. Post any questions in the comments.
Remember
If you make changes to how the widget looks or you modify the Config.php after setting up the widget you will either need to wait until the cache expires or you will need to go into your cache directory and delete the cache file for changes to take effect.
Upgade Instructions
From 1.2.1 to 1.2.2.
From 1.2.2 to 1.2.3.
What it will not do
This widget will not worked on locked Twitter accounts.
Below is a screen shot of the widget with no formatting and with the Arthemia Wordpress theme. If using Wordpress the widget will conform to whatever theme you have unless you modify the CSS. Enjoy!
Change Log
Version 1.2.3
Version 1.2.2
Version 1.2.1
Version 1.2
Version 1.1
Version 1.0
Old Versions