MyTwitter @ Twitter: twitter.com/Elitwee
Current MyTwitter Version: 2.02 (December 13, 2008) — Wordpress 2.7 Compatible!
Download (Zip) (hosted at official Wordpress Plugins site)
About: MyTwitter allows users to display their Twitter status updates (tweets) on their Wordpress site and update their status through the Settings page for MyTwitter. Includes customization options including avatar display, number of tweets to display, formatting options, and stylesheets. It can be called as a widget or a function.
Donate: If you appreciate the MyTwitter for Wordpress plugin, please consider leaving a donation for the author.
Compatibility: MyTwitter 2.01 has been tested to work with Wordpress 2.7. It should work w/ versions 2.3 and higher.
Requirements: The current version of MyTwitter requires PHP 5.2 or higher to be installed on your web server as it uses the json_decode function and Twitter’s JSON API.
Installation: Extract the contents of the archive. Upload the mytwitter folder to your Wordpress plugins folder (e.g. http://example.com/wp-content/plugins/). Set your preferences in the Wordpress Settings panel for “MyTwitter” (including username, password, and formatting options). Set the Cache Life to the length of time for the Twitter feed to be cached before checking for updates.
Be sure to set the cache location to the appropriate location on your server. It defaults to the “cache” folder located in the MyTwitter plugin directory.
Stylesheets: Example CSS code is included in example.css. To incorporate on your site, copy/edit the code to the stylesheet for your current wordpress theme. For most themes, this can be done by going to Presentation -> Theme Editor and then select “Stylesheet” from the theme files list. The following is the CSS classes/IDs you can use to style your tweet output (additional notes available in the example.css file).
CSS Classes: mytwitter, mytwitter_tweet, mytwitter_tweet_time, mytwitter_separator
CSS IDs: mytwitter_tweet-1, mytwitter_tweet_time-1, mytwitter_separator-1 — the number increases sequentially for each tweet displayed. If you are displaying 5 tweets, they will be numbered from 1 to 5, (mytwitter_tweet-1, mytwitter_tweet-2, etc.)
To Display Your Tweets:
If you have a widget-enabled theme, you can add it to your sidebar by going to the Wordpress Widgets administration screen, selecting “Widgets” from the menu, and then drag “MyTwitter” to the location you want it displayed on your sidebar. If you’d rather add it into your theme manually, use the code below.
<?php if (function_exists(‘mytwitter’)) { ?>
<li><? mytwitter();?></li>
<?php } ?>
Comments/Questions/Errors: Please leave a comment if you have errors or suggestions. If commenting about an error, include your versions of MyTwitter, Wordpress, and PHP. (Note: First-time comments are moderated.)
Warranty: This program is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Newest Version: Download Newest Version
Old Versions: Download MyTwitter 1.6 or view other old versions.

[...] para um plugin do Wordpress. Foi o que o Erundur Anwamehtar fez. Criou um plugin para integrar o MyTwitter diretamente aos usuários do Wordpress. O download você faz [...]
[...] can follow MyTwitter on Twitter here. For installation assistance or to leave feedback, visit the project page. You can download MyTwitter here. Filed under Blogging, Wordpress [...]
I can’t seem to get MyTwitter to work :( It keeps throwing me the “Error: unable to access Twitter feed for user thepete.” message. My user name is accurate as is my password. I even tried leaving the password blank–either way, I get the same error message in my sidebar. :\ Any ideas?
Latest version of Wordpress and PHP. Installed MyTwitter and get the same error as ThePete. Have put a cache folder in the wordress directory and the root directory and have set CHMod to 755, 775, and 777 to no avail.
@Jeff what’s your Twitter username?
For anyone having issues w/ the feed, update line 99 of MyTwitter.php (version 1.5) to the following:
<b>Error:</b> unable to access Twitter feed for user <i><?php echo
$tuser;?>. <?php echo $feed->error();?></i>
Once you’ve done this, the error message will be more specific and hopefully we can figure out why it’s having trouble. Please let me know. I’ll be sure to incorporate the error message change into the next version of MyTWitter.
[...] Visit [...]
[...] MyTwitter [...]
This is Ryan from the SimplePie project. We’re planning to make some WordPress-related changes that might affect your plugin, and we wanted you to be aware. I would encourage you to adopt some of the changes we’re suggesting because we believe that many users of SimplePie-based WordPress plugins will benefit. Feel free to direct any feedback to me. Thanks! :)
http://simplepie.org/wiki/plugins/wordpress/simplepie_core
I keep getting this “warning” when I try to post a tweet, I am not sure what it means, and I have been troubleshooting all morning long. Please help as soon as you can.
Word Press v. 2.3.3
MyTwitter v. 1.5
I don’t know how to find what version of PHP I have available.
Warning: /hsphere/local/home/bob6003/chetgassett.com/cache/35b88d9b1aeaa861772e2bf21046a00c.spc is not writeable in /hsphere/local/home/bob6003/chetgassett.com/chets_blog/wp-content/plugins/mytwitter/simplepie.inc on line 1623
ChetG — you need to set the cache directory as writable. In the parent directory run the following command:
chmod 764 cache
Hello. I install this plugins to my client blog (http://www.friendlycentre.com/). There’s a problem, the time was write: -1 years ago. If i check it in the twitter: http://twitter.com/friendlycentre/ there’s no problem with the time.
Can you solved it?? thx!
rd — I’m not sure what you mean. I’m looking at the Friendly Centre site and it shows the same times as Twitter.
# tes lagi — 19 hours ago
# contoh: 60% — 19 hours ago
Hello Erundur,
I too was running into the error “Error: unable to access Twitter feed for user xxxxxx”
I replaced the code on line 99 like you said and I now get the new error:
Error: unable to access Twitter feed for user christocarroll. XML error: no element found at line 2, column 0
Any idea what file this is talking about or more importantly what it means. I’ve been working with my host to make sure I have the proper path to my cache folder so it should be good. I’m currently running wordpress 2.3.3. you can view the page here, http://blog.flyingninja.com Thanks for your time!
Chris
Chris — I’m not sure what the problem is. When I plugged your username into my test site it’s working fine. What version of PHP do you have?
Another thing you can try is running the SimplePie compatibility test. This is available as part of the standard SimplePie download: http://simplepie.org/downloads/ — click download. You can put the files in the mytwitter directory. Basically, you’ll be replacing the version of SimplePie currently included w/ MyTwitter (1.0) w/ the newest version of SimplePie (1.1.1) (Note: only works w/ PHP 5+). Then, you can run the compatibility_test script by going to the appropriate address for your site (http://example.com/wp-content/mytwitter/compatibility_test/sp_compatibility_test.php). Two of these especially — mbstring and iconv — seem to effect some peoples hosts ability to properly parse the RSS feed from Twitter.
I’m going to be making changes in MyTwitter 1.6 to address some of these issues, but ultimately the configuration of Apache and availability of modules on your webhost will determine how well MyTwitter (via SimplePie’s RSS parsing) are able to work.
Hi, thanks for this widget. I’ve got it mostly working except for a small issue where it does not appear to be successfully stripping out the username from the tweets.
I could not find any option in the settings so I took a quick look at the code where it appears that it should be automated. Any ideas?
@Erundur Anwamehtar
yes, when i checked, its all already working perfectly.
Thx!!! this plugin is great
Phoenix — the capitalization is important for the automatic name removal. Make sure you use the same capitalization for your user name in the MyTwitter Options panel (or Settings panel under WP2.5) that you have showing on Twitter. For instance, currently yours is showing as “priyanphoenix” at Twitter so you’d want to put the same thing in the MyTwitter settings.
@Erundur Anwamehtar: With capitalisation fixed it’s removing the name and working perfectly. Thanks again!
Thank you so much for your work on this. .. question ..
I changed css to include your example css tags .. and have changed the font sz to 7 pt. .. the tag is being applied to the 1st tweet, but not the second, third, forth .. etc. Any thoughts?
Here is some more info ..
— css snip –
/* style for each tweet */
.mytwitter_tweet {
font-size: 7pt;
}
/* style for each tweet time (e.g. 3 hours ago)*/
.mytwitter_tweet_time {
font-style: italic;
font-size: 6pt;
font-color: green;
}
/* style for each separator */
.mytwitter_separator {
font-color: green;
}
/* style for tweet #1 — you can add additional styles by adding #mytwitter_tweet-2, etc. */
#mytwitter_tweet-1 {
font-size: 7pt;
}
/* style for tweet time #1 — you can add additional styles by adding #mytwitter_tweet_time-2, etc. */
#mytwitter_tweet_time-1 {
font-size: 6pt;
font-style: italic;
font-color: green;
}
/* style for separator #1 — you can add additional styles by adding #mytwitter_separator-2, etc. */
#mytwitter_separator-1 {
font-size: 6pt;
}
/* set style for “li” element of class “mytwitter” */
ul li.mytwitter {
color: black;
}
— end snip –
wanted update time to be 6pt, italic and on next line .. so I inserted as the separator. this caused the odd behaviors (see above).
just discovered that when I use ‘ -’ it works as I want .. so now I get -time in italic, small font.
remaining questions:
1). can not see to get the ul seperator to display between tweets
2). would like to suppress my twitter name from the tweets if possible.
thoughts?
/s
Hello Erundur,
Here is some fun info:
It seems that going to http://simplepie.org/downloads/ and updating my version of simplepie corrected my problem, however it killed my login page on wordpress. I have PHP 4.4.4 and wordpress 2.3.3. After upgrading to wordpress 2.5 everything worked great. Thanks for your time and making this great plugin.
Chris
Chris — glad you got it working.
Steve — For your username, make sure you’re using the same case as whatever you’ve got on your twitter page (i.e. if username is “Anwamehtar” then in the Options page make sure it’s “Anwamehtar”, if it’s “anwamehtar” make sure it’s “anwamehtar). As for the CSS, I recommend just playing around with it more and make sure you’re setting the ID and class settings appropriately. For a good CSS tutorial I recommend looking at W3Schools CSS Tutorial.
Just to let you know I was receiving the same error (I’m running beta 1.6 on Wordpress 2.5) :
Warning: /hsphere/local/home/address/username/cache/35b88d9b1aeaa861772e2bf21046a00c.spc is not writeable in /hsphere/local/home/address/username/wp-content/plugins/mytwitter/simplepie.inc on line 1623
and I solved it by deactivating the plugin, deleting the Cache folder on the root, re-creating the folder making sure it had 777 permissions and re-activating the plugin.
Works fine now.
Cheers.
It’s pretty obvious, I’m not much of a coder, or designer. My site is showing my tweets running together unless I throw in a link or reply. I just used the sample code, I want mine to look like yours. Is there a sample page where we can just copy/paste the code?
[...] [Plugin Page]New in this version:- added CSS class to the widget and widget title, renamed the time_since() [...]
Neat little piece of code, but I want to remove all of your styling for the plugin manager screen (what you added for 1.6). I want to wrap the code with my own styles/titles/etc. Is there any way to do that now?
@Rob: the point of doing it w/ CSS styling is so you could change the looks by modifying the CSS code. Did you have something else in mind? Feel free to shoot me an email.
[...] el MyTwitter que es un plugin que te permite mostrar los últimos post en tu cuenta de [...]
i’m using this one ! and i love it !
[...] widget making it about useless for me since I don’t want it in my sidebar. This is where MyTwitter comes in. I have only found this in the last few days, but it will allow you to place the content [...]
Hi there. I am using WP 2.5 and have this plugin version 1.6 and I’m still getting the error:
Error: unable to access Twitter feed for user MAEinSD.
I have chmod the folder for this plugin to 755. Help!
[...] Apps « YouTwit MyTwitter April 23, 2008 MyTwitter – Wordpress plugin for displaying Tweets on your blog, also lets you update from the options [...]
Your feed must be public for MyTwitter to work. If it’s set to private, MyTwitter will not be able to access your tweets.
[...] nem elÅ‘re! Egy újjab plugint lokalizáltam! (Igaz még csak félkész.) Ime: MyTwitter.Hogy mi lesz a következÅ‘ nem tudom. ElképzelhetÅ‘ hogy valami szavazó plugin… [...]
[...] My Twitter: Since I’m a huge fan of Twitter I though I’d display my latest Tweets on here, you can see this in action in the ‘Social’ section no the homepage. This plugin is so freakin’ easy to use! [...]
[...] lesz! A az lesz majd az alap sablon, ez pedig a második. Tervem most eme sablon és a MyTwitter lokalizálása! DE most nincs kedvem írni meg gépelni meg [...]
プラグイン「MyTwitter for Wordpress々
最近日本語化ã•れãŸã€ŒTwitterã€ã‚’å§‹ã‚ã¦ã¿ãŸã€‚ ãれã§WordPress用ã«ã‚‚プラグインãŒã„ãã¤ã‹ã‚ã‚‹ã“ã¨ã‚’知りã€ã¾ãšã¯ä»¥ä¸‹ã‚’入れã¦ã¿ãŸã€‚ 「MyTwitter for Wordpress〠サイドãƒãƒ¼ã«è‡ªåˆ†ã®Twitterã®…
can we have XHTML compliant output please?
the thing I’m noticing is you need the space/ in the br tags.
nevermind…
The content output by the plugin is XHTML compliant. If there are any problems it could be with the options you put in.
Hi, I’m using 1.6beta on WP 2.5.1. My tweets are showing up as ‘-1 years ago’. Any idea on how to fix this? (www.shubnation.com)
@shubjero: need more information. What version of PHP is your server running? The time should show up fine on PHP 4 and 5, but it would still help to know.
As I’m looking at your site right now, it appears to be working fine.
[...] myTwitter and Elegant Twitter Widget. all i can say for now is that each of them has it’s strengths. [...]
[...] MyTwitter : MyTwitter allows users to display their recent Twitter status updates (tweets) on their Wordpress site 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. [...]
hallo Erundur from Russia! i have just installed your plug, which started off working like a charm, just need your help to figure out a couple of points with it.
1. How can i remove a link to my twitter off the mytwitter output in the sidebar?
2. How can i remove time output from the mytwitter output in the sidebar? it seems to be in english and looks lil bit ridiculous at the russian site.
3. How can i remove default ul and li tags before and after ALL twits off plugin setting? i have them all written in the sidebar.php, and your pluging doesn’t allow to do so, always sending default tags in.
Well, looking forward to your reply! Thanx a ton!
sorry, i found myself how to put away a link to my twitter off the mytwitter output!
still have no idea how to do so with time output or make it look russian
one more question: what is the correct syntax for the line where “turn any URL’s into links” to add target=”_blank” (open links in a new window)?
Hi,
on our blog, we want to install twice mytwitter, to show my tweets and those of my wife. I tried to copy the plugin and replace “mytwitter” by “mytwitter2″ in the code, but it was unsuccessfull. An idea ?
@teulliac: It’s not as simple as copying the plugin because there will be issues w/ having the same function names in both plugins. I’ll put this on my list of things to check out for the next version of the plugin.
@iSynth:
$tweet = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","<i><a href=\"\\0\" target=\"_blank\">link</a></i>",$tweet); // turn any URL's into linksthank Erundur a lot! open links in a new window now works! i just thought, do mind to write here how to correctly insert tag instead of “link” word? i tried to do so as is, but in vain, it just cracks down at
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home2/isynth/public_html/wp-content/plugins/mytwitter/mytwitter.php on line 148
and one more thing: i noticed that old tweets keep surfacing again and again in the sidebar. i checked at the cache folder and this file 8a3fb977a4d3ea520474d869f8484c30.spc keeps appearing again and again no matter if delete it or rename it!! what to do?
hi Erundur! i found a way to insert image instead of using ‘link’ word for URLs, thus skip my question!
on the flip side, keep tracking the situation with bizarre post appearance, think there is some strange sort of misbihavior of cache permissions and updates connections with twitter.com (i guess when it fails to connect, it just forms the empty xml in cache folder)
and happy vacations man!!
ИнтереÑно а как Ñто работает ?
[...] MyTwitter http://anwanore.com/projects/mytwitter [...]
[...] added a few new plugins to the mix: Sociable, Better Blogroll and MyTwitter. Very True Mood:productiveVery True Music:Cheap Honesty – Skunk Anansie Share This Thing: These [...]
Thanks for this great plugin! It was exactly what I was looking for :)
[...] MyTwitter: visualizza gli ultimi messaggi che lascio su Twitter. [...]
[...] 1. MyTwitter for Wordpress [...]
[...] MyTwitter for Wordpress Ytterligare ett plugin för Wordpress som visar dina tweets på din [...]
[...] Check out the My Twitter Plugin. [...]
Thanks, this is exactly what i was looking for.
I get this error, and I don’t understand how to fix it.
I don’t get why it’s there, but the plugin is working fine otherwise, just that error message won’t leave my sidebar.
I’m using wordpress 2.6, and MyTwitter’s verson is, 1.6 beta. I’m also not sure what my version of PHP is, but I’m sure it’s the latest.
Anyhow, help would be much appreciated, thanks in advance. :]
@Beverts: You need to make the cache folder writable. I’ve explained how to do this previously in the comments.
@Erundur, ah it works now! Thank you very much. :]
hi! there is something wrong with version 1.6, i do not see it in the plugins list in Admin console, while all files are there on the server side.
also i noticed your own twitter here on this site doesn’t seem to appear as well!
do you know what’s the score? tia!
[...] My Twitter Lets you add your last few twitters to your sidebar. Additionally, it also lets you add twitters from within Wordpress. [...]
Hi,
There seems to some issue with the plugin. It has stopped showing the Twitters in the sidebar. If I go to the settings and refresh the number of twitters to show, it refreshes but then stops working pretty soon after.
@Erum: I need more information to do any diagnosis. What versions of Wordpress, PHP, and MyTwitter are you using? Did you check your cache settings? Did you check the plugin options?
I am using WP 2.5.1. Using the latest MyTwitter version as well. I didn’t really change anything. It worked fine for quite a bit.
The one day I noticed the twitters weren’t showing up. I went to the admin and added a new twitter hoping that will help. It then started giving me an error in the admin related to displaying the latest twitter. I had to comment out lines 156-160 in mytwitter.php to get the MyTwitter admin working again.
Now when I change the ‘Number of Twitters to show’ value, they show up for a short time and then disappear again.
Cache directory permissions look fine. Plus haven’t received any errors related to the cache.
I have the same problem as @Erum (w/ same configuration).
I’ve had a few people mention having this problem. I’m looking into it. Twitter may have changed something w/ the way they generate the RSS feeds that MyTwitter uses to grab, parse, and display the data.
I think I have an idea what is happening.
My MyTwitter is set to display the last 5 posts. There are more than 5 so they should show up. But they don’t unless I have twittered very, very recently. So if the last twitter is more than – I am guessing a day old, they all stop showing.
Mine does a similar thing as Erum’s. It shows on the site briefly, then goes away. On the update page, it says this:
Fatal error: Call to a member function on a non-object in /home/(folder)/mytwitter.php on line 155
Thanks!
I am getting this messsage, I have created a cache folder and chmoded everything:
[...] Genau deswegen twittere ich jetzt auch und belästige damit die Leser dieses Blogs. Mit der WordPress-Erweiterung MyTwitter kann man die Updates im eigenen Blog darstellen, zum Beispiel wie hier in der Sidebar. Sinnlos und [...]
Any update on the Twitter problem? I see yours disappear at this blog as well.
@gaarf came up w/ a fix for the current issues the plugin has been having. I haven’t had time to test it yet, but it’s available at his site: http://tinyurl.com/6b2ka9.
I plan to test it soon and incorporate the changes into the next MyTwitter release.
[...] MyTwitter [...]
I am getting the same problem as Stephanie. Running MyTwitter 1.6 beta and Wordpress 2.6.1 (About to upgrade to 2.6.2 in a second)
Any fixes yet?
My MyTwitter is having the same problem as Erum. Doesn’t show the post and when I go to my wordpress settings to view MyTwitter, sometimes the page only displays “What are you doing” and “Most Recent Update” not the other options. But then sometimes it shows everything. My only concern is to show my recent twitter posts. Please help.
Sorry for delay in getting the new version out. I worked on the rewrite more today w/ the new core. The new version is initially going to require PHP 5.2+ as it uses the new built-in JSON parsing functions.
Hello,
Just tried installing mytwitter. Already have simplepie-core and simple-pie-plugin for wordpress. At first it would not install, then I deleted the line require_once(’simplepie.inc’); and it allowed me to install.
I have changed the permissions on the simplepie.inc file in simplepie-core to 755. I have also changed the cache permissions (on the folder and individual files within) to 755. I still get:
Warning: /home/trac7032/public_html/leadingfromtheheart.org/cache/fca2d527de1bf5b91e056b65ec3dd587.spc is not writeable in /home/trac7032/public_html/leadingfromtheheart.org/wp-content/plugins/simplepie-core/simplepie.inc on line 1769
I put the line back in and got this error:
Warning: /home/trac7032/public_html/leadingfromtheheart.org/cache/fca2d527de1bf5b91e056b65ec3dd587.spc is not writeable in /home/trac7032/public_html/leadingfromtheheart.org/wp-content/plugins/mytwitter/simplepie.inc on line 1623
/mytwitter/simplepie.inc is set to 755
oh, and underneath the error I do get my 5 latest twitter messages as expected :)
If I could merge all these comments as 1 I would :)
I fixed the problem by modifying the CACHELOC.
I changed the line
define(“CACHELOC”, $_SERVER['DOCUMENT_ROOT'] . “/cache”);
to
define(“CACHELOC”, $_SERVER['DOCUMENT_ROOT'] . “/wp-content/cache”);
No more error message :)
urgh.
Never mind. It worked wonderfully, unless I actually wanted to log in to the admin section of my blog. The plugins did not allow me and gave me fatal error messages instead. So I put the mytwitter simplepie.inc back, and now mytwitter works, but the simplepie plugin for wordpress does not. sigh. Back to the drawing board.
@Tracy: I’m abandoning SimplePie in the next version of MyTwitter because the dependencies make it difficult to support. Also, I think it’s the source of problems people have been having w/ tweets not showing properly.
I’m using twitterfeed to send my blog updates to tweets. If I use this badge will my “new blog” tweets show up? I’d like to be able to filter out some tweets by keyword. Is that possible with this?
I’m having the call member function issue that Stephanie and Chuck are having.
Fatal error: Call to a member function on a non-object in /home/alsome2/public_html/chirimotsumoreba/wp-content/plugins/mytwitter/mytwitter.php on line 157
I just installed mytwitter 1.6 in WP, but can’t make it work. (I already have simplepie-core and simple-pie-plugin for wordpress, and think I have installed everything right). I get the errormessage:
Fatal error: Cannot redeclare class simplepie in /home/21/w88405/nettblikk/wp-content/plugins/mytwitter/simplepie.inc on line 346
can you please help?
[...] نصب پلاگین my twitter بود. که خیلی بیشتر از کد خود توییتر پسندیدم. به خصوص [...]
[...] MyTwitter [...]
Hi! I think I’ve discovered a bug. I’ve just started using twitter, so I just had 2 tweets when I installed MyTwitter. I selected to show 5 tweets on the blog, but the plugin just crashed, it didn’t show any tweets on the sidebar, and the settings-tab totaly crashed (“fatal error: call to get_title() [...] no object [...] @ line 157″ -something).
To sort this out I added a number of tweets to my account. This fixed the problem. But maybe you can fix it so that the ratio: “number of tweets” < “tweets to be shown”, works without crashing.
Other then that, thanks for a great plugin!
This is a great plugin
Sorry about the delays in replying to the most recent bugs. I hope the new version fixes your issues. If not, please leave a comment and let me know.
Hey! I updated to 2.02 today and when I try to activate the plugin I get:
Parse error: syntax error, unexpected ‘{‘ in mytwitter/mytwitter.php on line 70
I’ve deleted and reinstalled the plugin, and looked at the code but didn’t see any mismatches braces or syntax errors on or before line 70. Anyone else reporting this or am I messing up?
[...] MyTwitter [...]
[...] MyTwitter [...]
[...] MyTwitter [...]
[...] MyTwitter [...]
@Daniel: I ran into that bug in 2.01, but is fixed in 2.02. If you download the latest version and install it again you will not have that error.
Howdy there. I love the plugin, thank you for it. I have two questions though:
My twitter feed is content related and having the @replies displayed is counter-productive to the feel of it. Can you tell how I can filter those out.
If I wanted to display messages that I follow, or simply more then one twitter feed, how can I do that?
Thank you for your help.
@theinker: right now, I don’t have a filter set up to remove @replies. Unfortunately, do to the design of the plugin it doesn’t currently support having more than one twitter feed showing.
Both of these features are possible and something I’ll keep in mind for a future version. If anyone does make modifications to the plugin or want to contribute to a future version, please feel free to contact me.
I cannot for the life of me figure out what I am doing wrong with this plugin. All is installed correctly, the cache folder is chmod’d and my log in information is correct. However, on my blog it still says “Error: Cache location must be writable.”
I do have the it manually on the site as well…so if you see one that does work and one that doesn’t that is why.
PLEASE…I really could use some help with this.
Thank you!
@Jana: did you check to ensure you have the correct owner (user/group) settings for the cache folder as well?
Definitely would be awesome options. My comic readers don’t want to see me talking to other people on Twitter, it sort of ruins the mystique. I think a check-box to opt to ignore all @ replies would be great.
For the other part coding to post messages that those we follow post would be ideal. That way I can create one central account to follow those I want to appear on the site.
I’d love to see them, thanks for an awesome plugin. :D
I set the cache path correctly and chmod the cache folder to 764 and still get the error “Error: Cache location must be writable.”
WP v2.7
Hi, Erundur!! I’d been trying to run your widget, but i can’t find what is wrong… I’d changed the permissions of the “cache folder” from 666 to 777 passing for all the middle options and it keeps displaying this:
Warning: file_put_contents(/home3/ctrlzws/public_html/wp-content/plugins/mytwitter/cache/elitwee_78e285c9d92f9640444f8ee1c62d8256.json_cache) [function.file-put-contents]: failed to open stream: Permission denied in /home3/ctrlzws/public_html/wp-content/plugins/mytwitter/elitwee.php on line 37
could you help me?
By the way, I think you made an amazing widget.
@Aburto: Double check the folder permissions. The file system is denying access and not allowing the file to be saved there.
@Simrat: on my server, I’ve got it set to 775 — try that and see if it helps. Other than that, double check the directory you entered.
Weird, but.. thank you very much.. I though it could be another problem. It is solved now, I change the folder to 777 and it is running nice.
Thanx!!!
anyone know why its not installing for me? i’m using WP 2.7 and the Activate button returns this error…
“Parse error: syntax error, unexpected ‘{‘ in /homepages/5/d142829104/htdocs/scoobysworld.com/wp-content/plugins/mytwitter/mytwitter.php on line 70″
i’d love to get this working.
@ScoobySnacks: make sure you’re using 2.02. That error was present in 2.01.
yeah i’m using 2.02, but it still won’t activate. hmmm. could it possibly be conflicting with some other plugin?
these are the ones i currently have activated:
AdSense Integrator, Affomatic, All in One Adsense and YPN, All in One SEO Pack, cforms, Custom Smilies, Google Analyticator, Google XML Sitemaps, jQuery Lightbox, Kontera ContentLink, Ozh’ Admin Drop Down Menu, SEO Friendly Images, Smart Youtube, Top Commentators Widget, TwitterCounter, WP-CommentNavi, WP-DBManager, WP-PageNavi, WP-Polls, WP-PostViews, WP125, WP Tuner.
it does look like a lot, doesnt it? is it? i wouldnt know, i’m still relatively new to the wordpress scene.
thanks for your help :)
ok i tried to give it one more shot, but its still not working. i deactivated all of the other plugins i had running and tried it with just MyTwitter 2.02, but i still wasnt able to get it activated. so i’m not sure what the problem is. could it be my theme? i’m using Mandigo (http://www.onehertz.com/portfolio/wordpress/mandigo/).
either way, thanks for your effort.
[...] MyTwitter [...]
[...] MyTwitter – MyTwitter allows users to display their recent Twitter updates (tweets) on their blog and update their status through the Options page [...]
[...] MyTwitter -Â MyTwitter allows users to display their recent Twitter status updates (tweets) on their Wordpress site 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. [...]
i’ve set the plugin but it gives me error cache location not writable
it has 777 permission
Hmm. I get the cache folder not writable error. However, there is a file in the cache folder. If I delete that file, then re-apply MyTwitter’s settings, the file gets re-created. Unfortunately, I then get an error regarding being unable to retrieve the feed (HTTP Error Code 0… which seems odd!)
For the title tag of the relative time now, it shows “view this tweet on twitter”. Is it possible for it to show the date the tweet was posted instead? :)
Thanks.
@Chris: not sure about that. If it says 0, it’s possible that it’s not a real error and it’s a problem with the caching code. Make sure you’ve got the folder set correctly and with proper write permissions set.
@Dayna: I’ll consider that for the next version.
[...] MyTwitter: show your Twitter status on your blog and update it from your Wordpress blog. [...]
Thanks for considering this. :)
[...] MyTwitter by Erundur Anwamehtar – this plugin caches your tweets and displays them in your sidebar. This has the advantage of it not being blocked by filters which block the twitter site, such as my own work! It is very easily customisable, and allows you to manipulate the code used to display your tweets – which allowed me to add a ‘follow me’ button to the end of the widget – very handy! By the way, the beautiful button is by Siah Design, who has a whole selection of equally gorgeous ones! [...]
i tried to add/install the plugin directly in wordpress and when i went to activate it i got the following error…”plugin could not be activate because it triggered a fatal error…
Parse error: parse error, unexpected ‘{‘ in /home/content/t/i/g/******/html/blog/wp-content/plugins/mytwitter/mytwitter.php on line 70″ also i cannot find any options panel to input the prefs like username and password…please help
I get this error message when trying to activate the plugin:
Parse error: parse error, unexpected ‘{‘ in /home/content/m/1/5/m15446923/html/wp-content/plugins/mytwitter/mytwitter.php on line 70
i give the 777 permission but i got
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/domains/kutucuk.net/semihmasat/wp-content/plugins/mytwitter/cache/elitwee_294db9ce8014cbdbac2e612a6f2588ec.json_cache) is not within the allowed path(s): (/home/kutucukn/:/tmp:/usr/local/lib/php/) in /home/kutucukn/domains/kutucuk.net/public_html/semihmasat/wp-content/plugins/mytwitter/elitwee.php on line 47
i think i cant write the true direction..
I’m getting a different error:
Error: Unable to access Twitter at URL (http://www.twitter.com/statuses/user_timeline/c0rinne.json?count=1?count=1). Verify service status. (HTTP code 400.)
Re-installing seemed to work.
Nice plugin! I have to agree with theinker though – a way to filter out the @ replies would be appreciated. I’m not good enough with php myself to figure that out….
Maggie C, did you find any way to get around this?
Parse error: syntax error, unexpected ‘{‘ in …./mytwitter.php on line 70
Hi there, I have managed to install myTwitter Plugin into my wordpress. However, it keep on prompting this message: “Error: Cache location must be writable.” How should i configure my cache location??
I’m getting corrine’s error, but reinstalling didn’t help. Using wp 2.6.1 and php 5.2.
PS, the suggestion above by theinker would absolutely rock:
“a check-box to opt to ignore all @ replies would be great”. That would really set this plugin apart! @replies look so dumb on a webpage (imho)
OK, tried reinstalling today, got this error (yay! an identifiable error!) failed to open stream: Permission denied in /home3/ctrlzws/public_html/wp-content/plugins/mytwitter/elitwee.php on line 37
I tried chmoding the actual mytwitter folder to 777 and not just the cache folder and that seems to solve it.
Also getting the “cache must be writable” error despite following all available instructions.
I run WP 2.7 and get the following error when I try to activate it:
arse error: syntax error, unexpected ‘{’ in …./mytwitter.php on line 70
I really want this one to work, any ideas?
I’m using WP 2.7.1 and get this error:
Error: Unable to access Twitter at URL (http://www.twitter.com/statuses/user_timeline/thehistoryguy.json?count=1?count=1). Verify service status. (HTTP code 400.)
Rather than any actual tweets. I’ve been trying to look for some kind of a solution and the only thing I came across was that twitter might have changed something to break it – but then I’ve seen other people with this working – like right here on this page!
I’m having the same problem as Rachel. Oddly enough as long as I keep the ‘Twitter for Wordpress’ plugin active everything works fine, but when I switch so only this one is active I get the error.
Would it be possible to make such feature to display multiple twitter account tweets? Similarly like Twitter for Wordpress plugin does: http://wordpress.org/extend/plugins/twitter-for-wordpress/
I was experiencing the line 70 issue – I opened the file to check it out, its using a new Php 5 error testing function.
Please make sure your server is running on PHP 5.
Hope this helps!
Also getting HTTP 400 errors pretty regularly. Setting the CURLOPT_CONNECTTIMEOUT in elitwee.php to a higher number (or zero for no timeout) doesn’t seem to fix it. Doing the curl myself gives a response after a few seconds, every time. Any other options to adjust?
Hi, after I upgraded to v2.8.1, when I tried posting new tweets via the Twitter panel in WP dashboard, I kept getting “You do not have sufficient permissions to access this page.”
Any help is appreciated :)
@Josh: not sure what’s ‘causing that problem.
@uncle sha: I haven’t had a chance yet to test the plugin on 2.8.1. Are you the admin on the site? I know they’ve been making some security changes to the plugins section so the upgrade may have effected that.
And to everybody in general: I’m sorry that hasn’t been much new here recently. I’m hoping to get some time to update the plugin (for OAuth and try to work in a couple feature requests), but I’ve had more pressing (paying) projects to work on lately.
@Erundur Anwamehtar
Yup I’m an admin at the site.
v2.8.1 is all about more security with the plugins as i read the changelog.
I reckon that’s why I’m having permission problems via my MyTwitter dashboard, but I’m perplex as I’m the admin.
Anyway do what you can dude at your own pace, I forgot to praise your work. KUTGW! It’s an excellent plugin
:)
Hi,
I realised i’m having the same problem as Uncle Sha, hope there will be solutions, thank you! (:
I am also getting the “You do not have sufficient permissions to access this page” error message. I am the admin and all that jazz. Please help! Thanks.
Hmmm, now I’ve been doing some reading too about the security updates. Not too sure if this info means anything to you @Erundur Anwamehtar but I’m wondering if this might be the issue?
“Deprecate wp_specialchars() in favor of esc_html(). Encode quotes for esc_html() as in esc_attr(), to improve plugin security (ref. Development Updates) “
I hope this works with v2.8! I’m installing it now.
I installed this plugin, I’m using version 2.8.2 of word press, I go to admin settings of this plugin and all I see is a blank page. any idea what to do?
MyTwitter 2.0.2 is incompatible with Wordpress 2.8.3. I am working on a rewrite of the plugin to be compatible with version 2.8 and higher. I will release it as soon as I am able to. Sorry for the inconvenience.
Hi,
I’m getting a white page at the admin settings page aswell.
I’m using WP 2.6.3
Please help! :)
Thanks for the info Erundur. Now I know why I’m getting “You do not have sufficient permissions to access this page.”
dwinfrey, i was having this same problem in 2.8.4, to fix it, change line 215 in wp-content/plugins/mytwitter/mytwitter_admin.php to:
the change here is the form action, previously the plugin tries to post directly to this file, which wordpress isn’t a big fan of (security concerns, and what not) so you just re-post to the current URL and it all works peachy keen.
As a side note, I’ve spent a little bit of time making the elitwee class work without the cURL library – I will try to submit those patches somewhere as soon as I’m sure it’s working 100%!
Jim Rubenstein,
Change line 215 to what??? Please show a example of the code to replace on this line. Im having the same problem and same error..
Thanks,
James
Hey Jim Rubenstein… what is the script change? It either got eaten or deleted!
Does “re-post to the current URL” mean line 215 looks like this:
page=mytwitter/document.URL
vs.
page=mytwitter/mytwitter_admin.php
Please excuse my amateur question.
For those of you wondering about the change to make it work, I was able to get it to work by this:
<form name="mytwitter_options" id="mytwitter_options" action="” method=”post” onsubmit=”javascript:return doValidation(this)” autocomplete=”off” >
hope this helps some of you.