Steve Trefethen
Contact me
About Me View my LinkedIn profile

Powered by discountASP.NET
referal ID: sdtref
Why recommend discountASP.NET?
Need consulting?
Need Consulting?

Spread Thunderbird

Disclaimer

The posts on this weblog are provided AS IS with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

TestComplete Keyword Testing Online Training

I will be presenting a three day webinar April 12-14th 2010 from 9am-1pm PST on AutomatedQA's TestComplete. The cost is $499/person and you can register on Falafel Software's website here. For detailed information on this training click here.

Moving from dasBlog to BlogEngine.NET

January 15 2010 12:11PM
In addition to moving this blog to BlogEngine.NET (BE) I've recently moved my personal home blog from dasBlog to BE and I’ve had to lookup the steps to export/import blog data more than once so I decided to capture them once and for all here. The process shouldn’t really take more then about 30 minutes to complete.
  1. Download Paul Van Brenk’s dasBlog BlogML importer
  2. Run the importer to convert your dasBlog content to BlogML. I ran into a few issues trying to import 1500+ comments from my blog so it required a bit of debugging/tweaking.
  3. Download BlogEngine.NET and set it up either locally on an ISP (importing can work with either)
  4. To avoid a Username/Password error upon importing into BlogEngine.NET add the line indicated below to BlogEngine.NET\api\BlogImporter.asmx (solution originally sourced from this work item on CodePlex)
    [SoapHeader("AuthenticationHeader")]
    [WebMethod]
    public string AddPost(ImportPost import, string previousUrl, bool removeDuplicate) {
        if (!IsAuthenticated())
            throw new InvalidOperationException("Wrong credentials");
    
        ...snip...
    
        Post post = new Post();
        post.Title = import.Title;
        post.Author = import.Author;
        post.DateCreated = import.PostDate;
        post.DateModified = import.PostDate; // or "DateTime.Now"  <- LINE ADDED
        post.Content = import.Content;
  5. Log into your BE install click on the Settings tab and scroll all the way to the bottom to view the Import & Export section.
  6. Click the Import button which launches the Blog Importer tool that looks like this:

     image
  7. Enter the name of your BlogML XML file, the URL to your BE blog and your credentials
  8. Click Import
  9. Hit your BE blog and enjoy your imported data!

Btw, here is a post to a few other items I had to address to really get my blog moved over.

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Tags: BlogEngine.NET | dasBlog

A few minor BlogEngine.NET TextBox widget improvements

January 13 2010 10:14PM
I really like the ability to use multiple widget zones, it's a great feature that offers a lot of flexibility WRT theming. There is one drawback which is BE makes some assumptions and places hardcoded markup in the TextBox widget which is not desired. I'd like to see two minor changes along these lines which I think would help improve the usability. First, WidgetBase.cs has an assumption that if the title of the widget is not displayed a gets inserted which IMO is not desired. Second, the tinyMCE editor used by the TextBox widget wraps all content in <p> tags which is also not desired IMO. I like to use the TextBox widget to place any markup on my theme including <script> blocks therefore in WidgetBase.cs I'd like to see the following change:
if (ShowTitle)
  sb.Append("<h4>" + Title + "</h4>");
else
  sb.Append("<br />");

to…

if (ShowTitle)
  sb.Append("<h4>" + Title + "</h4>");

And in Widgets\TextBox\edit.ascx add the option for TinyMCE for:

forced_root_block: false

I’ve already made these changes for my blog which makes the TextBox widget much more useful. I now have an editable sidebar, banner region, page footer and footer script block.

If you’d like to join a conversation on the topic I’ve posted this to CodePlex.

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Tags: BlogEngine.NET

Update on my switch to BlogEngine.NET

January 13 2010 12:10AM

While I updated my blog awhile ago I thought I post an update as to how my conversion when and mention a few of the things I had to do to convert. BlogEngine.NET (BE) has been a refreshing break from dasBlog and the ASP.NET v2.0 design of BE is so much more enjoyable to work with. Porting my theme was a no brainer and while I had several hurdles in order to actually move it has been well work the effort.

For example, my blog now loads much faster, pages are now compressed, and login problems are a thing of the past among many other benefits. Some of the issues I faced in the move included:

  • Moving my posts and comments
  • Preserving the dasBlog style title-based links to my posts
  • Preserving non-post articles I’d written
  • Porting dasBlog’s macro for quickly linking text to a BE Extension

I first tried using a dasBlog provider but eventually decided against that approach as it would have prolonged the aforementioned comment loss issue. Eventually, I settled on a minor change to the slug (URL) handling for BE coupled with a dasBlog URL rewriter which handles various redirects and any referrer related issues as I find them. Additionally, I added the blocked IP logic from dasBlog to BE allowing me to cut down on spam attacks (at least a little).

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Tags: dasBlog | BlogEngine.NET