I recently ran into Matt Kingstons’s Weighted Categories plugin. It was inspired by flickr’s tag list, showing tag usage with a font size for each tag proportional to the number of photos tagged.
I decided to clean it up a bit and make it work on pages that didn’t include all posts, and then turned it into an example of how to extend the FOAF Output Plugin profile page (example, download, source).
The current version is 1.1 (released 2005-01-02).
- Changes since 1.0:
-
- Fixed problems when no interests were found.
This plugin requires the FOAF Output Plugin. Note that only categories that are classified as interests by the FOAF Output Plugin (that is, the ones that have a URI in their description) are included in the list. If you wish to show all categories, simply change the line that gets the list of interests:
$cats=get_foaf_output_interests(falsetrue);
In case you are interested, here’s the CSS I added to my global stylesheet to make it look like it does:
.profile dl dd.weighted-interests {
text-align: center;
padding: 0.5em; }
.profile dd.weighted-interests li {
list-style: none;
display: inline;
margin: 0.2em; }
.profile dd.weighted-interests a {
text-decoration: none; }
[…] s Plugin: Weighted Interests Categories - WordPress Hack LinkyLoo — Mark WordPress Plugin: Weighted Interests: plugin to display a […]
Pingback by Weblog Tools Collection » WordPress Plugin: Weighted Interests — 2004-12-31 @ 14:39:32
Hi morten,
doesnt seem to work if no interrests are there, no categories contain an URI.
Comment by Christoph Görn — 2005-01-01 @ 15:52:34
Christoph,
The problems with no interests should now be fixed.
Thanks.
Comment by Morten Frederiksen — 2005-01-02 @ 01:23:41
[…] log. Installed the plugins that are written by Morten Frederiksen: The FOAF output plugin, FOAF’ed weighted interests and semantic visits. Cli […]
Pingback by UIML Ramblings » Semantic-me — 2005-01-02 @ 23:47:45
Thanx for the plugin buddy….works out well.
Comment by christ — 2006-02-04 @ 14:06:04