Google dot what?
Posts: 2
16 credits Members referred : 0
« on: Jul 30, 2009, 09:15:03 pm »
I implemented the RSS to Twitter app and it worked great. Thank you.
Right now the tweet is displaying the title and shortened link. I'd like to display the title and description with either of the above tagged with the link (so the actual link URL doesn't display but the title or description are linked to the full text).
If it's awkward to link the title or description instead of displaying the shortened link, I would prefer to display the entire original link rather than the shortened one. How would I do that?
I appreciate the help. I'm a PHP shoemaker trying to learn.
Thanks.
Google dot what?
Posts: 2
16 credits Members referred : 0
« Reply #1 on: Aug 01, 2009, 03:21:24 pm »
Since there haven't been any takers, perhaps someone can tell me if my changes to the code as below are correct...
Code:
//Parse the feed $messages = array();//Here we will store all the messages that we are going to post to twitter foreach( $feed->channel->item as $item ){ $title = $item->title; // If you want to fetch the description instead use $item->description $description = $item->description; $url = $item->link; //Have we already posted that? if ( $url == file_get_contents($file) )break; //Now do the actual posting.
I added $description = $item->description; as above, and then $description . ' ' . as below:
« Last Edit: Aug 01, 2009, 03:26:07 pm by turfnet »
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #2 on: Aug 02, 2009, 08:58:06 pm »
That looks ok. As for the original links I am afraid that is something that you can't do as the original links would be too big to used in 140 characters. Anyway twitter uses nofollow to the links so there is no meaning doing that seowise.
Chicken-run Manager
Posts: 9
54 credits Members referred : 0
« Reply #3 on: Sep 09, 2009, 11:55:45 am »
When I tried this it would show the title and description but the problem is that it wouldn't create the short url so i'm not sure what is still missing or needed. Would be nice if it worked. Other thing I noticed is the log file is only recording the last url out of the feed which seems like it should be recording every feed it posted.
« Last Edit: Sep 09, 2009, 12:14:38 pm by raymond4000 »
Chicken-run Manager
Posts: 9
54 credits Members referred : 0
« Reply #4 on: Sep 09, 2009, 08:35:55 pm »
Just noticed today that when I run this as a cron that it is reposting the same feeds over and over again for what ever reason... lol Doesn't look like the log file is working correctly. Anyone else have that issue?
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #5 on: Sep 16, 2009, 07:09:16 am »
Maybe the script has no rights to write to the file?