Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Destry –
It seems that your server’s PHP configuration is pretty restrictive. It’s not compiled with cURL, it seems fopen()
(what was being used on KTT 1.0 and 1.1) is not supported, so unless those can be reconfigured on your server, I don’t think we can make a successful request for your feed from Twitter.
The best thing to do is contact your host’s tech support and see if there’s any way you can enable cURL.
As for you getting your message from my site’s contact form, don’t worry, I get it too. I also have it configured to send to you as a reminder/courtesy, but perhaps that’s a bit awkward.
Cheers,
Michael
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
No worries. Like I said, I’m in no rush.
About the message, yeah, I don’t think that’s what most people would expect, a bit confusing/disconcerting. Especially as there’s no indication — by message or in the recipients field — that you did in fact get a copy too.
@All: Anyone else on Joyent Accelerators and having this problem?
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
works good. but i need to translate «13 minutes ago» in german.
i have modified the plugin, now i have 1 problem.
in german:
Minute(n)
Stunde(n)
Tag(en)
Woche(n)
Monat(en)
Jahr(en)
$print = ($count == 1) ? '1 '.$name : "$count {$name}n";
hangs on a «n», but i need for days, month an years «en». how can i change this?
thanks for help
Last edited by ronan (2009-02-19 08:04:03)
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Ronan – You could try modifying the kml_twitter_time_since()
function like this:
function kml_twitter_time_since($original) {
$chunks = array( // array of time period chunks
array(60 * 60 * 24 * 365 , 'jahr'),
array(60 * 60 * 24 * 30 , 'monat'),
array(60 * 60 * 24 * 7, 'woche'),
array(60 * 60 * 24 , 'tag'),
array(60 * 60 , 'stunde'),
array(60 , 'minute'),
);
$since = time() - $original;
if($since > 604800) {
$print = date("M jS", $original);
if($since > 31536000) {$print .= ", " . date("Y", $original);}
return $print;
}
// $j saves performing the count function each time around the loop
for ($i = 0, $j = count($chunks); $i < $j; $i++) {
$seconds = $chunks[$i][0];
$name = $chunks[$i][1];
if (($count = floor($since / $seconds)) != 0) { // finding the biggest chunk
$chunk = $i;
break;
}
}
$print = ($count == 1) ? '1 '.$name : $count.' '.$name.(($chunk == 0 || $chunk == 1 || $chunk == 3) ? 'en' : 'n');
return $print . " ago";
}
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
wow kimilie, works great.
thank you very mutch!
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
All -
I’ve just uncovered a few minor issues with KTT’s Textile usage. If you’re using textile and have multiple @users in a tweet, Textile would interpret the multiple @ symbols as a code block, which is not what we want here. I’ve tweaked the plugin to work around this issue, so if you’re having this issue, download Kimili Twitter Timeline again.
Cheers,
Michael
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
i’m using xampp on a localmachine, and i don’t know how to change permissions for my cache directory cause it’s windows.
Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\mysite\textpattern\lib\txplib_misc.php(574) : eval()’d code on line 177
is that error cause of my cache?
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
mrtunes –
That’s not a permissions problem. That’s because your local PHP build doesn’t include cURL support. I’m not sure, but I think you’d have to recompile PHP with cURL in order to make that error go away.
Cheers,
Michael
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
kimili wrote:
mrtunes –
That’s not a permissions problem. That’s because your local PHP build doesn’t include cURL support. I’m not sure, but I think you’d have to recompile PHP with cURL in order to make that error go away.
cool, thanks for clearing that up. i’ll try to set this up on some sort of live server area then.
Offline
#58 2009-03-02 10:53:18
- stopsatgreen
- Member
- Registered: 2008-07-03
- Posts: 50
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Feature Request: Could you add a parameter to ignore replies? That is, filter out any tweets that start with @foo? showreplies=‘0’, for example?
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Good idea – it shouldn’t be hard to do. I’ll work it in as time permits.
Offline
#60 2009-03-08 23:12:27
- phuture303
- Member
- Registered: 2008-09-14
- Posts: 127
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Unfortunately I get the error message Fatal error: Call to undefined function json_decode()… although running PHP in version 5.2.8
Any hints what to do?
Cheers,
David
Offline