| « Limitando a quantidade de caracteres do post na saída | Blogroll com suporte a XFN » |
XFN enabled Blogroll
XFN enabled Blogroll
To learn about xfn, read: http://gmpg.org/xfn/
Some days ago, while reading about the launch of the Google Social Graph API, I got interested and also a little disappointed,because b2evolution does not support the xfn attributes on its linkblog.
So I decided to implement a plugin that replaces the standard linkblog, but with the ability to use the xfn extensions. I haveincluded another desired feature: make my blogroll a simple list, instead of listing the links up according to there categories.
Installating this plugin will provide a new widget called 'Linkblog (xfn)', which you can use to replace the standard b2evolutionlinkblog widget. To add your relationship to the people in your linkblog I decided to use the tags field from the post. For example: if I add a link to a friend I have actually met, I add the tags 'friend' and 'met'.
There is also a hook for something that I will be implementing in the future, which is to make the linkblog links open in a newwindow, but the plugin is perfectly useable right now! I hope you enjoy!
You can set this plugin to open link on new windows! Just assure that your skin has jquery loaded. If you are using a b2evolution version greater than 2.x, you can just add to your skin:
require_js( '#jquery#');
You can add the 'rel="external"' to links outside of your linkroll, and all these links will open on a new window.
Download the plugin: http://devlog.waltercruz.com/media/blogs/b2evolution/linkblogxfn-0.2.zip http://devlog.waltercruz.com/media/blogs/b2evolution/linkblogxfn-0.1.zip
Translation by google, corrections by a blonde, coding by an unsung hero 
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
3 comments
i just tried your plugin. its great, but the links in the linkblog don´t open in a new window. I inserted 'require_js( '#jquery#');' in the html head. Whats the mistake? Could you give me a hint?
Thanks.
Greetings from Hamburg (D)
Ben
Everything looks ok.. A thought: you use jquery and prototype in your site, and both define a $ function.. Maybe this can be the source of the problem?