Writing extensions for BlogEngine 1.4 (part 4)

26. August 2008 22:56 by rtur.net in Tutorials  //  Tags: , ,   //   Comments (1)
ex_5-4

Default admin interface for extensions in BlogEngine works fine in most cases and very easy to use. But sometimes you just got to get creative, right? That means, you want no limits. Obviously, some of simplicity will be lost – but still it is surprisingly easy to get along using plug-and-play BlogEngine architecture. Lets say, we ran into nice DHTML color picker and want to use it in the admin page for our extension. We want admin page look like this picture – it should allow us to enter a word, size and color. This values will be saved in the extension manager, so we don’t have to deal with databases or file system – usual BE stuff. And when you click “Color picker” button, nice color picker will show up and you can visually select value for a color. More...

Writing extensions for BlogEngine 1.4 (part 3)

27. July 2008 15:55 by rtur.net in Tutorials  //  Tags: , ,   //   Comments (12)

Lets say we want to write an extension to track user activities on our site. Blogger should be able to set basic settings, for example choose to track  posts, pages or both. Then every time user requests post or page, we increment corresponding counter by one. Look at the picture above. Its clear that we need two sets of settings: one for post/page options and another to list user activity.

ext14-3-1

More...

Writing extensions for BlogEngine 1.4 (part 2)

8. July 2008 22:17 by rtur.net in Tutorials  //  Tags: , ,   //   Comments (8)

In the first part, we wrote simple extension that changes case in the post to lower. Let’s say, we want user to decide show post in the lower or upper case. For this, we need to be able to maintain variable and let blogger change it’s value through admin interface. Normally, you would need to add a data access functionality for extension to handle this kind of operation, create admin form etc. BlogEngine uses Extension Manager to help make job a lot easier. Take a look at the code below. In the constructor, we subscribe to post serving event and then call InitSettings. There we create ExtensionSettings object, which can hold singe value (scalar) or/and table of values. In our case, we want it to hold single scalar value, so we set settings to scalar. We call our variable “Case” and initialize it with default value of “upper”, then call ExtensionManager.InitSettings and pass name of extension and settings object. More...

Writing extensions for BlogEngine 1.4 (part 1)

4. July 2008 15:22 by rtur.net in Tutorials  //  Tags: , ,   //   Comments (4)

This is the first part in the series of tutorials about writing extensions for the BlogEngine 1.4. I’ll start with simple “hello world” example and then gradually move to the more advanced techniques. You don’t need to have any previous experience with BE extensions to follow this tutorial. More...

Publishing to BlogEngine from Word 2007

7. June 2008 21:47 by rtur.net in BlogEngine  //  Tags: , , , ,   //   Comments (12)

A lot of "power bloggers", prefer to use Windows Live Writer instead of built-in web editor. No matter how good web editor is, desktop publishing is just too hard to beat, at least at the moment. I personally like WLW myself and use it whenever I can. But this is not the only choice you have on the desktop; another big one is MS Word 2007. I'm not an Office guru, but if you watch the video at the end of this post you can get ideas how easy and intuitive content creation can be when you have the right tool at your disposal. You can set it up with BlogEngine just as easy as WLW. Simply open new document and go to Publish/Blog in the office menu. More...

Changes to Extension Manager in BlogEngine 1.4

2. June 2008 22:31 by rtur.net in BlogEngine, Extension Manager  //  Tags: , ,   //   Comments (3)

Preparing for BE 1.4 release, which is coming soon (although exact date not yet set), I started working on documentation for Extension Manager and changes it has compared to previous BE version. This is a short list I came up with. Obviously, I'll have to go into specifics and provide code examples for documentation be useful. This will be on the Wiki as soon as 1.4 released. More...

BlogEngine in VMware with Mono on openSUSE

23. May 2008 22:50 by rtur.net in BlogEngine, Tutorials  //  Tags: , , ,   //   Comments (0)

For Windows developers trying to diversify their skills and go Mono, setting up environment is probably the most painful experience. We spoiled by Microsoft tricked us into believe that setup and configuration done by repeatedly pressing “ok” button. It is not so in the wild world outside MS sandbox. For those bold and curious, as a first step I recommend another sandbox – VMware. Try it, see if you like it and, if not – not a big deal, just remove virtual image and pretend it never happened. No hard feelings. More...

Porting WordPress theme to BlogEngine. Part 2

4. May 2008 16:17 by rtur.net in Themes, Tutorials  //  Tags: , ,   //   Comments (8)

Crafting CSS style sheet

This is the most time consuming operation in porting any CSS template to BlogEngine. If you like your design pixel perfect - that will cost you. These are some general tips that I hope will help make job a little bit easier. More...

Porting WordPress theme to BlogEngine

30. April 2008 21:48 by rtur.net in CSS, Themes, Tutorials  //  Tags: , ,   //   Comments (6)

Cool thing about open source is sharing. You give some - you get some. When it comes to themes, there are tons of great free designs out there on the web for applications like blogs. Some of them are generic CSS templates, others specifically designed for popular open source projects like WordPress. This tutorial is about converting WordPress theme to BlogEngine, but most of it very much applied to almost any web template in the universe. More...

Email subscription

24. April 2008 16:21 by rtur.net in BlogEngine  //  Tags:   //   Comments (1)

Chris Blankenship came up with an initiative to start email subscription for administrators who have BlogEngine deployed on there websites. This can be useful for anybody who wants to stay on top of any important news about BlogEngine, not just sysadmins, so I would encourage folks to sign up. This is purely community effort – which, in my opinion, is great. There is going to be a new community site in the near future, but before it materializes, I glad to see when someone stands up.

I see great potential here, BE need to push it harder to become sort of a hub for each blog instance out there, not only providing services like subscriptions by exposing set of APIs, but also letting people to interact in p2p manner, using their blogs as part of BE network. We all can benefit from this. If anyone has ideas and proposals in this direction – share your thoughts!

Recent Tweets

Twitter May 21, 20:23
Had to unplug Kinect to watch Xbox one video on 360. Poor thing freaked out by people screaming commands and stopped playing every few secs.

Twitter May 21, 18:38
Wonder how long it takes for http://t.co/O1XAGcMV5l web gallery to test app. Stuck in "testing" state for a few days now. Is this manual?

Twitter May 15, 19:37
Trying to figure out if Linux Mint need an upgrade. And I thought Windows versions complicated. Is that LMDE thing what I need for my Nadia?

@rtur