Downtime and Copy to Clipboard Extension for BlogEngine.Net

A couple days ago the guys at BlogEngine.Net put out a patch for their product (big security hole). So I went to the site, downloaded the patch, uploaded it, and went to sleep. I woke up the next morning, opened up the site to post something, and noticed it was down... Turns out I didn't link to the new DLL properly and everything went fubar. So thankfully I'm back up and posting now (although I'm noticing that the location of some of the posts, etc. have changed, still there just different location).

While I was at it, I went ahead and uploaded a couple new extensions. The one that you'll actually notice while reading the entries is now there is a copy to clipboard link for all code postings. This takes the formatted code, unformats it, and copies it to your clipboard. Note that it is not the Copy code to clipboard extension over at Troy Goode's page (although it is based off of it). Instead this extension works with the default syntax highlighter that you get when you download BlogEngine.Net.

ClipboardCodeCopier.zip (2.12 kb)

It also uses some functions from Jesse Foster's lightbox implementation (which I also use on this site). Mainly the adding of the appropriate javascript file. Also, I have no idea where I got the javascript code as I've had that laying around for quite some time. Anyway, in order to use this extension, copy the cs file to your App_Code directory and the directory containing the javascript file to your main directory, and that's it. It will automatically find any code within the normal code brackets and add itself to them. So download, leave feedback, and happy coding.

kick it on DotNetKicks.com   Shout it
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkListEmail

Posted by: James Craig
Posted on: 4/18/2008 at 2:38 PM
Tags: , ,
Categories: ASP.Net | Web Design | BlogEngine.Net
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed