Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
A feature I’d like to request for this plugin is the ability to ignore replies, so a simple attribute like showreplies="true"
will show replies and showreplies="false"
will not show replies. Thanks.
EDIT: Just realized that someone had already requested this feature (my bad for not reading) but still I think it’d be better as a boolean value of true or false rather 0 or 1.
Last edited by driz (2009-04-08 11:28:10)
~ Cameron
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Boolean settings of 0 and 1 would be more consistent with the rest of Textpattern.
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
johnstephens wrote:
Boolean settings of 0 and 1 would be more consistent with the rest of Textpattern.
0 and 1 isn’t proper Boolean though! Either way it would be nice to see this feature implemented regardless of the values used, any news Kimili?
Last edited by driz (2009-04-10 00:41:09)
~ Cameron
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
OK – I’ve been trying to get this code to output like:
<ul><li>twitter thing1…</li><li>twitter thing1…</li></ul>
instead of:
<ul>
<li>twitter thing1…</li>
<li>twitter thing1…</li>
</ul>
I’ve removed all the \n & \r & \t tags – but it still outputs on seperate lines and indented.
This is what I have so far… what am I missing
output .= "<$wraptag".(($wraptag_class != '') ? ' class="'.$wraptag_class.'"' : '').">";
foreach ($tweets as $tweet => $item) {
$text = kml_twitter_formatter($item->text);
$timesince = kml_twitter_time_since(date('U', strtotime($item->created_at)));
$when = ($timesince != "December 31st, 1969") ? $timesince : $item->created_at; // if $timesince ok display it, otherwise display it raw
$status_url = $twitter_url . $item->user->screen_name . "/statuses/" . $item->id;
$output .= ($breaktag != 'br' && $breaktag != '') ? "<$breaktag".(($breaktag_class != '') ? ' class="'.$breaktag_class.'"' : '').'>' : '';
$order = explode('-', $displayorder);
for ($x = 0; $x < count($order); $x++) {
switch($order[$x]) {
case 'time':
$output .= (preg_match('/permlink/i', $displayorder)) ? "<span class=\"tweet_time\">$when</span>" : "<a href=\"$status_url\" class=\"tweet_time\">$when</a>";
break;
case 'tweet':
if ($usetextile == "true") {
$text = preg_replace('/@/',"@", $text); // Use the character entity for @ to prevent Textile from turning it into code
$text = $textile->TextileThis($text);
$text = preg_replace('/<\/?p>/',"", $text); // Strip paragraphs
}
$text = trim(nl2br($text));
$output .= "<span class=\"$tweettext_class\">$text</span>";
break;
case 'conversation':
if (isset($item->in_reply_to_user_id) && isset($item->in_reply_to_screen_name) && isset($item->in_reply_to_status_id)) {
$reply_url = $twitter_url . $item->in_reply_to_screen_name . "/status/" . $item->in_reply_to_status_id;
$output .= "<a href=\"$reply_url\" class=\"$conversation_class\">in reply to $item->in_reply_to_screen_name</a>";
}
break;
case 'permlink':
$output .= "<a href=\"$status_url\" class=\"tweet_permlink\">$permlink_text</a>";
break;
}
if ($x < count($order)) {
$output .= $separator;
}
}
switch ($breaktag) {
case '':
break;
case 'br':
$output .= "<$breaktag />\";
break;
default:
$output .= "</$breaktag>";
}
}
$output .= "</$wraptag>";
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Scratch that request – it must have been cached as its all on one line now :)
Thanks for a great plugin :)
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Any word on the ignore replies feature?
Also, the plug-in has an annoying tendency to kick off about 100+ requests, any word on getting around this?
~ Cameron
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
mistersugar wrote:
I’m attempting to use this plugin, but when I activate it and refresh my site, I get this:
Fatal error: Call to undefined function json_decode() in /users/home/mistersugar/domains/mistersugar.com/public_html/textpattern/lib/txplib_misc.php(512) : eval()’d code on line 64
Ideas?
Ditto on this one, any fix around?
Proud Canadian. Toronto Locksmith , Actualize Consulting
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Regarding json_decode()
:
My first guess is that you’re trying to run the plugin on a relatively old version of PHP. json_encode()
and json_decode()
were introduced in PHP 5.2.0. Check your version of PHP and if it’s earlier than 5.2.0, you should upgrade it if possible. I don’t have plans to make the plugin backwards compatible with older versions of PHP, but if anyone has any ideas on how to do so without too much overhead, I’d be glad to hear them.
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
Fatal error: Call to a member function TextileThis() on a non-object in /public_html/textpattern/lib/txplib_misc.php(570) : eval()'d code on line 124
does anyone know what this error is?
Offline
#70 2009-08-26 12:54:42
- passionado
- Member
- From: Cologne
- Registered: 2006-04-09
- Posts: 11
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
@mrtunes: i’m receiving the same error
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
mrtunes and passionado – What version of Textpattern are you using? Have you tried setting the usetextile
attribute to false
?
Offline
Re: [plugin] [ORPHAN] kml_twitter: Kimili Twitter Timeline
passionado wrote:
@mrtunes: i’m receiving the same error
well it’s been over a month since i posted.
i’m having trouble with all sorts of reblogging plugins like the simplepie project, so there must be a php setting in my server that needs to be changed.
Offline