I used a PHP snippet I found on the web,
<?php function get_status($twitter_id, $hyperlinks = true) {
$c = curl_init();
curl_setopt($c, CURLOPT_URL, "http://api.twitter.com/1/statuses/user_timeline.json?screen_name=$twitter_id?count=1");
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
$src = curl_exec($c);
curl_close($c);
preg_match('/<tex?>(.*)<\/text>/', $src, $m);
$status = htmlentities($m[1]);
if( $hyperlinks ) $status = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "<a href="\\"\\0\">\\0</a>", $status);
return($status);
}
echo get_status('google');
?>
but for some reason it doesn’t echo any nothing .. can someone help me here please?
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Item was Featured
- Author had a Free File of the Month
- Author was Featured
- Bought between 10 and 49 items
- Europe
- Exclusive Author
- Has been a member for 4-5 years
- Referred between 100 and 199 users
i think this is selfpromotion 
MarkDijkstra said
i think this is selfpromotion![]()
I’ll tell you the same thing @themolitor told me today when he was in my shoes and i was in yours 
“The “self promotion” prohibition applies to your items on the marketplace. The moderators said it was okay to promote stuff that helps the community (FYI).”
- Sold between 250 000 and 1 000 000 dollars
- Community Moderator
- Author was Featured
- Item was Featured
- Bought between 50 and 99 items
- Referred between 1000 and 1999 users
- Has been a member for 3-4 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
wpCanyonThemes said
I’ll tell you the same thing @themolitor told me today when he was in my shoes and i was in yours![]()
“The “self promotion” prohibition applies to your items on the marketplace. The moderators said it was okay to promote stuff that helps the community (FYI).”
+1
If this weren’t allowed it’d just stifle the sharing of knowledge… and sharing knowledge is kinda the point of the forums in the first place.
wpCanyonThemes said
Try this http://wpcanyon.com/tipsandtricks/2-different-ways-for-getting-twitter-status-php-and-jquery/
well.. can i use it for html template?
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Item was Featured
- Author had a Free File of the Month
- Author was Featured
- Bought between 10 and 49 items
- Europe
- Exclusive Author
- Has been a member for 4-5 years
- Referred between 100 and 199 users
wpCanyonThemes said
MarkDijkstra said
i think this is selfpromotion![]()
I’ll tell you the same thing @themolitor told me today when he was in my shoes and i was in yours
“The “self promotion” prohibition applies to your items on the marketplace. The moderators said it was okay to promote stuff that helps the community (FYI).”
sorry to say but even stuff thats of help for the community which is written or created by yourself is selfpromotion
trust me i know, this has been pointed out by the mods a while back.(so why does the mods say this now?)
What you are saying is that everybody who has an blog can post on threads there post about some item/subject…..
- Envato Staff
- Sold between 100 000 and 250 000 dollars
- Support Staff
- United States
- Author had a Free File of the Month
- Microlancer Beta Tester
- Beta Tester
- Interviewed on the Envato Notes blog
MarkDijkstra said
i think this is selfpromotion![]()
hahahahaa!! That made my night (because I see wpCanyonThemes make this accusation on a daily basis).
JamiGibbs said
MarkDijkstra saidhahahahaa!! That made my night (because I see wpCanyonThemes make this accusation on a daily basis).
i think this is selfpromotion![]()
Ohh cmn today was the first and for now last time i said that. How come is that daily basis?
And @themolitor said that it’s not forbidden if it helps the community, and i believe him.
@ronka – Sure, everything you find there you can use for whatever you like and however you like. 
Guys, he’s not posting the link because he wants everyone to click it and visit his site. He’s posting it because it’s a legitimate solution to this guy’s problem that just happens to be written by him. I’m pretty sure that’s fine.
Thanks @potshot 
@everybody else
I reported my own post, the moderators will figure out what to do with it, don’t want to be the bad guy here.
PHP (change TwitterProfileName)
function parse_feed($feed) {
$stepOne = explode("<content type="\\"html\">", $feed);
$stepTwo = explode("</content>", $stepOne[1]);
$tweet = $stepTwo[0];
$tweet = str_replace("<", "<", $tweet);
$tweet = str_replace(">", ">", $tweet);
return $tweet;
}
function getTweet(){
$feed = "http://search.twitter.com/search.atom?q=from:TwitterProfileName&rpp=1";
$twitterFeed = file_get_contents($feed);
echo parse_feed($twitterFeed);
}
jQuery (change username)
$.getJSON("http://twitter.com/statuses/user_timeline/username.json?callback=?", function(data) {
$("#theIdOfTheElement").html(data[0].text);
});
