960 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+4 more
jeffeatworld says

Can anyone help me – how do you put those RSS (Feedburner) and Twitter follower count widgets on your site. I’d like to put that onto my side maybe as a Wordpress Plugin?

26 posts
  • Has been part of the Envato Community for over 3 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
themecloud says

Hi Jeff,

I recently looked into this as well, although only have a working Twitter counter so far.

This is what I have so far:

Code in functions.php

// Use this function to retrieve the followers count function my_followers_count($screen_name = 'twitter_name') { $key = 'my_followers_count_' . $screen_name; // Let's see if we have a cached version $followers_count = get_transient($key); if ($followers_count !== false) return $followers_count; else { // If there's no cached version we ask Twitter $response = wp_remote_get("http://api.twitter.com/1/users/show.json?screen_name={$screen_name}"); if (is_wp_error($response)) { // In case Twitter is down we return the last successful count return get_option($key); } else { // If everything's okay, parse the body and json_decode it $json = json_decode(wp_remote_retrieve_body($response)); $count = $json->followers_count; // Store the result in a transient, expires after 1 day // Also store it as the last successful using update_option set_transient($key, $count, 60*60*24); update_option($key, $count); return $count; } } }

Then utilise this to post it in the template file:

<?php echo "I have " . my_followers_count('yourtwittername') . " followers"; ?>

I cannot remember which tutorial i found it from as my browser crashed.

EDIT : Link to tutorial http://kovshenin.com/archives/twitter-followers-count-snippet-for-wordpress/
960 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+4 more
jeffeatworld says

Thanks man. I see themes on here with it on but the one I purchased – as awesome as it is – doesn’t ahve it, I don’t really want to buy a whole new theme just to get that little bit.

3437 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 more
organicbee says
jeffeatworld said
Thanks man. I see themes on here with it on but the one I purchased – as awesome as it is – doesn’t ahve it, I don’t really want to buy a whole new theme just to get that little bit.

search the wordpress.org plugin repo, there are a handful thatll do what you want

960 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+4 more
jeffeatworld says

Cheers – I’m thinking something like this would do it but I’ve no idea how to integrate this – do I just put this into my sidebar.php file or wherever I want to show it?

http://codecanyon.net/item/socialcounter-php-class-social-statistics/282826
960 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+4 more
jeffeatworld says

I found this guys – it worked a charm for me and was super easy.

Guess all I need to do is work on the styling – thats the fun part :-)

http://www.webm.ag/2010/02/05/how-to-display-your-feedburner-count-and-twitter-followers-without-chicklets/

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by