XFN Friendly Blo.gs Blogroll Plugin for WordPress
Thursday, 5th May 2005
Download xfn-blogroll.zip
The XFN Friendly Blogroll is a WordPress Plugin for fetching your blo.gs favorites and associated XFN data and displaying them in your weblog, ordered by most recently updated.
You will need
- PHP4 (version 4.0.6 or higher)
- MySQL (version 3.23.23 or higher)
It has been written for WordPress 1.5 but may also work in 1.2 (I haven’t tested though)
This plugin was based on rp?blogroll
Installation
- Add your xfn settings into blo.gs (click on the “i” symbol next to the names) - See XFN: Getting Started for advice
- Unzip the package in an empty directory.
- Drop xfn-blo.gs.cache into your wp-content/ directory, and CHMOD to 666.
- Drop xfn-plugin-blogroll.php into your wp-content/plugins/ directory, and activate in your Plugins menu.
- To display your recent links on your frontpage (or wherever), just insert the following block of code where you want. But be sure to enter the address to your own blo.gs favorites.xml!
<!-- begin blogroll block -->
<ul>
<?php xfn_blogroll('http://blo.gs/???/favorites.xml', 999); ?>
</ul>
<!-- end blogroll block -->
Displays the most recent links added to your linklog.
Functions
< ?php function xfn_blogroll($favorites_url = '',
$limit = 999,
$date_string = 'l, j F @g:i a',
$before = '<li>',
$after = '</li>',
$between = "\n") ?>
- $favorites_url - URL of your blo.gs favorites.xml file.
Defaults to http://blo.gs/????/favorites.xml (or whatever you set the default to!). - $limit - How many links to display?
Defaults to 999. - $date_string - Date format of the date string added for a link?s title attribute.
This is based on PHP?s date() function.
Defaults to ?l, j F @g:i a?, which displays Thursday, 5 May @4:08 pm.
See php.netfor other formats: - $before - String to add before the link-formatted text.
Defaults to ?’<li>’,? - $after - String to add after the link-formatted text.
Defaults to ?’</li>’,? - $between - String to add after a link. This is added after the $after string.
Defaults to ?\n? (newline)
Help
Questions, reactions and, suggestions regarding this hack may be posted on here or by email at ellythompson at gmail dot com.
Copying
Copying, modification and redistribution is allowed under the terms
of the GPL, better explained by the CC?GPL (Creative Commons Deed).