Scott Hanselman

Adding FeedBurner FeedFlare to DasBlog

October 08, 2006 Comment on this post [9] Posted in DasBlog
Sponsored By


I've been loving FeedBurner for a while now. They serve my feed, keep awesome stats and provide piles of reports.

Aside: One of the nice things about DasBlog's built-in integration with FeedBurner is that everyone who is currently subscribed to your existing DasBlog RSS/Atom Feeds will be 301 Permanently Redirected to your new FeedBurner feed. HTTP 301s are Permanent while 302's are temporary. Aggregrators worth their salt know to update their local records when a feed issues a 301. DasBlog will automatically get everyone over to your new feed.
Opinion: It's REALLY poor form to visit a blog and see a post that says "This blog has moved" when there are protocols to express this fact. It's even worse to see posts written in prose with pleadings that folks "please update your aggregator to point to this other feed." Use 301s when they make sense.

FeedBurner has a feature called FeedFlare that lets you add interactivity to each post.

If you're on DasBlog 1.9 and you're using FeedBurner you can add this macro to your itemtemplate.blogtemplate file:

<script src="<%PermalinkUrlRaw%>" type="text/javascript"></script>

This will inject a little javascript into each post with little features that you can control from your FeedBurner configuration.

UPDATE: In the daily builds )(after today) of DasBlog, the <%FeedFlare()%> macro now corresponds correctly to the updated FeedBurner URLs. Thanks to Tomas!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service
October 08, 2006 12:37
Ahhh yep. The old FeedFlare macro that I wrote and you included in 1.9 stopped working about a week after the release once feedburner apparently changed (silently) how the urls should've been generated. I'm assuming you'll be changing the built-in macro to correct this? (I already have a version of it that works, btw)
October 09, 2006 3:53
Here is the one I wrote for mine.

public virtual Control FeedBurnerFlareSingle(string FeedburnerUsername)
if (!requestPage.IsAggregatedView)
string contents = "";
if (FeedburnerUsername != null)
contents += "<script src=\"";
contents += FeedburnerUsername;
contents += "?i=";
contents += Utils.GetPermaLinkUrl(this.currentItem);
contents += "\" type=\"text/javascript\" charset=\"utf-8\"></script>";
contents = "-- no feedburner user specified --";
return new LiteralControl(contents);
return new LiteralControl("");
October 09, 2006 15:01
DOH! I totally forgot about the 301! I moved my feed to feed burner recently and should have set that! Thanks for the aside...
October 09, 2006 18:11
Hi Scott,
i added the macro but didnt notice to any change,maybe i forgot somthing?
October 10, 2006 0:35
I wonder if using a 301 instead of a 302 return is really such a good idea. What if you at some point decide you don't like Feedburner anymore, I doubt they'll do you the favor to redirecting your feed to a new location :-}...

I started with Feedburner a couple of weeks ago after seeing something you wrote actually and I've also been very impressed. Not to mention that it takes a load off the server for serving maybe the busiest part of the site.
October 10, 2006 22:11
Hey Rick -

We actually *will* do exactly that if you choose to leave FeedBurner. Details are here. Glad you're giving us a chance, let us know what other questions you have!


VP, Publisher Services
November 03, 2006 19:36
Hello Scott,
I was wondering how I can enable paging in Dasblog like you have on this blog, is it a custom macro, I could not find anything in the built in macros.
November 03, 2006 20:12
I added it to a daily build. Google for "dasBlog daily build" and you can get the latest stuff.
November 04, 2006 4:17
Thanks Scott, it works good.
I also was able to enable the file browser for images and flash in the FCKEditor Adapter to work with Dasblog by changing some configuration settings, here it is in case people need it:

In Web config, add:
<add key="FCKeditor:UserFilesPath" value="/Content/" />
to set the default user path of to /Content

In FCKEditor/fckconfig.js change the foolowing settings so that FCKEditor uses /Content/Binary to browse and save images and flash files:
_FileBrowserLanguage = 'aspx' ;

FCKConfig.ImageBrowser = true ;
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Binary&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension;

FCKConfig.FlashBrowser = true ;
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Binary&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ;

In /SiteConfig/FCKeditorConfig.js change the foolowing setting to add the add image and add flash buttons:
FCKConfig.ToolbarSets["Default"] = [
] ;

Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.