nBLOG

2007.03.06 11:49 PM
254 words

TOPIC(S)
Comment section improved
2007.03.06 11:49 PM

As you all know, my comment form has always had a live preview feature that had limited support for Markdown syntax – which I discussed in a past entry

Recently (a while ago to be exact), I found a somewhat full implementation of Markdown via JavaScript here. Naturally I decided to integrate it into the live preview function. So I spent the whole practice session of our choir hacking away at the code to fit my needs. Here’s what came out of it:

Feel free to try commenting yourself :)

On another note, I just realized now that my Lightboxing for Flickr images was messed up since entries from January! Apparently, Flickr did some jiggery-pokery on their image URLs as well and appended a “farm1″ to most of them1 so when an image URL would normally start with a http://static.flickr.com/... it was now http://farm1.static.flickr.com/...

My Lightbox hack uses regex replacement which looks for the static.flickr.com url to convert it to a proper redirect to the images’ actual info pages (which is http://www.flickr.com/photos/nargalzius/XXXXXXXX...). Naturally, most of the newer images I posted which had farm1 didn’t match – hence weren’t processed by the Lightbox – eep!

Fortunately, taking out the farm1 pefix still works and doesn’t yield a broken link – so it just had to get a little tedious for me to change every single <img src="http://farm1..."> address I could find. Hopefully it stays that way – else I’ll be in trouble.

    1. Those pricks!

No Responses
Probably Related
211 words
I added two things on the comment form: Live comment preview – shows immediate feedback on how your comment would look like after posting (which…
423 words
My previous post was commented by the Ecto developer himself… and as such, I thought it only be fair to immediately reevaluate the said software……
1357 words
I apologize to the Ecto-supporters out there, but quite frankly, that piece of software you love, can be quite intrusive at times. Since I heard…
474 words
A number of things have been happening lately, and only now do I get to post them. I hope i’m able to rememeber them… Quick…
174 words
So our choir went on an out of town performance / outing last weekend. Was probably the only time I got to use my brand…
Same day, different year
173 words
I’ve been tracking my feed activity through Mint, via a “pepper”1 that can track FeedBurner stats… so I did some .htaccess jiggery-pokery2 to make the URL redirect…
296 words
During a wedding, friend/choir member had mentioned The Philippine Daily Inquirer publishing an article with dubious facts. I checked out the website, but didn’t find…
1599 words
For the past few weeks, I’ve been collecting albums… must’ve acquired about 60+ as of now. They range from all sorts of genre (e.g. Cafe…