SkyDrive DirectLink Module for Drupal

About:

This module allows you to post on your site links to files on SkyDrive.
Yes! it's true, direct links!
Skydrive often changes those links so you can't just copy-paste them in your post.
This module keeps evidence of the links you want to use and updates them from time to time.
Previously I created something similar for Flatpress. Tell me if you need this for other platform.
Also, keep reading if you want to know how to use this module and also, if you want to download it :).

Fast "How to use"

You will find detailed help in module's help page.
There are 3 easy things to remember:

1) You must choose "Full HTML" text format in the posts where you want to use a direct link to skydrive in html tags like anchor or image.

2) Use this template in the place where you want to have your url:
[skydrive:CID ! FolderId ! FileName]
There are 3 variables in the template:
CID - is something like "Client ID" and can be found in the URL when you access your Skydrive;
FolderId - self explanatory - can be found in the URL when you access a skydrive folder (generally at the end of the url);
FileName - the name of a file or folder without the extension;

3) Files that you want to share using a direct link must be in a public folder.

...and let's take an example:
When you click your public folder the URL in the address bar of your browser should look like this:
https://skydrive.live.com/#cid=3F9E4E99286D30BB&id=3F9E4E99286D30BB!999
Where:
The red part represents your CID - 16 hexadecimal digits;
The blue part represents the FolderId.
It's up to you now what FileName you choose from this folder.

The label you will use in your post will be: [skydrivë: 3F9E4E99286D30BB ! 999 ! MyFileName]
You can use as many spaces as you like (or none) between the variables and "!" marks. I usually use only one.
*Notice that I used ë instead of e because I don't want my tag replaced -(Yes, I'm using the module)- so you can see it.

Enjoy!

Download: SkyDrive DirectLink module for Drupal

See it working:

A link to an image on my SkyDrive:
Dark Bulb

The same image, embedded here using an img tag:

A link to a folder:
Some Java apps

A song from skydrive:

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.