Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2009-04-08 11:25:57

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

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

#62 2009-04-08 22:25:37

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 997
Website

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

Boolean settings of 0 and 1 would be more consistent with the rest of Textpattern.

Offline

#63 2009-04-10 00:39:33

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

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

#64 2009-04-28 06:43:19

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 858
Website

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

#65 2009-04-29 05:11:28

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 858
Website

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

#66 2009-05-06 19:11:41

driz
Member
From: Huddersfield, UK
Registered: 2008-03-18
Posts: 441
Website

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

#67 2009-07-08 15:02:58

1beb
Plugin Author
From: Canada, Ontario, Toronto
Registered: 2004-11-22
Posts: 169
Website

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?

Offline

#68 2009-07-08 15:16:26

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

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

#69 2009-07-20 22:36:54

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

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

#71 2009-08-26 14:25:53

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

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

#72 2009-08-26 17:43:54

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

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

Board footer

Powered by FluxBB