How come I never heard about Amstamgram before they got gobbled up by Facebook? :P
Okay.. now that I managed to get it working I.. have another question. :P
I'm using this code to create a list of tweets from my Twitter account:
<?php
$json = wp_remote_get("http://twitter.com/status/user_timeline/lorenzoraffio.json?count=6", true);
$decode = json_decode($json['body'], true);
echo "
<ul style='color:#6E6E6E'>";
$count = count($decode); //counting the number of status
$date = $tweets['created_at']; // created date
for($i=0;$i<$count;$i++){ echo '
<li>'.$decode[$i]['text'].'<br><a href='; echo '"http://twitter.com/#!/'.$decode[0][user][name].'/status/'.$decode[$i][id].'"><small>'. date('j F',strtotime($decode[$i]['created_at'])) ."</small></a> - <a href='http://twitter.com/intent/tweet?in_reply_to=".$decode[$i][id]."'><small>rispondi</small></a> - <a href='http://twitter.com/intent/retweet?tweet_id=".$decode[$i][id]."'><small>retweet</small></a> - <a href='http://twitter.com/intent/favorite?tweet_id=".$decode[$i][id]."'><small>preferito</small></a></li>";} echo "
</ul>
";
?>
Everything works perfectly except that the dates are in english. I need to set italian language for the strtotime function.. I know I need to use setlocale(LC_TIME, 'it_IT'); but I don't know where to add it..




