GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   wp plugin developers (https://gfy.com/showthread.php?t=1018399)

v4 media 04-14-2011 08:19 AM

wp plugin developers
 
What does a pretty simple plugin cost, I've had an idea and can't find any plugins that do what I want.

Basically collating numerous pieces of info likes/tweets/comments and displaying posts according to the sum of the result. Like a ranking plugin.

Brujah 04-14-2011 08:25 AM

Like a popular posts widget that ranks according to social networking feedback?

fris 04-14-2011 08:39 AM

would need a detail list of what you want in it , then a proper quote can be given

v4 media 04-14-2011 08:40 AM

yes but so the whole site is displayed that way like a chart top 50 magic join links that sort of thing.

v4 media 04-14-2011 09:01 AM

Quote:

Originally Posted by fris (Post 18056548)
would need a detail list of what you want in it , then a proper quote can be given

Because of social media getting bumped up in the seo. Just an Idea I had.

say a post had 50 different social media likes/retweets/diggs etc plus logged in comments, say a total of 60.
that post would appear above a post with 55 in total but below a post with 75.

exactly like a top 40 chart. posts can move up and down accordingly.

Could be done with just social media if the collation of socialmedia/comments adds a lot to the programming.

fris 04-14-2011 09:03 AM

you could just sort them by social votes, not really a plugin is needed, more of a custom query order by votes

v4 media 04-14-2011 09:09 AM

Quote:

Originally Posted by fris (Post 18056623)
you could just sort them by social votes, not really a plugin is needed, more of a custom query order by votes

Yep, time to get the wp for dummies book out. thanks will have a dig around.

Brujah 04-14-2011 09:20 AM

Quote:

Originally Posted by fris (Post 18056623)
you could just sort them by social votes, not really a plugin is needed, more of a custom query order by votes

How do you get the social metrics without a plugin? Facebook Likes, Twitter Mentions, etc...

v4 media 04-14-2011 09:30 AM

Quote:

Originally Posted by Brujah (Post 18056679)
How do you get the social metrics without a plugin? Facebook Likes, Twitter Mentions, etc...

Pulling the info off something like this http://secure.sharethis.com/publishers/new-share-widget ?

So a custom query off an existing plugin?

Brujah 04-14-2011 09:34 AM

Quote:

Originally Posted by v4 media (Post 18056702)
Pulling the info off something like this http://secure.sharethis.com/publishers/new-share-widget ?

So a custom query off an existing plugin?

Yes, if you already have the info from another plugin then you can query it.

v4 media 04-14-2011 12:06 PM

Quote:

Originally Posted by Brujah (Post 18056714)
Yes, if you already have the info from another plugin then you can query it.

Yep I've 1/2 solved it. The easy 1/2 though, the hard 1/2 is still to come :1orglaugh

fris 04-14-2011 12:09 PM

Quote:

Originally Posted by Brujah (Post 18056679)
How do you get the social metrics without a plugin? Facebook Likes, Twitter Mentions, etc...

i would do it via their api, maybe i will do something like this in the next couple weeks. good experiment.

i would need to know all the social systems you want other than twitter and facebook.

v4 media 04-14-2011 12:30 PM

Quite a nice tutorial giving you a good start.
http://tutorialzine.com/2010/05/show...ts-jquery-yql/

or using the Addthis api http://www.addthis.com/developers to get all the social media in, then just add in comments.
Sort by custom query, add code to the loop and functions to get the chart effect in the posts 1-50 countdown sort of thing.


People like to vote on stuff and if you're getting se exposure on it lovely.

Brujah 04-14-2011 02:51 PM

Facebook and Twitter have really easy APIs to use. Facebook's is significantly easier to work with. Then a custom query and you're all set. I wasn't aware AddThis does too, that could be useful. Thanks for that one. I knew about YQL, that's not a bad option either.

fris 04-16-2011 10:51 PM

Quote:

Originally Posted by Brujah (Post 18056679)
How do you get the social metrics without a plugin? Facebook Likes, Twitter Mentions, etc...

here is something to get you started.

Code:

<?php

  // retweets for url
 
  function tweetCount($url)
  {
      $content = file_get_contents("http://api.tweetmeme.com/url_info?url=" . $url);
      $element = new SimpleXmlElement($content);
      $retweets = $element->story->url_count;
      if ($retweets) {
          return $retweets;
      } else {
          return 0;
      }
  }
 
  // facebook likes for url
 
  function likeCount($url)
  {
      $data = json_decode(file_get_contents("http://api.facebook.com/method/fql.query?query=select%20like_count%20from%20link_stat%20where%20url='$url'&format=json"));
      if ($data) {
          return $data[0]->like_count;
      } else {
          return 0;
      }
  }
 
  // declicious posts for url
 
  function deliciousCount($url)
  {
      $data = json_decode(file_get_contents("http://feeds.delicious.com/v2/json/urlinfo/data?url=$url"));
      if ($data) {
          return $data[0]->total_posts;
      } else {
          return 0;
      }
  }
 
  // digg count for url
 
  function diggCount($url)
  {
      $data = json_decode(file_get_contents("http://services.digg.com/1.0/endpoint?method=story.getAll&link=$url&type=json"));
      if ($data) {
          return $data->stories[0]->diggs;
      } else {
          return 0;
      }
  }
 
  // reddit score for url
 
  function redditCount($url)
  {
      $data = json_decode(file_get_contents("http://www.reddit.com/api/info.json?url=$url"));
      if ($data) {
          return $data->data->children[0]->data->score;
      } else {
          return 0;
      }
  }

  // stumbles for url

  function stumbleCount($url)
  {
      $data = json_decode(file_get_contents("http://www.stumbleupon.com/services/1.01/badge.getinfo?url=$url"));
      if ($data) {
          return $data->result->views;
      } else {
          return 0;
      }
  }

  // bit.ly clicks for url
 
  function bitlyCount($url,$login,$apikey)
  {
      $data = json_decode(file_get_contents("http://api.bit.ly/stats?version=3&shortUrl=$url&login=$login&apiKey=$apikey&format=json", true));
      if ($data) {
          return $data->results->clicks;
      } else {
          return 0;
      }
  }

?>


Brujah 04-17-2011 08:53 AM

Quote:

Originally Posted by fris (Post 18063744)
here is something to get you started.

I see what you mean. Functions to throw into your functions.php file. I still consider that plugin-ish :)


All times are GMT -7. The time now is 05:39 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123