WindowsLive Writer Plugin

Having raved about WindowsLive Writer recently,  I’ve been using it extensively over the past few days.

I’m using Dasblog 1.8 for this site and apparently it doesn’t support the API required to automatically upload images etc (Writer recognizes this and offers me FTP instead – which works well). That’s all fine and good for images, but sometimes I want to give links to files…

Writer provides a pretty easy API and plug in architecture so I thought I’d write my own Plugin which allows the user to browse for a file, upload it and insert a link to the file into the post content.

This was a really exercise, taking only about 2 hours total for coding and testing. You can get the binary files here and the source code here. This was really for my own use (and doesn’t do any error handling), but feel free to use it…

Basically, copy the binary files to the Plugins sub folder of your Writer folder and restart Writer, it should be automatically recognized and you’ll get a new item in the ‘Insert’ tab of the sidebar

Click on the item and you get a dialog allowing you to specify the file to upload, which site to upload it to and the text to display as the link in the post.

 

The XML file allows you to specify what sites you want to upload to. Specify the correct settings for your FTP server / path.
Only one item should have ‘default’ set to true (this makes it the default selected item in the ComboBox) and if you have ‘debug’ set to true then you will get a messagebox indicating the Uri it is trying to send the file to.

10 thoughts on “WindowsLive Writer Plugin

  1. Mario,

    The serverURI parameter is the ftp servername and path to the folder where you wish to store the FTP’d files.
    For example, my servername is ftp://ftp.kenandsarah.co.uk and the path on that server is /wwwroot/content/binary/

    So the serverURI is set to ftp://ftp.kenandsarah.co.uk/wwwroot/content/binary/

    If you have any problems then post your server settings and path as another comment and I’ll configure it for you (do NOT include your username/password)

  2. Hi,

    cool plugin, if it worked. I always get this error:

    System.Net.WebException: The remote server returned an error: 227 Entering Passive Mode (62,75,177,193,111,246)
    . —> System.Net.Sockets.SocketException: Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht ordnungsgemäß reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat.

    What could be wrong?

    Thanks in advance

  3. hi there, great plugin. as i am using a free version of a wordpress-blog, hosted on wordpress, i am wondering if it is possible to configure the plugin correctly for using my regular ftp-account, which is another server (without php and mysql).

    does it? i always receive an error…

    thanks & regards!

Leave a Reply

Your email address will not be published. Required fields are marked *