Bugfix serendipity_plugin_twitter.php

Found a bug? Tell us!!
Post Reply
User avatar
seraphyn
Regular
Posts: 211
Joined: Fri Dec 01, 2006 9:42 am
Contact:

Bugfix serendipity_plugin_twitter.php

Post by seraphyn » Mon May 30, 2011 11:20 am

For the right link to the notice at the Date we need to change in the line 279 $value->id_str . to $value->id . :
from:

Code: Select all

$str_output[] = '<li class="twitter_update_' . $odd_css . '"><span> ' . $status->text = $api->replace_links_in_status($va    lue->text, $this->get_config('linktext','link'), 'twitter_update_link', 'twitter_user') . '</span><a class="twitter_update_time" href="' . $statu    s_url . $value->id_str . '">' . $this->makeDate($value->created_at,$dateformat) . '</a></li>';

to:

Code: Select all

$str_output[] = '<li class="twitter_update_' . $odd_css . '"><span> ' . $status->text = $api->replace_links_in_status($va    lue->text, $this->get_config('linktext','link'), 'twitter_update_link', 'twitter_user') . '</span><a class="twitter_update_time" href="' . $statu    s_url . $value->id . '">' . $this->makeDate($value->created_at,$dateformat) . '</a></li>';
then the Date links to the notice in identi.ca

To be continued...
Greetings Seraphyn

EDIT: I put for myself a

Code: Select all

<br>
in front of '</span><a class="twitter_update_time" href="' . $s tatus_url . $value->id . '">' . $this->makeDate($value->created_at,$dateformat) . '</a></li>';
so it turns to '<br></span><a class="twitter_update_time" href="' . $s tatus_url . $value->id . '">' . $this->makeDate($value->created_at,$dateformat) . '</a></li>';
which looks better imo

Post Reply