CK's Tech Blog
It's Microsoft's World, and I'm just living in it

Added Extension to Blog

February 23, 2008 16:39 by ckincincy

Being a writer of two extensions for the DotNetBlogEngine I've honestly not installed any non standard extensions on my site... until now.

As  you notice there are some  links inserted at the bottom of each of my post, these are some social bookmarking sites that a lot of folks use.  I honestly don't, but I do know that a lot of people do.

With all that being said Danny Douglas wrote an extension that does this for me.  So if you run DotNetBlogEngine and want to have the links on your site then go check out his extension. 


Be the first to rate this post

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

Quicker Links 1.2 Released

January 4, 2008 00:28 by ckincincy

I have added support for the new Extension Manager that is in DNBE 1.3 to the Quicker Links extension.

You can download it here.


Be the first to rate this post

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

Quick Links 1.2 Released

January 4, 2008 00:26 by ckincincy

I have added support for the new Extension Manager that is in DNBE 1.3 to the Quick Links extension.

You can download it here.


Be the first to rate this post

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

Upgraded to BlogEngine.Net 1.3

January 1, 2008 17:57 by ckincincy

I've recently upgraded to BlogEngine.NET version 1.3.  As I generally stay somewhat update with the beta fixes and such not a whole lot of new features for me.  But the good thing is that it works pretty well.   This version did have some Windows Live Writer support and supposed fixes in it for me, so it was my motivation for taking the time to upgrade. 

To the credit of the developers the WLW support was better, but I found a bug.  On my LifeBlog I generally write a lot of post well in advance of them showing up (as of this post I have content for the next week scheduled to appear)... so I have to set a future date.  Previously the API for this assumed local time and it should hve assumed UTC time (which is spec).  So that was in there, however the new code would adjust the time for the server offset and then my post would be off by three hours.  The new code wasn't taking into account that the post.saving method would also adjust the time and that function is global, and should win in this issue.

As of this post they haven't applied the patch, but you can read it about on the issue tracker and apply the fix yourself


Be the first to rate this post

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

QuickLinks and QuickerLinks 1.1 released

December 15, 2007 14:00 by ckincincy

I've released QuickLinks and QuickerLinks 1.1.

Its a pretty minimal change, but if you want the ability to track who clicks what... then you want the upgrade. 


Be the first to rate this post

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

Testing If-Modified-Since header on Windows

December 15, 2007 00:52 by ckincincy

As my previous post alluded to, my blog has had an issue with FeedBurner.  Basically their site is not updating my feed when my scheduled post become visible. 

Matt Shobe (yep, co-founder of FeedBurner) told me that my If-Modified-Since header was inaccurate, and a potential cause of the issue.  So I went on searching for a way to test this header on my Windows XP box.  Couldn't find one, so I emailed Matt and asked him if he could point me in the right direction.

He said you could use Linux (don't have a version installed) or I could possibly use Cygwin.  And I can!  So I grabbed the latest version and looked through all the packages and found two that had curl in them (in the Net component).  Let Cygwin install then ran this line in the command line that appears when you launch Cygwin:
curl -H 'If-Modified-Since: Wed, 12 Dec 2007 05:59:00 -800' -IL http://www.ckurl.com/lifeblog/myfeed.axd (don't go to it, it isn't valid)

And sure enough my BlogEngine had a bug in it.  I've since fixed the bug and hope it resolves the issue.  We will find out in the morning as my LifeBlog has a post scheduled for six in the morning.

I am blown away that FeedBurner is as helpful as it is when it comes to support.  Thanks Matt!  Because regardless of whether or not this bug is the cause of my FeedBurner issue, it was a bug and now the BE platform is better since it is fixed.


Currently rated 3.5 by 2 people

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

Quicker Links - DNBE - Extension

December 1, 2007 01:21 by ckincincy

I have developed a new extension for the DNBE platform.  This feature will replace certain key words with a link to a site you specify.  I have named it "Quicker Links", and using it is rather easy.

After following the README.txt file in the zip file you will see a new tab in your administrative section of your site.

In that page you can specify what words to replace with what links.  For example, I have specified the short cut dnbe to be replaced with a link to Dot Net Blog Engine's website.

This works pretty easily, you enter the text on the left and it will be made into a link.

So download it for yourself! 

QuickerLinks.zip (6.01 kb) - Version 1.0 - December 1, 2007

Now I have tried to account for many different ways for this text to appear in HTML, but I'm sure it could use some improvement.  So if you have a code change let me know!  Here what the code should be able to replace in version one.  Lets assume that you have ckurl defined in your entry to be replaced with a link. 

  • If you just have it normally in a sentence, like above it will become a link. 
  • I also allow for certain punctuation to follow the word (!.,?:).
  • I check for a leading or trailing HTML bracket <, or >.  This is mainly if the word appears after a paragraph or line break.
  • I allow it if the word is followed by a space.  So lets say I have ckurl at the beginning of a sentence it will be replaced with a link.
    • NOTE: This introduced the only known bug.  If your word is in the end of a word it will break that word and give you a link.  For example if I have this wordckurl, the ckurl part of that will become a link.  Would love some better regular expressions for this, so I'm all ears.
  • One last note, I ignore case here.  So if you type cKuRl, it will make that word... just as it is a link.

Well I hope you enjoy! 



Currently rated 5.0 by 1 people

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

Feedburner Email list and DotNetBlogEngine.net - How To

November 10, 2007 10:09 by ckincincy

As I posted about earlier I was made aware of a feature from FeedBurner that allows you to get my post via email.  I wanted to add a side bar item to make it easy for folks, but the supplied code from FeedBurner wouldn't work in ASP.NET.  So I had to make a few changes to how it works.

First I had to add the item to the left bar.  Pretty easy, here is my HTML... yours could be different based on your theme.  This is in my site.master file in my theme directory. 

<h2>Get Post via Email</h2>
<ul>
    <li>
        <asp:TextBox ID="txtFBEmail" runat="server" Width="115px" Height="17px" ></asp:TextBox>
        <asp:Button ID="submit" runat="server" Text="Subscribe" OnClick="submit_Click" Width="75px" />
    </li>
</ul>

Then I had to go to the code behind and add a function to it.  Here is my code, please note the three areas where you need to put your own feedburner information in the URL.  I have also edited my code slightly to post correctly on this blog.  

protected void submit_Click(object sender, EventArgs e)
{
    //This is where I create the CSM
    ClientScriptManager csm = Page.ClientScript;
   
    //This is the money code... this is what makes it work.
    csm.RegisterClientScriptBlock(this.GetType(), "OpenWin",
        "window.open('http://www.feedburner.com/fb/a/" +
        "emailverifySubmit?feedId=YOUR_FEED_ID&email=" +
        txtFBEmail.Text + "&url=http://feeds.feedburner." +
        "com/~e?ffid=YOUR_FEED_ID&title=" +
        "YOUR_BLOG_NAME&loc=en_US', 'popupwindow', " +
        "'scrollbars=yes,width=550,height=520')", true);
   
    //This is just clearing the text box.
    txtFBEmail.Text = "";
}

Now I know there is another way to do this via JavaScript and Client click, but I did this late at night and just wanted something that worked.  Hope it helps you!  And if you're not using FeedBurner... do IT!  


Be the first to rate this post

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

BlogEngine Extension - Quick Links

November 7, 2007 21:42 by ckincincy

I have developed a new extension for the dotnetblogengine.net platform.  This feature will replace certain key words with a link to a site you specify.  I have named it "Quick Links", and using it is rather easy.

After following the README.txt file in the zip file you will see a new tab in your administrative section of your site.

In that page you can specify what words to replace with what links.  For example, I have specified the short cut bcc to be replaced with a link to my church.

The syntax for this would look like: [bcc]Visit my church[/bcc].  I have not installed this on my public blog yet, so this is not a short cut :-)

So download it for yourself! 

QuickLinks.zip (5.41 kb)

One quick note to make is that this will account for some human error but not all.  If you have the following post, with the entry above:

Visit [bcc]my church.

This will not be replaced with a link due to the lack of a closing tag.  However if you have this:

Visit [bcc]my church or some other [some other link]church[/some other link].  But I would prefer if you visit [bcc]my church[/bcc].  

The extension will wrap a link from the first bcc to the last /bcc.  But the middle link would mess it up a bit and the rendering is up to your browser.  So be careful!

Enjoy! 


Currently rated 4.0 by 1 people

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