Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Thanks, Tye! I thought there might be a way to do this without hacking the plugin.
Using blockquote or q paired with a cite tag on the Twitter username would be a more semantic way to do this in XHTML 1.0, and HTML5 has dialogue markup available (although I don’t think dt and dd are good fits for dialogue). Since the plugin documentation advertises customizable markup, I thought there might be a way to address the tweet_text specifically.
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Did Twitter change something in their API? I ask because when I have DISPLAYORDER set to “tweet-time-conversation” the time permalink points to an incorrect URL. I’m pretty sure the permalink was working before.
Currently, permalinks to tweets are set as this in kml_twitter 1.2:
http://twitter.com/chorrell/statuses/-315354453
When they should be:
http://twitter.com/chorrell/status/3979612843
I’ve been trying to figure out what’s happening. Changing “statuses” to “status” was an easy fix (line 108 in the plugin code) but I can’t quite figure out where the rest of the URI is coming from. It seems that somethings going wrong when pulling the tweet ID from the JSOn feed, but I can’t figure out what it is.
Offline
#78 2009-09-17 16:59:39
- corkingdesign
- New Member
- Registered: 2009-09-17
- Posts: 4
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
I have been using your plugin for some time now and I think it is great but I am having some issues, I am constanly getting the message:
Rate limit exceeded. Clients may not make more than 150 requests per hour.
On first visit to my site I get the tweets but on refreash I normally get the message, I am not sure why this is occuring can anyone help.
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
@corkingdesign – It sounds like you’ve not got the plugin’s caching set up properly. There’s a few things to check:
- The
cache_lifeattribute is set to something higher than 0. (default is 600) - You’ve created a /textpattern/cache/ directory
- The /textpattern/cache/ directory permissions should be set to 777 (World writable)
If any of those items are not as I describe, the plugin won’t create a cache file, but will hit Twitter for content on every page view. That’s probably why you’re going over the limit.
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
@Christopher – I doesn’t really matter if you use either /status/ or /statuses/ in a URL – they both work. Try it out:
What’s definitely invalid in the first URL you reference is the hyphen in the id. Tweet IDs are sent as an integer, and that’s what’s needed for the URLs to work. Maybe you had an extra hyphen in your attribute? Something like tweet-time--conversation?
Last edited by kimili (2009-09-17 20:06:58)
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
kimili wrote:
What’s definitely invalid in the first URL you reference is the hyphen in the id. Tweet IDs are sent as an integer, and that’s what’s needed for the URLs to work. Maybe you had an extra hyphen in your attribute? Something like tweet-time--conversation?
——
No, no error in the attribute from what I can tell. What I have is the following:
<txp:kml_twitter user="chorrell" displaytitle="false" count="1" displayorder="tweet-time-conversation" displayfooter="false" cache_life="660" usetextile="false" />
And it’s not just the extra hyphen that’s the problem, everything after it is incorrect as well.
So for instance my latest tweet is this:
http://twitter.com/chorrell/status/4078379799
but kml_twitter outputs:
http://twitter.com/chorrell/statuses/-216587497
The numbers at the end are completely different.
Last edited by Christopher (2009-09-18 13:39:06)
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
That is bizarre. Which version of Kimili Twitter Timeline are you using? I suspect you’re using 1.0 or 1.1.
I tested your <txp:kml_twitter /> tag verbatim in both 1.2 and a 1.3 version which I’ll soon release, and the output was just fine in both cases.
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
I’m currently using 1.2. Maybe it’s a server config issue?
And thanks for your help btw!
Offline
#84 2009-09-22 13:24:01
- corkingdesign
- New Member
- Registered: 2009-09-17
- Posts: 4
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
@kimili
I have checked and double checked the folder is in the correct location, the cache_life is set to 600 and the permission are set to 777 but I am still havong the same problem. Anything else that might be up?
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
@corkingdesign@ – is there a _username__twitter.cache file in your cache directory? If so, what are the permissions on that file?
Offline
#86 2009-09-22 14:02:16
- corkingdesign
- New Member
- Registered: 2009-09-17
- Posts: 4
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
@kimili
Yes there is and it is set to 644 but the folder is set to 777
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
@corkingdesign – What is the date and time of that file (is it more than 10 minutes old)? Are the owner and group different? Try chmod 666 on that cache file? Also, try deleting it and see if it gets recreated when you hit the page again.
- Michael
Last edited by kimili (2009-09-22 14:08:29)
Offline
#88 2009-09-22 14:12:44
- corkingdesign
- New Member
- Registered: 2009-09-17
- Posts: 4
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
@kimili I have changed the permission now to 666 the file is over an hour old. Yes owner and group are different.
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
As long as your pages are getting hit, it shouldn’t be more than 10 minutes old (600 seconds, or whatever you set the cache_life to). Try deleting it and seeing if it gets recreated properly
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
kimili wrote:
mrtunes and passionado – What version of Textpattern are you using? Have you tried setting the
usetextileattribute tofalse?
i have the same error
Fatal error: Call to a member function TextileThis() on a non-object in /nfs/c04/h01/mnt/58818/domains/domain/html/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 124
where i change the option of usetextile?
Thanks
Last edited by sebatorresi (2009-09-29 13:39:52)
Sonríe | Smile . <txp:lover />
Offline