As you can see on the top right corner of Technically Personal (above the header), I have something like “767 Subscribers and Counting!!” That number is actually the coming from Feedburner. The usual Feedburner chicklet counters are boring and updated.

techpp-feedburner-text-counter

Few days back, I read an article on ThemeTation about How to implement Feedburner Text Counter without using any plugin whatsoever. It’s a simple and straight-forward tutorial which tweaks the Feedburner API to get the counter as a text and it worked as expected.


But then, over the next couple of days I observed that this converted text counter was showing 0 and this happened almost at the same time everyday. That is when i realized that the Feedburner counter gets reset to 0 before it gets updated with the latest value everyday. This bug is not restricted to the Text counter of Feedburner. Even the Feedburner chicklets face this issue. Normally this issue gets sorted out within a couple of hours but some times it persists and it would be embarrassing to show 0 subscriber count. The issue gets worsened if you use a caching plugin which caches the pages showing 0 subscriber count.

pro-blog-design-feedburner-count

Have a look at the screenshot example above. Ironically, the post title of Pro Blog Design (which is one of my most favorite blogs) says “Get RSS Subscriber Count in Plain Text” and it shows 0 Subscribers (and the actual count is in excess of 4600!!)

How to Fix this 0 Subscribers Bug of Feedburner?

Assuming that you have followed ThemeTation’s approach (or something similar) to convert Feedburner Counter to Text, go to your Header.php or Sidebar.php (wherever you are displaying the Feedburner text counter) and look for the code which says

$fb = $xml->feed->entry['circulation'];

Just below this, add a line of code

$fc="XXX";

Replace XXX with a number which is realistically similar to your actual subscriber count. And again look for the code which says

echo $fb

and, replace that part with this

if ($fb=="0")
echo $fc;
else
echo $fb;

Needless to mention that this will be within the php tags.

That is it! Whenever the feed count value comes as 0, it will be replaced with the number you have defined. No more embarrassing moments!

What you think of this trick? Do you have a better and simpler fix? Let me know!

Subscribe via RSS or Email:
Raju is the founder-editor of Technically Personal. A proud geek and an Internet freak, who is also a social networking enthusiast. You can follow him on Facebook and on Twitter. Mail Raju PP.
  • http://learnenglishfromhome.blogspot.com/ David leo

    The problem is when you consider that your “Replace XXX with a number which is realistically similar to your actual subscriber count.” is much higher than it really is! ;)

    David leos last blog post..Bab.la – online dictionary

    • http://techpp.com Raju

      @David,
      That is true :) But if the intention is to cheat then one can directly “hardcode” the number, no need to code so much to get it from Feedburner ;)
      And there is a way to cross check if the numbers are genuine or not.
      http://feedproxy.google.com/~fc/TechnicallyPersonal should give the actual count. You can replace TechnicallyPersonal with any other blog’s feed name.

  • Pingback: Daily Links | AndySowards.com :: Professional Web Design, Development, Programming, Hacks, Downloads, Math and being a Web 2.0 Hipster?

  • http://computersservicing.blogspot.com/2008/12/how-to-find-subscriber-count-of-other.html venkat

    Raju what u said is right ,I recently visited a blog that is showing 24000 subscribers ,I doubted that and checked adding ~fc to feed address url, I found that blog has only 600 subscribers,that’s really cheating readers.

    venkats last blog post..The Funny Flash Mind Reader Game

  • http://ajaydsouza.com Ajay

    A better fix is to daily save the feedcount into the options table or into a cache file.

    Before reading the new count, you should dump the old count in your $fc.

    Ajays last blog post..Better Search v1.1 released

    • http://techpp.com Raju

      @Ajay,
      Welcome to my blog. i am glad to see your comment. I understand why you prefer it to be cached and stored in the options table, but what I don’t understand is – if reading the new count happens only once a day? Only then your approach would work, if not it might cache and store even 0 or N/A . Hope you got my point.

  • http://ajaydsouza.com Ajay

    The Feedburner count is updated only once a day. Hence, you should bother pulling the API only once a day, or you can run it for once every twelve hours. This is rather simple if you use the inbuilt WP-Cron or if you use the cache.

    Using WP-Cron ensures that you don’t need to use a cache and the count is updated every 12/24 hours and saved in the db.

    Another option is like I mentioned above.

    Ajays last blog post..Better Search v1.1 released

  • http://ajaydsouza.com Ajay

    Ohh, and thanks for the welcome. Have been reading the blog for a long long time now. Just thought I could comment on this one :)

    Ajays last blog post..Better Search v1.1 released

  • http://pixobyte.com Nicholas | Pixobyte.com

    Hmmn, I tried this hack in blog, but had this same problem of 0 count, Thanks for the solution :-) I will implement this soon in my blog..

  • http://symbiansmartphone.com Asif Istiak

    Great post man! I will try it out too. Wish I could solve this problem with my chicklet coz I don’t have a better place for showing as text.

    Asif Istiaks last blog post..10 Live Player | Stream Mobile Media

  • Pingback: When Will you Fix FeedBurner Mr. Google? - feedburner, feedburner fix, feedburner issue, feedburner subscriber count issue, fix feedburner, google, subscriber count issue - Technically Personal!

  • http://wholenewmom.com Adrienne

    Hi. I read your post and am wondering if you could help with my problem. I have a very new website and yet have several big problems w/ Feedburner.

    I know that I have about 3 people (I know this sounds ridiculous, but I did just start my blog and I haven’t told barely anyone about it b/c I wanted to make sure that I had things working first and it is still very much in the bare bones stage) subscribed to my site via email (self, husband and a friend or two) but feedburner shows no subscribers. I think that I added feedsmith successfully yesterday and thought that was the issue, but today it still shows no subscribers.

    Also if I check feedburner / ‘publicize’, then ‘Email Subscriptions’, then ‘Subscription Management’.it shows no subscibers and though I selected the option to be notified when someone cancels his subscription, I cancelled mine the other day and got no notification. Granted, I signed up right again to see if the subscription count was working but I assume that I should have gotten a notification.

    Do you have any ideas what might be happening?

    • http://techpp.com Raju

      it’s highly unlikely that the problem is on Feedburner’s side. Are you using a a CMS like WordPress? Do you have an option to enter Feedburner’s URI somewhere? If so, have you entered the URI correctly?
      From what i understand, even inside your Feedburner account, it is saying 0 subscribers. If nothing works, you can try to delete and recreate the Feedburner account.

  • http://www.vast9.com Garish Wasil

    Thanks a lot buddy. I was having the same problem (with my thesis skin) and you really helped me.

Custom Search
Copyright 2012 Technically Personal!