Show Commenter’s Latest Post: BlogEngine.NET Extension

July 23, 2008 | Uncategorized | 9 Comments

Background

Over the past few weeks, I’ve seen a few WordPress blogs that pull in the last post from a commenter’s website. I also saw a post from Mads about how to find semantic links on a webpage.

So, I mashed his code together with some code from the BlogRoll control and created an extension that goes out and looks for RSS feeds at the commenter’s website and then pulls in the latest post. [side note: I wish I could say, “a half hour later … “, but it actually took me a while to get it to work…]

It all happens asynchronously, so if you comment on this post, it’ll take a few seconds for it to show up. Then it will keep checking every so often for new posts.

Example

Last year, I posted a JavaScript color picker and the post now has over 100 comments. Here’s what it looks like with the extension running:

 Comments with Recent Posts

Download & Installation

  • Download Commenter’s Latest Post Extension
  • The last post is wrapped in the following class so you can style it:
    <span class="commenterslastpost"></span>
  • Sometimes the ResolveLinks extension interferes with this, so you might want to add the following code around the foreach loop:
    if (e.Body.IndexOf("href=\"" + match.Value + "\"") == -1) { ... }

Add a comment to this post to see it in action…

9 responses to “Show Commenter’s Latest Post: BlogEngine.NET Extension”

  1. Al Nyveldt says:

    Sounds cool. I’ve never seen a blog do that before, but it is a neat idea.

  2. Really cool idea! Keep it up.
    Best regards

  3. Craig says:

    Nice idea. I really want this extension

  4. Craig says:

    Opps forgot to add my blog to test it :)

    Second time lucky.

  5. Pankaj says:

    Good one…thanks for sharing..i will integrate in my blog too..

  6. tim says:

    Wow this is a really cool idea. I love it. Good work.

  7. tim says:

    Think I’m gonna start using this soon. By the way Jon, can you please add a tag cloud to your blog. Would really help navigation.

  8. cv2impress says:

    its cool idea. i want its extension.

  9. One must be willing to search and to find that kind of informational resource
    to learn from. Let us move on and dispel the biggest myths associated with hypnosis.
    There is conversational hypnosis, stage hypnosis, instant hypnosis, self
    hypnotism, conversational hypnosis, street
    hypnosis, eriksson hypnosis and so on.

Leave a Reply

Hi, I'm John Dyer. In my day job, I build websites and create online seminary software for a seminary in Dallas. I also like to release open source tools including a pretty popular HTML5 video player and build tools that help people find best bible commentaries and do bible study. And just for fun, I also wrote a book on the theology of technology and media.

Fork me on GitHub

Social Widgets powered by AB-WebLog.com.