How to insert a link into a blog without the blog changing it?
March 30, 2010 10:24 PM   Subscribe

How can I add a non-traditional (non-website) link to a blog post/template without the link being changed upon saving?

The blog website I'm working with changes the Skype "Call me" button script so that instead of directing the computer to open Skype and start a call, the link leads to a nonexistent page on the blog site.

I'm pasting the script from the Skype website.

This is what the html should look like:

[a href="skype:myname?call"]call me[/a]

but when I hit save (for a post OR for a text/html sidebar widget) the blog's address is added to the beginning so that the link becomes:

http://blogname.blogsite/page/myname?call

What's going on? Is there some command I can use to tell the blog not to change the link, or to make the script inviolate?
posted by ramenopres to Technology (6 answers total)
 
Edit: Actually, the script is being saved as [href="myname?call"] -- it's taking out the Skype option.
posted by ramenopres at 10:27 PM on March 30, 2010


Hmmm, doesn't sound good. Sounds like the blog software is knocking out anything before a colon, to prevent you using javascript.

It would help to know what blogging software it is. Sometimes there is a "raw html" mode where you have more freedom, but my offhand guess is you're screwed. You might just have to post the skype name and let them paste it themselves.
posted by drjimmy11 at 11:56 PM on March 30, 2010


Yes, sounds like your blog software is at fault here.
Maybe you could try something like:

[a href="javascript:window.location.href='skype:myname?call';"]call me[/a]

That might work if your blog software allows javascript in URLs...
posted by le morte de bea arthur at 2:11 AM on March 31, 2010


Any chance you can share with us what blog software you're using? I agree with drjimmy11 and LMDBA, it sounds software specific, and if we know which software it is, we might be able to find a better solution.
posted by Remy at 5:45 AM on March 31, 2010


I'm sending mefimails with the blog information. :)
posted by ramenopres at 7:03 AM on March 31, 2010


So, after a Skype session with ramenopres, here's the cause and workaround:

The blog host in question is providing hosted Wordpress services, which have the same problem with Skype links that Wordpress.com does - they strip most non-HTTP links out as a security measure. Hosted Wordpress also generally disallows javascript or installation of plugins.

The best solution/hack/workaround we found (as suggested in this blog post) was to create the desired Skype link and then run it through a link shortener (such as TinyURL) to get an http version of the link. TinyURL happily sends the user along to Skype, Wordpress sees an HTTP link and doesn't strip it out of the page. Win/win.
posted by Remy at 8:22 AM on March 31, 2010


« Older forced to change job title   |   My 10-year-old wants to blog Newer »
This thread is closed to new comments.