Knipper John's C#kes
Coding with C#? Piece of cake!

Jul 28 2007

BlogEngine extension adding smilies to posts

Categories: BlogEngine | C# Jonx @ 01:07

Let's not start by talking about myself even if this is my first post on that blog. The blog engine I will use from now on is the fresh and excellent DotNetBlogEngine.

Wow! Wow! What a name. I will take on myself to call it DNBlogEngine.NET in my future posts. Lazy me. Ok, a new blog engine is very exciting especially because this one despite its early version numbers does include many features still missing in older blog engines... No, no, I won't give you a list... If it's true or not, I don't care. Let's just pretend it's true.

The project just started but it already has millions of downloads and the developers are several hundreds...

They must be that many, right? Because it's moving along so fast that I won't believe you if you tell me they are only a few guys working on their spare time?

Yes? For real? No kidding? Who? Mads? And...? Al? OK, why not.

Anyway, you will have to follow the project very closely as you will all have to migrate your existing blogs to that new one. It's the only decent choice you have.

Yep, that's what I call a choice. No choice is some kind of choice anyway.

Now, to the point. For the people that follow, until now the title of that post does not match it's content. Right, but you have to understand me as I wanted to introduce myself without introducing me. I agree with you, I failed. Hum, maybe I succeeded, you decide.

The point of that post was just to introduce a very small extension for the DNBlogEngine.NET... What does it do? While typing some smilies using the toolbar included in your editor you might be wondering why in hell you cannot use the same smilies in the comments? Smilies like this one Surprised and this one Tongue out, in fact none can be used. Why O why? Yell O why? Cry!

It's on purpose. Mads had secret special bet with Al. So secret that even him does know nothing about it...

The bet was that the first guy not part of the team writing an extension would win a Million dollar (baby) Money mouth. Wow minute oncle Tom! That would be me? YES! Cool

Holy cow! (Sorry, no smiley for this one) ONE MILLION DOLLAR! You guys are *SO* coooool! The extension is attached and works starting with change set number 3820 and up.

UP until someone breaks the API, and that day the world will be doomed. Or maybe not.

Anyway, get the attachment, extract the file to your BlogEngine.NET\App_Code\Extensions directory and voila! you are getting nice smilies in your comments.

Of course, I will add some more features like a mini toolbar over the comment field and things like that as soon as the extension engine is telling me how to achieve it.

It's only a very basic peace of code anyway.

You may take a look at it (only one, not two or it will destroy itself) and read this Make your ASP.NET application extendable. Also taking a look at the documentation, the source code might help. Finally, New extension model in BlogEngine.NET will finish to convince you.

If you need an idea for a new extension, just take a look at the whish list and maybe also at the challengers. Euh, maybe this is us? Hum, not sure anymore.

Have fun with it. If it burns your house or skin your cat, just tell yourself that it was the intended feature.

 

Smilies.rar (1.29 kb)

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,
Actions: E-mail | Permalink | Comments (7) | Comment RSSRSS comment feed