Sunday, August 10, 2008
How to display your RSS subscriber count
You've all seen the little FeedBurner subscriber counters on sites that display a site or more often a blogs number of RSS subscribers. Whilst this is a nice widget to display on your site there isn't much in the way of customizing to display something different.
Plaint text subscriber count
There is a way to display the number of readers you have for your feed by using FeedBurners API. This means you can display your subscriber count within some text, for example as part of a blog post. You could also have a separate message somewhere on you site saying X number of readers subscribe to this site.
You can use the PHP code below. You need to have PHP5 otherwise the SimpleXMLElement command will not work.
//get cool feedburner count
$whaturl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=YourFeedburnerFeedLinkHere";
//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
?>
The next line of PHP needs to be located where you want the subscriber count number to appear. This code needs to occur after the code above for it to work.
I borrowed this code from Mark over at 45n5 so thanks Mark.
This post is from the Newsniche website and should not be reproduced elsewhere. Why not subscribe to the RSS feed and get this information delivered straight to your News reader.
Temporary Server Issues
We are experiencing issues with some of our servers. We are aware of the problem and working on it. This is not affecting the availability of our widget. It is only affecting our website and the bookmarking and sharing functions. We apologize for the inconvenience. We will update this post as soon as the issues [...]
We are experiencing issues with some of our servers. We are aware of the problem and working on it. This is not affecting the availability of our widget. It is only affecting our website and the bookmarking and sharing functions. We apologize for the inconvenience. We will update this post as soon as the issues are resolved.
download tracks music Tarrus Riley online Jack Bruce albums music download Gary Numan CD mp3 download tracks Jack Bruce mp3 buy Silver Apples albums mp3 buy tracks music Gary Numan download Gary Numan albums music buy mp3 Tarrus Riley tracks download Kravits albums mp3 buy mp3 CD Madonna
online mp3 albums Jack Bruce online albums music Gary Numan download tracks Cat Stevens music buy mp3 CD Gary Numan online CD music Tarrus Riley
Update: Problem solved. Both the website and the bookmarking/sharing functions are working again. Luckily, the downtime was short and the effects minimal. Thank you for your patience.
- the AddThis team
Redefining the Widget
Last year at Widgets Live, the announcement of the SpringWidgets platform redefined what a widget could be. At the time of our launch there were three categories of widgets: desktop widgets, web widgets and a special subsection of web widgets that would work on social networking profiles.
We changed all that by inventing a widget platform that allowed for the first time, the ability to use a single, updatable and configurable widget file to reach all of these destinations. We took it further by incorporating in the ability to “pop” any SpringWidget you find on the web onto your desktop with just one click.
Since our release, there have been a few companies that have announced a similar product offering - YourMinis and Netvibes are examples we feel are well done.
I'm going to give you a little sneak peak behind the curtain where we are quietly working on redefining the widget once again, and perhaps in the process spur another round of inspiration.
For the most part, online widgets have been exactly what the limited definition has made them out to be …
A web widget is a portable chunk of code that can be installed and executed within any separate HTML-based web page by an end user without requiring additional compilation.
Thanks Wikipedia
Reading this, I’m thinking about the widget landscape and in my head I’m starting to challenge the entire box that we have collectively put widgets into, trying to look past the simple definition and look at the transformative nature of what a portable chunk of code can do.
Is the widget just a visitor on the web page or can it be much more and control and interact with the web page it’s on? If widgets are like parasites, can a parasite define the host?
Can a widget be a portable “experience?”
Envision if you will a Widget that no longer sends the user off to another site to personalize itself. Imagine a widget that is not content to stay within the confines of it’s own little box, but rather can interact with the page it lives on. The “Transformative Widget” would take over the page it’s on; integrating it's content within that page and transforming it based on a click.
If the Widget is not just a chunk of code, but rather a portable experience, imagine the infinite ways we can expand the brand experience within the social network itself. Moving code and embedding Widgets can create a better way to immerse the user in an extreme brand experience. The widget then becomes an ad that is user embedded, user selected and more powerfully engaging and interactive than any traditional advertisement that is available - and just as performance oriented.
If a user allows the widget to brand the entire page, is that a "Widgetview", an "Ad Impression", or a "Pageview"?
This is only one of the many transformative widgets that we are engaged in and only represents a small amount of our R&D efforts. Over the weeks and months to come, we'll be rolling out some truly fantastic products that will not only transform the widget, but transform SpringWidgets as well.
We would love to have you on board as we make these transformations, so please feel free to download our API and put your own thoughts to work in redefining what a widget can be.
Formula1.com 0.1
![]() | About Formula1.com Top F1 News from the Official Formula 1 Website site! |