MyTwitter Wordpress Plugin
Tech October 20th. 2007, 12:29pmNEW ADDRESS: http://anwanore.com/projects/mytwitter — The plugin has a new address at a project page I created exclusively for the MyTwitter for Wordpress plugin
Plugin: MyTwitter
Current Version: 1.5 (Updated February 10, 2008)
Download (Zip) (from official Wordpress Plugins site)
Download (Zip) (from my server)
Note: Only download from sites you trust. I’ve seen a few illegitimate spam sites popping up with ripped-off copies of the text and files with no attribution.
About: MyTwitter allows users to display their Twitter status updates (tweets) on their Wordpress blog and update their status through the Options page. Includes customization options including number of recent twitters to display, formatting options, and stylesheets. It can be called as a function or used as a widget.
MyTwitter @ Twitter: http://twitter.com/MyTwitt3r
Please see the new project page for MyTwitter for installation assistance and to leave any comments about the plugin.
October 23rd, 2007 at 3:40pm
This is Ryan from the SimplePie project. I think this plugin looks cool, and I’ve added it to the SimplePie Plugins page in our wiki.
http://simplepie.org/wiki/plugins/wordpress/mytwitter
October 28th, 2007 at 8:36pm
[...] fixes and everything about blogging, especially with Wordpress. Go ahead, subscribe to our feed!MyTwitter allows users to display their recent Twitters on their Wordpress [...]
October 28th, 2007 at 11:00pm
[...] MyTwitter allows users to display their recent Twitters on their Wordpress site. [...]
October 29th, 2007 at 1:21pm
Perhaps I didn’t set it up right, but I get the message “Error: unable to access Twitter feed for user virushead.”
Is there someplace to enter your password or something like that?
October 30th, 2007 at 12:50am
this plugin looks good to me! I will check it out.
October 30th, 2007 at 5:05am
Virushead: The error displays if there’s any trouble accessing the Twitter feed that has your recent twitter updates. Try refreshing your site and see if it goes away. If you keep having trouble, please leave another comment and I’ll check on it.
As for the password, it doesn’t need one. However, if you’ve got your Twitter set to not display to public users, it probably won’t be able to show the information. I’ll take this into consideration for a future version.
October 30th, 2007 at 6:48am
The twitter content can show in my side bar.
But, above the content, there are message like:
Warning: /home/18309/domains/blog.nicholasmusic.com/html/cache/9e96b18619908620e5a4760a5a19f212.spc is not writeable in /home/18309/domains/blog.nicholasmusic.com/html/wp-content/plugins/mytwitter/simplepie.inc on line 1623
How can I resolve this?
October 30th, 2007 at 7:10am
it seems I need to create a folder named cache under root of wordpress, right?
October 30th, 2007 at 5:32pm
Sorry, yes, forgot to mention that SimplePie needs write access to /cache/ in the root directory for some of its work with the twitter feed. I’ve updated the installation directions in the post here.
October 31st, 2007 at 8:21pm
This plugin is good. It’s working for me but it has a little error. The dates in my twits are all “Dec. 31, 1969″ as viewed from the entries generated by the plugin to my webpage. But when I view my Twitter page, the dates are correct anyway. What might be the problem?
November 1st, 2007 at 5:16pm
I’ll check to see if I can regenerate the error with the date and find out how to fix it. If anyone has a page that’s currently displaying the wrong date, give me a link so I can take a look at it. Thanks.
November 2nd, 2007 at 12:27pm
mine’s showing the wrong dates also. http://www.littleinteractive.com/blog/
November 2nd, 2007 at 5:40pm
Ok, thanks for the example, I’ll check to see what’s going on. Hopefully just need to fix a small piece of the code.
November 2nd, 2007 at 6:54pm
Please notice the MyTwitter update to 1.01 which fixes problems with the date displaying December 31st, 1969 on servers using PHP 4. If you continue to notice the problem once you’ve updated, please let me know. I also updated the documentation to make it more obvious what needs done with the /cache directory.
November 5th, 2007 at 7:09am
thanks for the update!
November 10th, 2007 at 8:02am
[...] Anwanore’s Widget - Allows you to post several of your latest tweets into your blog and you can put it anywhere by calling a php function from within your template. The author is working on future enhancements such as an optional avatar display. [...]
November 15th, 2007 at 3:10am
Ive patched MyTwitter to work with the new widgets supported in the newer WordPress versions. See here:
http://www.switchingtomacosx.org/2007/11/15/mytwitter-patch/
November 26th, 2007 at 2:11am
[...] MyTwitter.This plugin enables you to display your twitter statistics on your blog - live! [...]
November 30th, 2007 at 5:53pm
[...] soll, aber irgendwie hat mich das Fieber dann jetzt doch angesteckt. Ich nutze hier übrigens das MyTwitter Plugin für Wordpress. War eigentlich recht einfach zu installieren. Wem die letzten Sätze jetzt alles nix sagen, der [...]
December 1st, 2007 at 11:51am
Hi,
This is a great plugin, I use it on my blog, since upgrading to version 1.3, I have had the following error, can you help? The twitters display, but the error messge is above them.
Warning: /var/www/vhosts/flyingkiwis.co.nz/httpdocs/cache/ff8043ca3260fb410e97ecc97829801c.spc is not writeable in /var/www/vhosts/flyingkiwis.co.nz/httpdocs/wp-content/plugins/mytwitter/simplepie.inc on line 1623
Thanks
Dawn
December 1st, 2007 at 6:13pm
Dawn — it means the cache folder (in your case located at /var/www/vhosts/flyingkiwis.co.nz/httpdocs/cache/) that the SimplePie part of the plugin uses is not writable. You need to set the permissions for the folder to 755. You can do this in most good FTP programs (in Filezilla, right-click the folder, select File Attributes, and put 755 in the Numeric Value field) or if you have shell access to your server you can go to cache’s parent folder and type “chmod 755 cache/”.
December 2nd, 2007 at 1:07pm
Worked perfectly, thanks!
December 2nd, 2007 at 6:49pm
Hey I just tried to install your plugin v1.3 but WP complains “Plugin could not be activated because it triggered a fatal error.” … I customized my cache location and confirmed it has right perms. thoughts?
December 2nd, 2007 at 9:02pm
Adrien — did this happen on multiple attempts? Were you upgrading from an old version of the plugin? I haven’t seen this happen before so if you can tell me anything more that would be helpful. Thanks.
December 2nd, 2007 at 9:23pm
I had just upgraded to WP 2.3.1 and decided to try your plugin. I had downloaded v1.02 and installed it. the plugin page said a new version was available, so I went ahead and re-downloaded. modified mytwitter/mytwitter.php to use same cache as wp-cache, as follows:
$cacheloc = ABSPATH . “wp-content/cache”;
after uploading modified version, I try activating. First try, WP gives me nice yellow fade alert and the dreaded message “Plugin could not be activated because it triggered a fatal error.”.
After that I tried de-activating wp-cache, and then activating MyTwitter. When I do that I get a blank page, looks like apache crashed. It’s a shared environment so I don’t have access to log files :_(
December 3rd, 2007 at 6:34pm
Adrien — as far as I can tell it’s just a problem with the way you’re using ABSPATH to set the value for $cacheloc. For now, you could change the value of $cacheloc to the exact path for wordpress (e.g. “/home/adrien/wp-content/cache”). Or you can edit the following lines (as I’ll be doing for the next udpate). I’ll be changing the code on line 53 to the following:
define(”CACHELOC”, “/cache”);
Or, in your case, you’d want to use:
define(”CACHELOC”, ABSPATH . “wp-content/cache”);
And you’ll also want to update line 70 to:
$feed = new SimplePie($my_twitter_feed_url, CACHELOC);
December 3rd, 2007 at 6:38pm
Watch out for those curly-quotes… if you copy and paste it you’ll want to make sure they’re just normal quote signs.
December 3rd, 2007 at 6:55pm
Erundur: nope, still same “Plugin could not be activated because it triggered a fatal error.” :-(
December 4th, 2007 at 9:49am
Erundur, I am having the same problem as virushead. I get the “Error: unable to access Twitter feed for user zhiwiller” message. I upgraded to the newest versions of wordpress and your plugin. I created a cache folder at my site root. But I’m still getting the error. I’m not quite sure what to try from here and would appreciate the help. Thanks!
December 7th, 2007 at 6:04pm
Hello!
I installed “MyTwitter” (with WordPress), but I had a problem.
When I put the code
at my sidebar, appears the message:
Error: unable to access Twitter feed for user evelyngomes.
How can I solve this?
Thank you.
December 7th, 2007 at 6:07pm
Hmm… followed the directions for install, but when I clicked “activate” it went right to the error:
Fatal error: Call to undefined function: register_sidebar_widget() in /home/chazzus/public_html/wp-content/plugins/mytwitter/mytwitter.php on line 107
Which is showing up on ALL pages, public blog and wp-admin alike. This is on WP 2.1.2 with a widget-less theme… I’ll check back after a little troubleshooing (and food).
December 7th, 2007 at 11:41pm
Ok, dinner went a bit longer than I expected. Anyways, the fix in my case was to comment out line 107 in mytwitter.php:
register_sidebar_widget('MyTwitter', 'widget_mytwitter', null, 'mytwitter');Other than that little issue it’s working great! Thanks for making a good WP plug, the Twitter JS makes IE angry… :)
December 8th, 2007 at 1:01am
[...] like my theme for some reason (it makes IE angry). Fortunately, Erundur Anwamehtar wrote this great little plugin that works just perfect for my needs after a little tweaking. It also came with the nice treat of [...]
December 8th, 2007 at 8:36am
@Eve: I tested it out on your username and the feed itself seems to work fine. Make sure you’ve got all the files for the plugin in the right location and have setup the cache folder in the root directory of your server and made it writable.
@Chazz: widget capability is only included built-in for Wordpress 2.2 and newer. I’d recommend upgrading to Wordpress 2.3.1 if you’re able to, otherwise you can simply comment out the portions of the code that deal with widgets.
December 8th, 2007 at 3:30pm
Thank you.
I tried again and nothing.
What did you put? The code that is displayed here?
Thank you again.
December 9th, 2007 at 2:39pm
[...] read this entry, you’re reading the new and updated blog. Thanks to the MyTwitter plugin by Erundur Anwamehtar, my latest tweet now appears in the top right corner of each [...]
December 21st, 2007 at 4:26am
[...] Visit [...]
January 5th, 2008 at 5:58am
I’ve just tried to activate and it caused a fatal error in 2.3.2 —just so you know.
January 9th, 2008 at 4:30am
Hi, there was a small bug - if you do a reply that’s like “@username, something something”, it will add the coma to the username when making the link. I’ve made a diff with my changes, hope they’re useful :)
http://vasil.ludost.net/progs/mytwitter.diff
January 10th, 2008 at 7:37pm
@Vasil: Thanks, I’ll incorporate that into the next version.
January 15th, 2008 at 4:48pm
[...] Twitter plugin lets you include your recent tweets from Twitter directly into your blog. While this isn’t [...]
January 17th, 2008 at 8:07pm
[...] out MyTwitter for [...]
January 22nd, 2008 at 3:06am
[...] Plugin Homepage [...]
February 1st, 2008 at 6:02am
[...] MyTwitter [...]
March 1st, 2008 at 10:14pm
[...] Twitter plugin untuk [...]
March 9th, 2008 at 1:36pm
[...] MyTwitter Wordpress Plugin - allows users to display their recent Twitters on their Wordpress site. Includes customization options including number of recent twitters to display and formatting options. [...]
June 27th, 2008 at 10:25am
[...] MyTwitter - This is a Wordpress plugin that makes it easy to display your latest Twitter status updates on your blog. [...]
July 1st, 2008 at 11:48pm
[...] Twitter plugin lets you include your recent tweets from Twitter directly into your blog. While this isn’t [...]