Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#31 2009-01-09 16:25:25
- MikeTheVike
- Member
- Registered: 2008-06-17
- Posts: 47
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
kimili,
I just changed to PHP 5 in the Godaddy control panel and tried it out and it worked fine with no errors! I guess using PHP 5 fixes the other errors as well. Let me know if you think I still might need to change anything. Thanks again!!
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Mike – Strange! The fopen() error you were getting is a server configuration setting, not a PHP4 incompatibility. I guess GoDaddy’s PHP5 setup is less restrictive.
Glad it worked out for you! Enjoy!
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
I’m having another problem. I upgraded to php, and got version 1.0 working perfectly with:
<txp:kml_twitter user=“kemie” count=“3”/>
- Dec 31st, 1969
- Dec 31st, 1969
- Dec 31st, 1969
all of them linking to
http://twitter.com//statuses/
going back to 1.0 fixes it, but I’d really like to use the new properties. any clues as to what might be happening?
thanks!
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Kemie –
I suspect that’s due to differences in how the cache is formatted between 1.0 and 1.1. I think what you saw there is 1.1 reading the 1.0 cache file and not making sense of it. There’s 2 things you can try if you reinstall 1.1:
- Delete the
kemie_twitter.cachefile in/textpattern/cache - or temporarily set
cache_life="1"in your<txp:kml_twitter />tag, then refresh your page with the tag output on it. That would rewrite the cache file with the new format.
Let me know if that works for you.
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
perfect, that did the trick! thank you so much!
~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~
Offline
#36 2009-01-26 23:20:25
- johnnie
- Member
- Registered: 2007-03-10
- Posts: 58
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
To those stuck with a host that has fopen() disabled, here’s some code to make this plugin work with cURL instead. Just replace the function kml_get_tweets with the following. Perhaps the plugina uthor could maybe build in some default support for cURL? fopen() is certainly on its way out.
function kml_get_tweets($url = "") {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
if ($tweets = curl_exec($ch)) {
curl_close($ch);
return json_decode($tweets);
}
curl_close($ch);
return false;
}
Last edited by johnnie (2009-01-26 23:22:52)
Offline
#37 2009-01-26 23:34:39
- johnnie
- Member
- Registered: 2007-03-10
- Posts: 58
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Also, a feature request; could you make it possible to alter the “See more at Twitter” text without hacking the plugin?
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Need to show tweets from a protected account. is this feature in planning?
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
There’s been a couple of requests for the plugin to access protected accounts. I’m not currently working on an update, but as time opens up to work on it – likely sometime within the next month or so – I’ll look into it.
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
cool news, thanks for answer
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Hi Kimili,
Your instructions are easy enough: create “cache” dir, chmod 777, add tag and change user value — but it’s not reading the feeds. I get the default error message. Also, when I try and change the “title” value a second time (to correct a mistake) it stays stuck on the first title I edited instead of “Twitter.” In other words, I can’t seem to edit the title. Thoughts?
Ed. — I reloaded plugin and the title was still frozen from the previous use of the tag. Deleted the tag in page, readded, and was able to use the new title. I see, however, I can say “false” on the title and use my own h3 so no worries on that. Just need the feed, now.
Last edited by Destry (2009-02-08 11:53:31)
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Not sure why you’re not getting the feed. Is your timeline protected? If not, what is your twitter username?
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
I just get the following error?
Twitter There was a problem retrieving data from Twitter.
Does anyone know why this is? I have tried both functions, and the same happens? I have even tried with different usernames, and still it says it cant get the data :S Anyone else having this issue?
Last edited by driz (2009-02-13 13:29:55)
~ Cameron
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
(forgot to subscribe to the thread)
Hi Kimili, No it’s not protected. I have the same problem expressed by driz there.
@Wion
/* subscribes to thread */
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
I’ve just published a new version of Kimili Twitter Timeline (version 1.2) that fulfills some requests and hopefully fixes any issues Destry and driz were having. Included in this update:
- Private account authentication! – Now you can display your tweets even if you have a protected account set up.
- Any Textile formatting in tweet text can now be parsed as Textile.
- You can now customize link text in the footer.
- Changed feed request method from
fopentocurl, which is more flexible and should be more compatible for some who were having problems retrieving their feed.
Read more about it and download it on the Kimili Twitter Timeline home page.
Offline