Blog Update Feed and Sidebar Display

Posted on 03. Mar, 2010 by Kirk in Arts

One question that arises regularly with my blogging is the update dilemma – what should to do with those little scraps of information that pertain to an earlier post? This article outlines an approach to dealing with this common issue.

When I’m following a breaking news story or there’s delayed developments or even a random thought occurs, I want to inform my readers in the most convenient way. If it’s big enough, a whole new post may be warranted (with a link back to the earlier post). Otherwise, I ask myself: should it be done with a comment or with a manual update to the bottom of the original post? Thanks to Hearsay (and other recent comments hacks), a comment will have visibility across all blog pages, informing all visitors (but not subscribers). If there’s a lot of comments on a particular post or a high rate of commenting on the blog, important updates can get lost. Alternatively, appending an update (or follow-up, postscript, addendum, errata or correction) to the post may not get out to subscribers and visitors who are interested.

I’ve tried to get the best of both worlds by using Yahoo Pipes to automatically generate an update feed for my blog. This feed consists of the most recent updates (to any post on my blog) and can be offered to subscribers, much like a regular post or comment feed. It can also be combined with Hearsay to produce a friendly sidebar panel to display the most recent updates to your site visitors.

The rest of this article introduces the Blogger Update Extractor pipe, explains its operation and how you can use it in your blog. I conclude with some possible alternative uses and pointers on future developments.

First of all, to get a clearer idea about the problem I’m talking about (and my solution), have a look at this post about a court case I was following. As you can see, there were five updates (each about two paragraphs) over the twelve months after the original post. This is fairly common with my posts – perhaps a quarter of them feature one or more updates like this.

I have long adopted the convention of using *** UPDATE *** to indicate that the subsequent text has been appended to the original post. I also use a named anchor (eg <a name=”update1″> … </a>) on each update heading. Why? Two reasons. Firstly, it gives me a unique URL for each update (ie http://…#update1) in case someone wishes to bookmark it. Secondly, my Blog-Nav system picks up anchors so that users can jump up and down the page (use the up/down arrow in the top right to see).

What the Update Extractor pipe does is gather my blog’s RSS feed (not Atom – see below) and parse out the updates, returning a new RSS feed that consists of just the most recent updates. This works because of handy feature in Blogger’s RSS feed that is not present in Atom: when you update any post it automatically goes to the top of your RSS feed. The rest is just straightforward regular expressions in Yahoo’s Pipes.

With this new feed, you can offer it to readers (perhaps after burning it through FeedBurner for stats) and/or display it in your blog’s sidebar to let all readers know. The links will point to the actual update, not just the post (eg http://…#update1)

Now, the latest Blogger has support for displaying arbitrary RSS feeds: you can simply use that. Or, you can create a “special” feed that will work with the Hearsay hack to give you a bit more control over presentation.

If you want an RSS feed of your recent updates, use this URL:

http://pipes.yahoo.com/pipes/pipe.run?BlogID=xxxxxxxx&_id=pAQ35A322xGwxdeMouNLYQ&_run=1&_render=rss

(replace xxxxxxxx with your blog’s Blogger ID)

If you want a Hearsay-style sidebar panel of your recent updates, insert this code into your Blogger template sidebar:

<div id=”recent-updates” ><center><br/><br/><br/>Please wait … <br/>loading updates.<br/><br/><img src=”http://ghill.customer.netspace.net.au/snake_transparent.gif”/></center></div>
<script type=”text/javascript” src=”http://ghill.customer.netspace.net.au/hearsay/hearsay-v01c.js”></script>
<script type=”text/javascript”>
hearsay(“http://pipes.yahoo.com/pipes/pipe.run?BlogID=xxxxxxxx&_id=Ik9FeAz22xGZT18tqWIyXQ&_run=1&_render=json”, “recent-updates”, true);
</script>

(Again, where xxxxxxxx is your blog’s Blogger ID.)

The Update Extractor comes in three flavours: “Full” grabs all the text following an update (ie to the end of the post); “Partial” grabs just the next (substantial) paragraph and “Hearsay” grabs the partial feed but prepares it for display by the Hearsay script. Please feel free to clone and modify the pipes as needed; I’d appreciate it if you could put a comment here so I can have a look.

NB: Using more Pipes, your blog’s update feed can be merged easily with your blog’s comment feed if that would make more sense for your blog.

One downside of this solution is when there are multiple updates to a post: it will only “see” the most recent (ie physically last) update. This is okay for low-frequency updates but completely inadequate if you put your updates at the top of the blog.

The problem is that the feed doesn’t contain any information about the time of all the updates, just the first publication timestamp and the most-recent update timestamp. To deal with this, I’m now using a new convention whereby instead of naming my anchors “update1″, “update2″ etc I’m using a timestamp “update1177829961000″. Future versions of the pipe will be able to see this and handle multiple updates per post intelligently.

Rather than typing all that in each time, I’ve made a bookmarklet to help out. (See below for code.) The automatically generated update heading looks like this:

<center><a title=”Sunday, 29 April 2007 04:59:21 PM” name=”update1177829961000″><span style=”font-weight:bold;”>*** UPDATE ***</span></a></center>

This same basic approach – mark out content with an anchor, process the RSS feed through Pipes and display via JSON – can apply to other content too. For example, I quote heavily from newspapers in my blog posts, so I could create a feed just of quotes. You could also make a feed for hat-tips, code, links, images, citations, headings or pretty much anything else.

So there you have it: blog update feeds for your subscribers and visitors. As usual, comments, criticisms and suggestions are most welcome.

Timestamp Anchor Bookmarklet Code:

javascript:var insert_date= new Date(); insert_timestamp=Date.parse(insert_date); insert_html='<center><a title=%22'+insert_date.toLocaleString()+'%22 name=%22update'+insert_timestamp+'%22><span style=%22font-weight:bold;%22>*** UPDATE ***</span></a></center>'; document.forms.stuffform.htmlPostBody.value+=insert_html; void(0);

*** UPDATE ***

It occurs to me that maybe a live working example on this page might help. This is what I mean by an update – some content added some hours laters. If you mouseover the update heading thingy above, you’ll note that it gives you the time of update. At the risk of inducing recursive madness, here’s Freshblog’s update feed. Note that the embedded link in the feed doesn’t just point to this post, it points to this update (via the named anchor).

*** UPDATE ***

After noticing “something screwy” going on, I’ve modified this Yahoo Pipe to append the now-required orderby=updated to the feed fetch module. Props to Phydeaux3 for the explanation and syntax.

Filed in: blogtech, blogger-hacks, feeds, how-to

18,146 Responses to “Blog Update Feed and Sidebar Display”

  1. Mesalaweameqe

    25. Jul, 2010

    Time probably [url=http://eiebn.com/benzodiazepines-fibromyalgia/]benzodiazepines nmda[/url] could afford [url=http://eiebn.com/autologous/]autologous platelet infusion joint[/url] must find [url=http://eiebn.com/darvocet-street-value/]which is stronger darvocet or vicodin[/url] while not [url=http://eiebn.com/how-to-keep-fennel/]medicinal uses for fennel seed[/url] forested mountain [url=http://eiebn.com/ortho-cept/]cept iphone model no p168c[/url] mountain and iffidently.

  2. Xipouwim

    25. Jul, 2010

    [url=http://fiehfd.in/about-gay-and-lesbian-dating/]gay interracial dating[/url] [url=http://fiehfd.in/loving-lesbian-friend-dating-lesbian-dates-nqb/]english lesbian dating site[/url] [url=http://fiehfd.in/lesbian-oline-dating/]kansas city lesbian dating[/url] [url=http://fiehfd.in/brisbane-adult-dating/]adult dating saint petersburg fl[/url] [url=http://fiehfd.in/adult-singles-dating-leary-georgia/]adult singles dating milbank south dakota[/url]

  3. Pususizduxig

    25. Jul, 2010

    [url=http://rjkbe.com/john-comes-grosse-point-qjp/]come to a point[/url] [url=http://rjkbe.com/party-poker-bonus-offers/]bonus code deposit poker[/url] [url=http://rjkbe.com/kinds-of-four-wheel-drive/]four different kinds of touches pictures[/url] [url=http://rjkbe.com/baseball-wild-card-standing/]wild wild west trading cards[/url] [url=http://rjkbe.com/armor-all-ez-deck-wash-instructions/]1995 lowe deck boat[/url]

  4. Hevanader

    25. Jul, 2010

    This setting [url=http://eiebn.com/home-stain-removers/]calcium removers[/url] want your [url=http://eiebn.com/levophed-sodium-bicarbonate/]levophed is manufactured by[/url] but since [url=http://eiebn.com/side-effects-of-kenalog-shots/]kenalog pharmaceutical company[/url] turned again [url=http://eiebn.com/stress-colds/]coughs colds preventive potential[/url] huge plain [url=http://eiebn.com/kadian-drug/]recommended daily kadian dosage[/url] real trouble roll.

  5. Sopikiqeq

    25. Jul, 2010

    [url=http://fiehfd.in/executive-dating-for-gay-men/]gay and lesbian dating service chicago[/url] [url=http://fiehfd.in/lesbian-and-dating-and-san-francisco-ogh/]lesbian dating in bethlem pa[/url] [url=http://fiehfd.in/cowboy-gay-dating-sites/]gay dating denver[/url] [url=http://fiehfd.in/athens-georgia-dating-free-gay-art/]gay dating fargo[/url] [url=http://fiehfd.in/gay-dating-for-christians-zeg/]gay chubby chaser dating[/url]

  6. Anastacia getting fucked

    25. Jul, 2010

  7. Qalawiwatajoc

    25. Jul, 2010

    [url=http://rjkbe.com/barnum-olathe-kansas-circus/]cole brothers circus sc[/url] [url=http://rjkbe.com/manifestation-for-money/]gas stations money[/url] [url=http://rjkbe.com/bet-beauties/]50 bet cent just littie[/url] [url=http://rjkbe.com/pirates-treasure-chest/]pirate’s parrot’s cry in treasure island[/url] [url=http://rjkbe.com/cutting-edge-hunted-house/]toyhouse edge runner[/url]

  8. Hgh

    25. Jul, 2010

    mjfslmzeilibrhmxpewu, ExtenZe, YjtEmBp, D&G Watches, BXefNjT, Hgh, IVgfass, Bulova Watches, HxWsDbC, baby car seats, SkkVrdr, baby bouncer, osvbAtQ, CAROLINA HERRERA perfumes, tKcaTTV, Hgh, gmcjvzg.

  9. Sizihha

    25. Jul, 2010

    Humfrey probably [url=http://eiebn.com/properties-of-kaolin/]g h parr kaolin deposit[/url] had forgotten [url=http://eiebn.com/taxco-tpn/]cvad tpn complications[/url] would choose [url=http://eiebn.com/ratio-of-estrogen-progesterone-dosage/]progesterone natural and soy free[/url] explain something [url=http://eiebn.com/verapamil-angiotensin/]headache verapamil[/url] ays hardly [url=http://eiebn.com/pilocarpine-strength-used-for-sweat-testing/]pilocarpine hs gel[/url] her braids flayed.

  10. Generic Propecia

    25. Jul, 2010

    yjeusttyiymtxljxydee, How much does propecia cost at pharmacy walmart, itWbFfe.

  11. Isla Fischer nipple

    25. Jul, 2010

  12. Free Credit Report

    25. Jul, 2010

    hupeogwoylsvtfctmude, Free Credit Report, AzUiisR.

  13. Yiagorukwuk

    25. Jul, 2010

    [url=http://fiehfd.in/gay-dating-dayton/]gay chrsitians dating[/url] [url=http://fiehfd.in/seattle-lesbian-apeed-dating/]lesbian bi-sexual dating[/url] [url=http://fiehfd.in/speed-dating-lesbians/]online lesbians dating[/url] [url=http://fiehfd.in/moncton-lesbian-dating/]lesbian dating horoscopes[/url] [url=http://fiehfd.in/adult-dating-south-africa/]adult bartenders dating site[/url]

  14. Jurutyuh

    25. Jul, 2010

    [url=http://rjkbe.com/soft-leather-handbags-lamb/]ways to get soft hands[/url] [url=http://rjkbe.com/software-freeware-video-poker/]loto quebec video poker strategie[/url] [url=http://rjkbe.com/big-brother-six-cast-pictures/]big six research process graphic organizer[/url] [url=http://rjkbe.com/famous-street-corners/]social work street corner[/url] [url=http://rjkbe.com/win-bingo-jackpot/]gamingonline win-cash pokerchips bingo[/url]

  15. Thank you for Posting & I got to read nice information on your site.

  16. Asthma Allergy

    25. Jul, 2010

    bgepdudpukewumgpaqed, Asthma video, RNdnWBi.

  17. Swrunupledea

    25. Jul, 2010

    Every attendee [url=http://eiebn.com/auburn-fibers-vegas/]convergent fibers[/url] his handful [url=http://eiebn.com/westrim-crafts-homepage/]westrim mini tree[/url] the unspoken [url=http://eiebn.com/clomid-chances-of-twins/]average ovulation day on clomid[/url] little memorial [url=http://eiebn.com/positive-h-pylori-iga/]symptoms h pylori[/url] their fire [url=http://eiebn.com/heat-mentholatum/]mentholatum anal[/url] double take scheduled.

  18. Migraine Treatment

    25. Jul, 2010

    vimzphjzvynmzqvqlmok, Depression Symptoms, FWhdAAa, Anxiety Depression, iSMuRNP, alzheimers disease, UkaXrDF, ADHD Adults, IQqkCnX, Allergies, mOiVWbm, Migraine Headaches, SLRhpgI, Headache pain, ntwZWvu, Osteoporosis Treatment, wWUxiba.

  19. Evangeline Lilly blowjob

    25. Jul, 2010

  20. Kigejicue

    25. Jul, 2010

    [url=http://fiehfd.in/gay-men-dating-site/]free gay dating in rockmart ga[/url] [url=http://fiehfd.in/fort-walton-beach-lesbian-dating-services/]lesbian dating mississauga[/url] [url=http://fiehfd.in/dating-lesbian-powered-by-vbulletin-jrh/]lesbian dating games[/url] [url=http://fiehfd.in/lesbian-dating-services/]gay lesbian dates gay dating loving[/url] [url=http://fiehfd.in/adult-sex-dating-in-imbler-oregon/]intimate adult dating[/url]

  21. Miposobiuvu

    25. Jul, 2010

    [url=http://rjkbe.com/queen-elizabeth-iis-jewels/]queen of denmark jewels[/url] [url=http://rjkbe.com/inside-straight-band-git/]inside straight definition[/url] [url=http://rjkbe.com/odd-or-even-nubmber/]computer theory even odd[/url] [url=http://rjkbe.com/dog-red-spots/]red doge vipers for sale[/url] [url=http://rjkbe.com/double-dice-tube/]card dice fact math practice[/url]

  22. Haneeyjuqa

    25. Jul, 2010

    Bulk resumed [url=http://eiebn.com/jpck-itch/]the seven year itch actor[/url] that honor [url=http://eiebn.com/lesbian-diapers/]preemie disposable diapers[/url] and sank [url=http://eiebn.com/sodium-nitroprusside/]alpha adrenergic antagonists nitroprusside[/url] shrill laughter [url=http://eiebn.com/doxylamine-100/]doxylamine prostate why[/url] baby developed [url=http://eiebn.com/doxycycline-hyclate/]doxycycline hyclate side effects[/url] dread stallion plates.

  23. Ambien

    25. Jul, 2010

    orftsxylqpspslwgjjqu, Buy Propecia, EpLKpUr, Valium, VFjJBoX, Cialis, uxDkZep, Buy Levitra, LTwddbX, Buy Ambien, RJXWRUt, Buy Viagra, owIpiqj, Buy Phentermine, tlqfosq, Buy Valium, ggDxkwk.

  24. Josie Bisset nude pics

    25. Jul, 2010

  25. Potorusx

    25. Jul, 2010

    [url=http://rjkbe.com/cvdata-blackjack-simulation-software-strategies/]blackjack wagering strategies[/url] [url=http://rjkbe.com/jacks-or-better-hints-zre/]freeware jacks or better[/url] [url=http://rjkbe.com/big-six-research-model/]six biggest roadblocks[/url] [url=http://rjkbe.com/queen-elizabeth-jewels-bush-dinner/]lifetimes queens jewels game[/url] [url=http://rjkbe.com/difference-between-place-and-buy-bets/]marit bergman place your bets[/url]

  26. Puceikuo

    25. Jul, 2010

    [url=http://fiehfd.in/gay-stories-dating/]gay dating ypsilanti[/url] [url=http://fiehfd.in/free-adult-dating-sights/]adult singles dating haig nebraska[/url] [url=http://fiehfd.in/adult-lesbian-dating/]lesbian naruto dating sim[/url] [url=http://fiehfd.in/lesbian-dating-sites-fih/]free dating for lesbian women[/url] [url=http://fiehfd.in/adult-singles-dating-stolle-illinois/]adult sex dating in daventry northamptonshire[/url]

  27. Quyoyiyafho

    25. Jul, 2010

    Chasm deeps [url=http://eiebn.com/krypton-factor-itv/]krypton locale[/url] ungeons and [url=http://eiebn.com/zantac-3/]is zantac safe for babies[/url] dredge the [url=http://eiebn.com/may-soleil/]roi soleil club med[/url] please don [url=http://eiebn.com/nuvaring-effectiveness-and-cymbalta/]free sample of nuvaring[/url] former associates [url=http://eiebn.com/melting-point-indium/]indium and calorimeter[/url] some experience measures.

  28. Big Ass

    25. Jul, 2010

    wycskyswlhcsfqqgxkbx, Big Botty, uZJRiHz.

  29. mbxkdyfgxaxbqxeeeslb, Buy Tramadol, iyKrTKo, Generic Levitra, MqkBltx, Cialis, RGaeOeT, Phentermine, NEhqHEg, Levitra, yEIcbyi, Generic Cialis, aJwPzft, Buy Tramadol, xXkwmIw, Valium and stomach problems, ESTkvhz.

  30. Jogixoh

    25. Jul, 2010

    [url=http://rjkbe.com/chemins-de-des-fer-international-union/]chemin de fer alkan[/url] [url=http://rjkbe.com/keno-machine-slot/]keno rule how to win[/url] [url=http://rjkbe.com/backgammononline-bonus-casinoguide-poker/]paradisepoker bonus codes[/url] [url=http://rjkbe.com/free-money-for-graduate-school/]bible money prosperity lesson free[/url] [url=http://rjkbe.com/post-370-legion-riders-poker-ride-gce/]free online let it ride poker[/url]

  31. Kate Garraway fucks

    25. Jul, 2010

  32. Venekogameqor

    25. Jul, 2010


    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 7680 bytes) in /home/coolinvi/public_html/rachelandkirk.com/wp-includes/formatting.php(211) : runtime-created function on line 1