Comment section improved

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

Recently (a while ago to be exact), I found a somewhat full implementation of [Markdown]0 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 🙂1: http://www.nargalzius.com/blog/archives/2006/07/2006_07_13_1001.php “read post”

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 them 1 Those pricks! 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.

Notes

Notes
1 Those pricks!

Have a say

This site uses Akismet to reduce spam. Learn how your comment data is processed.