Archive for May 2008

Write custom rel tags for your links in Wordpress 2.5.1

Since I experienced the same issue, I wanted to share how I solved it.

I was adding a link to my site using Wordpress 2.5.1’s admin window and I noticed that I couldn’t modify the link’s rel tag at my own will, yet I could see how my rel tag was looking so far in the “Link Relationship (XFN)”. When I try to edit the rel tag manually a javascript tries to automatically rebuild based on your checkbox choices.

Wordpress 2.5.1\'s admin Link Relationship section

If you have this exact wordpress version (I don’t know about others) you can solve this and have the link admin let you modify rel tags as you choose by going into the code and modifying /wp-admin/js/xfn.js inserting after line 41 this:

if ((aInputs[i].name != "link_rel") && (aInputs[i].name != "save"))

This modifies the “blurry” function to make it look like this:

function blurry() {
        if (!document.getElementById) return;

        var aInputs = document.getElementsByTagName(‘input’);

        for (var i = 0; i < aInputs.length; i++) {
                if ((aInputs[i].name != "link_rel") && (aInputs[i].name != "save"))
                 aInputs[i].onclick = aInputs[i].onkeyup = upit;
        }
}

This is useful for those that want to have complete control of their site’s microformats.

RSS Awareness day

Although it’s already 1 day late, I would like to join on this movement, the RSS Awareness day, may 1st. For those of you who don’t know (and should!) what is RSS, or any other form of syndication, follow this link to get started. The idea is to spread the use of syndication aggregators in order to save you some time while browsing the web, specially if you’re one of those people that read everything they come up with.
There are other formats of syndication, but that doesn’t really matter since most readers already support the most widely used.
In my particular case, I use google reader because it’s already a strong client, web based and it supports indexing and searching as if you were searching google through the web (one of the best features in my opinion), also supports sharing of items with your google talk friends. Watch out, the use of google reader and/or any feed readers is very addictive! Now that you’re already warned, watch the video for a quick overview.

For those of you who know what it is, support the movement (even if its late already :) ). I would really like to see more people using this kind of tools.

By the way, which one do you use?