Is it possible to combine feed subscribers and display total?

Hi…

On my site I have a number of feeds (one per wordpress category), each one is burned with Feedburner, and has the option to subscribe by email.

Is there a way I can combine the number of subscribers and then display the total on my site?

Similar to the feedburner chicklet (though in plain text).

For Example:

Feed 1 - 20 subscribers
Feed 2 - 80 subscribers
Feed 3 - 45 subscribers
Feed 4 - 200 subscribers
- combine feeds and display total on homepage -

“We have 345 Subscribers”

…that sort of thing?

I have already combined my feeds into one using Yahoo Pipes and then burned that new combined feed too, but im not sure if subscription stats will add up in the way im hoping?

Anyone have any thoughts or ideas on this?

Um, im not sure… the only 2 ways i know how to do it are with the Feedburner chicklet, which is something like this:

<p><a href="http://feeds.feedburner.com/renown/rsscombined"><img src="http://feeds.feedburner.com/~fc/renown/rsscombined?bg=99CCFF&amp;fg=444444&amp;anim=0" height="26" width="88" style="border:0" alt="" /></a></p>

or a tutorial i followed online, which outputs in plain text (the way I’d prefer):

//get cool feedburner count
$whaturl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=feedburner-id";

//Initialize the Curl session
$ch = curl_init();

//Set curl to return the data instead of printing it to the browser.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

//Set the URL
curl_setopt($ch, CURLOPT_URL, $whaturl);

//Execute the fetch
$data = curl_exec($ch);

//Close the connection
curl_close($ch);
$xml = new SimpleXMLElement($data);
$fb = $xml->feed->entry['circulation'];
//end get cool feedburner count

(inserting “echo $fb;” where the number should appear)

…but these are just for single feeds, not for a combined number total, so not sure if they would help. Plus that second one I cant get to work on its own anyway. Nothing comes up (and ive triple checked the code and that my server is running PHP 5)

Well, it’s extremely easy to do with some string manipulation. It depends what the raw data is, i.e. how you get the number of subscribers for each. Is it PHP code? Plain text? An array?

Well, the first one outputs an image, which is useless for this purpose.

For the second, you might have to repeat the process for each feed, store the result in a variable, and then combine them. If it isn’t working then you need to debug this yourself (as I explained in the other thread).