Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#32 2009-01-09 16:40:17

kimili
Plugin Author
From: Massachusetts, USA
Registered: 2004-06-17
Posts: 108
Website

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

#33 2009-01-14 14:28:25

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

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”/>

then I updated the plugin to 1.1, and instead of my 3 tweets, i get:
  1. Dec 31st, 1969
  2. Dec 31st, 1969
  3. 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

#34 2009-01-14 15:18:56

kimili
Plugin Author
From: Massachusetts, USA
Registered: 2004-06-17
Posts: 108
Website

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:

  1. Delete the kemie_twitter.cache file in /textpattern/cache
  2. 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

#35 2009-01-15 09:45:14

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

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

#38 2009-02-06 09:31:11

ronan
Member
From: luzern (schweiz)
Registered: 2008-05-02
Posts: 53
Website

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

Need to show tweets from a protected account. is this feature in planning?

Offline

#39 2009-02-06 15:01:34

kimili
Plugin Author
From: Massachusetts, USA
Registered: 2004-06-17
Posts: 108
Website

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

#40 2009-02-06 15:03:17

ronan
Member
From: luzern (schweiz)
Registered: 2008-05-02
Posts: 53
Website

Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline

cool news, thanks for answer

Offline

Board footer

Powered by FluxBB