Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
usetextile
attribute tofalse
?
there you are! wow that fixed it. i’m on 4.0.8 btw.
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Forgive me if this is addressed somewhere: How can I change the tweet_text wraptag from span
to something else?
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Edit line 127 of the code
$output .= "<span class=\"$tweettext_class\">$text</span>";
Offline
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_life
attribute 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