Tom,
We do not allow HTML in tweets. Only plain text. Any links sent will be
automatically linked on Twitter.com but it is up to third-party clients to
handle any linking within their application.
Thanks,
Doug
On Mon, Jul 13, 2009 at 6:38 AM, Stuart stut...@gmail.com wrote:
2009/7/13 Tom tombomb...@gmail.com:
I'm kinda new to php and have no clue how to do this, but how would I
make links from the description field clickable? I know I need to add
a href=link here text /a but how do i go about doing it, below
is the coding I'm using currently.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
?php
$username = RuneTweeter;
$rssUrl = http://twitter.com/statuses/user_timeline/$username.rss?
count=5;
$rss = @file_get_contents($rssUrl);
if($rss){
$xml = @simplexml_load_string($rss);
if($xml !== false){
foreach($xml-channel-item as $tweet){
echo substr($tweet-pubDate,0, -6).br /;
echo substr($tweet-description,13).br /;
echo a href=\{$tweet-link}\{$tweet-link}/abr /br /;
}
}else{
echo Error: RSS file not valid!;
}
}else{
echo Error: RSS file not found. Username invalid or requires
authentication;
}
?
http://stut.net/projects/twitter/htmlify_tweet.html
-Stuart
--
http://stut.net/projects/twitter/