ThemeForest

Getting twitter latest twit

201 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Israel
  • Referred between 500 and 999 users
  • Sold between 100 and 1 000 dollars
r0nka says

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?

2314 posts
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+1 more
CreativeMilk says

i think this is selfpromotion ;)

1382 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Serbia
wpCanyonThemes says

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).”

2900 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Community Moderator
  • 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
+4 more
sevenspark moderator says

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.

201 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Israel
  • Referred between 500 and 999 users
  • Sold between 100 and 1 000 dollars
r0nka says
2314 posts
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+1 more
CreativeMilk says


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…..

1920 posts Do the Needful
  • Envato Staff
  • Elite Author
  • 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
+7 more
JamiGibbs staff says

i think this is selfpromotion ;)

hahahahaa!! That made my night (because I see wpCanyonThemes make this accusation on a daily basis).

1382 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Serbia
wpCanyonThemes says


i think this is selfpromotion ;)
hahahahaa!! That made my night (because I see wpCanyonThemes make this accusation on a daily basis).

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. :)

60 posts
  • Exclusive Author
  • Has been a member for 2-3 years
  • United States
Potshot says

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.

1382 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 10 and 49 users
  • Serbia
wpCanyonThemes says

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("&lt;", "<", $tweet);
    $tweet = str_replace("&gt;", ">", $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);
});

by
by
by
by
by