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

Jul 19 2007

BlogEngine extension adding smilies to posts

Categories: BlogEngine | C# Jonx @ 04: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 (20) | Comment RSSRSS comment feed


Related posts

Comments

July 19. 2007 03:45

In case you are using firefox, save the file, then rename it to .rar in case the extension is different.

knipjo

July 19. 2007 16:53

Let's test the smilies:

cool Cool: ( H)
cry Cry: : '(
embarrased Embarassed: : $
foot Foot: : |
frown Frown: : (
innocent Innocent: ( A)
kiss Kiss: ( K)
laughing Laughing: : D
money Money: ( $)
sealed Sealed: : -#
smile Smile: : )
surprised Surprised: : -O
tong Tong: : P
undecided Undecided: * -)
wink Wink: ; )
yell Yell: 8 o|
To be able to give you the list I had to add a space between the first and second caracter of the smily.

Jonx

October 1. 2007 07:55

Look cool, man.
I'm going to try it soon!

Miron

October 2. 2007 10:43

Thanks, but know that it is included in the official distribution (I think).

Jonx

March 17. 2008 03:46

I'll get a error:

Compiler Error Message: CS0246: The type or namespace name 'Extension' could not be found (are you missing a using directive or an assembly reference?)

Source Error:



Line 22: /// Changes smilies from text to image inside a comment post.
Line 23: /// </summary>
Line 24: [Extension("Changes smilies from text to image inside a comment post.", "0.0.0.1", "www.happytocode.com")]
Line 25: public class Smilies
Line 26: {

Tcip

March 18. 2008 03:58

Hello,
What version of blogengine are you using? Because that extension has been added to the official source code. Meaning it should work by default (it should be there already)... Let me know in case you need more help Smile

Jonx

April 27. 2008 04:29

Hi,
nice idea - I´ll give it a try

Andre

June 3. 2008 10:29

gracias por su valiosa información

Daniel

August 18. 2008 19:45

What is Blogengine. NET? It is for the first time that I open it, I try, can you gave me an idea about it. thank you.

Busby Seo Challenge

August 27. 2008 04:07

with BlogEngine extension adding smilies to posts make me million dollar? wow..

options trading

August 30. 2008 16:55

Meaning it should work by default (it should be there already, thanks

kabonfootprint

September 2. 2008 19:12

really good article,thx

chinese tea

September 3. 2008 20:05

Ohhhm, thank you, man Smile

Adding smilies to posts is my old back pain. Thank you for this advice.

Viagra generico

September 6. 2008 15:51

Thank you for good extension. It's very usefull.

Comprar Sildenafil

September 13. 2008 14:43

nice smile when doing reading a blog like this... and blog with... thanks

Fanimation

September 15. 2008 02:53

Adding smilies to posts is my old back pain. Thank you for this advice. great

Fanimation Fans

September 18. 2008 00:13

smilies to posts is my old back pain. Thank you for this advice.

furnace filters

September 20. 2008 06:00

hi jonx,how to implement the C# file in our application.please help me ?

Desigan

September 20. 2008 21:06

hi jonx,how to implement the C# file in our application.please help me ?

Desigan

September 21. 2008 20:59

What a nice tech about smilies to posts is my old back pain. Thank you for this advice.

laptop backpacks

Add comment


 

  Country flag





Live preview

October 5. 2008 21:04