3 of 3
3
New Module: Twit-ee - show data from the Twitter API in EE templates
Posted: 22 March 2010 04:10 PM   [ Ignore ]   [ # 37 ]  
Grad Student
Avatar
Rank
Total Posts:  48
Joined  04-24-2002
kevin332 - 19 May 2009 08:44 AM

This tweet cut off right before the ampersand and gives this error message:

WarningTwitee::_parse_status() [function.Twitee--parse-status]unterminated entity reference Osugi Ren as "shockers": <a href="http://bit.ly/2gU1O">http://bit.ly/2gU1O</a> in /home/myacct/public_html/mydir/systemfolder/modules/twitee/mod.twitee.php on line 433 

I ran into the same issue today. I fixed it by replacing this:

$status->text $this->twitterStatusUrlConverter($status->text);
$status->text $TYPE->parse_type($status->text$prefs);
$status->text $REGX->xss_clean($status->text); 

with this:

$text htmlspecialchars($status->text);
$text $this->twitterStatusUrlConverter($text);
$text $TYPE->parse_type($text$prefs);
$status->text $REGX->xss_clean($text); 

in both the _parse_basic_user and _parse_status functions.

 Signature 

chrisruzin.netTextMate EE 1.x BundleCRZ Keyboard ShortcutsSolspace
“The greatest barrier to success is the fear of failure.” - Sven Goran Eriksson

Profile
 
 
Posted: 06 April 2010 10:13 PM   [ Ignore ]   [ # 38 ]  
Summer Student
Total Posts:  9
Joined  12-19-2009

Something’s gone wacky. All the twitters in my “twitee” list are showing today’s date instead of the twitter “created_at” post date. Is it something to do with the Host server it’s on and Daylight Saving, which just clicked over where I am? Did Twitter itself maybe change something?

I’m using EE 1.6.8, if that matters.

EDIT MUCH LATER:
Didn’t realise the standard time “format” EE tag doesn’t work for it. Strange thing to miss out.

Profile
 
 
Posted: 26 April 2010 10:12 AM   [ Ignore ]   [ # 39 ]  
Lab Assistant
RankRank
Total Posts:  128
Joined  10-26-2007

How do you format the date in this module

I have the time for {created_at) appearing as Thu Apr 15 11:09:55 +0000 2010

and want to get rid of the year and the +0000 so it is just Thu Apr 15 11:09:55

Many Thanks

Profile
 
 
Posted: 04 May 2010 02:03 AM   [ Ignore ]   [ # 40 ]  
Grad Student
Avatar
Rank
Total Posts:  48
Joined  03-15-2006

Dont know if this is a bug… But my client pointed out that they wanted url’s opened in a new window… if you look at the code for a link, it says:

<a href="http://lotidningen.lo.se/?id_item=27978" rel="extenal"

Shouldn’t it be:

<a href="http://lotidningen.lo.se/?id_item=27978" rel="external"

/Henrik

 Signature 

***********************************
A&O Media Design
http://www.aomedia.se
***********************************

Profile
 
 
Posted: 25 May 2010 11:59 AM   [ Ignore ]   [ # 41 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  465
Joined  05-15-2007

Hi there,

Even though I’ve entered the right username and password, I keep getting this error when I use some of the example code in a template:

Sorry, Twitter seems to be down.

Here’s the example code I’ve copied and pasted into a template:

{exp:twitee:public_timeline refresh="5" limit="10"}
{if count 
== 1}<ul>{/if}
    
<li>{text}</li>
{if count == total_results}</ul>{/if}
{
/exp:twitee:public_timeline} 

Twitter seems to be working fine and I can’t see any issues reported on the Twitter API status page. I’ve also noticed that if I enter an incorrect password in the Module settings page, I get the same error message about Twitter being down.

I’m pretty sure I have cURL installed on this server as I also needed that for the Google Analytics extension to work.

Any ideas about this at all?

Thanks.

 Signature 

 
Stephen McIver | Made by Bridge | Huddersfield & Liverpool, UK | Twitter

Profile
 
 
Posted: 03 June 2010 05:31 PM   [ Ignore ]   [ # 42 ]  
Summer Student
Avatar
Total Posts:  27
Joined  06-14-2008
Chris Ruzin - 22 March 2010 08:10 PM

I ran into the same issue today. I fixed it by replacing this:

$status->text $this->twitterStatusUrlConverter($status->text);
$status->text $TYPE->parse_type($status->text$prefs);
$status->text $REGX->xss_clean($status->text); 

with this:

$text htmlspecialchars($status->text);
$text $this->twitterStatusUrlConverter($text);
$text $TYPE->parse_type($text$prefs);
$status->text $REGX->xss_clean($text); 

in both the _parse_basic_user and _parse_status functions.

@Chris - Just wanted to say thanks for this. I was struggling through the module PHP and ready to try something different. Works like a gem now!

 Signature 

Design Litmus : A blog about design, clients, running small studios, and all the tests that go along with it. Built on EE.
Collaboratory : A creative environment that encourages open minded individuals to explore innovative design solutions. Built on EE.

@Artletic - where I make with the tweets

Profile
 
 
Posted: 04 June 2010 10:02 PM   [ Ignore ]   [ # 43 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  107
Joined  05-24-2010
sm9 - 25 May 2010 03:59 PM

Sorry, Twitter seems to be down.

Here’s the example code I’ve copied and pasted into a template:

{exp:twitee:public_timeline refresh="5" limit="10"}
{if count 
== 1}<ul>{/if}
    
<li>{text}</li>
{if count == total_results}</ul>{/if}
{
/exp:twitee:public_timeline} 

Twitter seems to be working fine and I can’t see any issues reported on the Twitter API status page. I’ve also noticed that if I enter an incorrect password in the Module settings page, I get the same error message about Twitter being down.

I’m pretty sure I have cURL installed on this server as I also needed that for the Google Analytics extension to work.

Any ideas about this at all?

The default timeout for cURL execution within the module is set to 1 second if no timeout parameter is given.

For those suffering these symptoms and want a quick fix, just add the timeout parameter:

{exp:twitee:public_timeline refresh="5" limit="10" timeout="5"}
{if count 
== 1}<ul>{/if}
    
<li>{text}</li>
{if count == total_results}</ul>{/if}
{
/exp:twitee:public_timeline} 

And, for a more permanent solution change the default timeout value; mod.twitee.php line 169 reads:

$this->timeout = ( ! $TMPL->fetch_param('timeout')) ? '1' $TMPL->fetch_param('timeout'); 

Simply change the default value ‘1’ to the desired number of seconds (5-10 seconds seems reasonable).

Hope this helps.

Profile
 
 
Posted: 13 June 2010 10:33 PM   [ Ignore ]   [ # 44 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  465
Joined  05-15-2007

Hi Cue,

Sorry for the delay in replying, and thanks for the pointer, much appreciated.

Thanks.

 Signature 

 
Stephen McIver | Made by Bridge | Huddersfield & Liverpool, UK | Twitter

Profile
 
 
Posted: 25 June 2010 12:32 AM   [ Ignore ]   [ # 45 ]  
Grad Student
Avatar
Rank
Total Posts:  93
Joined  12-08-2007

Is there a way I can display the number of “followers” with this add-on? Thanks!

 Signature 

BaneyDesign.com   |   Skype: baney.design

Profile
 
 
Posted: 01 July 2010 11:05 PM   [ Ignore ]   [ # 46 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  131
Joined  07-30-2006

So this was working great; I moved to a new server to launch the site and every page that twit-ee was on was completely blank! No errors at all.

Took me forever to figure out that it was the twitter module, but once I took it out everything was ok again. I had this problem when Twitter was down with the 1st Party Twitter Timeline, but Twitter is ok and I keep getting blank pages. What in the world is going on!?!

thanks for your help,

Jonathan

 Signature 

Jonathan Longnecker or Nate Croft
FortySeven Media

Profile
 
 
Posted: 02 July 2010 05:27 AM   [ Ignore ]   [ # 47 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  107
Joined  05-24-2010

I can’t seem to get {count} and {total_results} to show anything. Their just empty variables?

Profile
 
 
   
3 of 3
3