206 posts
  • 6 Years of Membership
  • Affiliate Level 6
  • Author Level 2
  • Collector Level 1
+2 more
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?

2337 posts
  • Affiliate Level 5
  • Author Level 6
  • Collector Level 2
  • Trendsetter
+7 more
CreativeMilk
says

i think this is selfpromotion ;)

1383 posts
  • 5 Years of Membership
  • Affiliate Level 2
  • Collector Level 2
  • Exclusive Author
+1 more
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).”

3535 posts
  • Power Elite Author
  • Author Level 12
  • Trendsetter
  • United States
+13 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.

206 posts
  • 6 Years of Membership
  • Affiliate Level 6
  • Author Level 2
  • Collector Level 1
+2 more
r0nka
says
2337 posts
  • Affiliate Level 5
  • Author Level 6
  • Collector Level 2
  • Trendsetter
+7 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…..

1950 posts Do the Needful
  • Weekly Top Seller
  • Author Level 8
  • Elite Author
  • 5 Years of Membership
+12 more
JamiGibbs
says

i think this is selfpromotion ;)

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

1383 posts
  • 5 Years of Membership
  • Affiliate Level 2
  • Collector Level 2
  • Exclusive Author
+1 more
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
  • 5 Years of Membership
  • Exclusive Author
  • 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.

1383 posts
  • 5 Years of Membership
  • Affiliate Level 2
  • Collector Level 2
  • Exclusive Author
+1 more
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
by