Wednesday, 07-Feb-2007, 20:57 by Glen
My Tag cloud implementation started from the Matt’s weighted-categories implementation on hitormiss. It was working fine but I needed two things (yeah, just 2)
- the hover text to be more informative
- WordPress 2.1 support
I only needed to change one line to make the hover text include the category name (for cases where my font size was tiny). However, all went out the window when I upgraded to WP 2.1. Most of the weighted-categories code had been deprecated over the 2 years since it was first authored. So, I did some digging and figured out the new implementation.
Here is Matt’s code ported to WP 2.1. I still want to replace the regular expression calls with Perl compatible regular expressions for performance reasons.
Continue reading ‘Tag Cloud – code Rewrite’ »
Saturday, 27-Jan-2007, 23:28 by Glen
I use a blogging client called Windows Live Writer. It is an XMLRPC client that supports the MetaWeblog API. One thing that has bothered me has been it’s interface for “categories”. From looking at the API, I think it is less of an artifact of the client and more of a limitation in the API. basically, neither were meant for “on the fly” generation of categories.
The problem for me is that I am using “categories” more like keywords. this is how my Tag Cloud is generated.
Well, long story short, I have written the necessary PHP code to extract a list of keywords from the body of a post and convert them to category entries. It matches up existing category values and creates any missing ones.
Thursday, 25-Jan-2007, 22:52 by Glen
So, I’ve got a bit crazy with some of the Lotusphere notions and my blog. I just implemented a tag cloud. I actually think it may prove interesting from a research POV. I will be curious …
- will I keep it up to date ?
- will it expose trends in my blogging content that I was not intentionally promoting ?
- will it help readers find content ?
- will it be a waste of space ?
- will the text be ridiculously small ?
I have already found one problem .. my implementation overloads the use of “categories” which is fine from both an design and performance POV but Windows Live Writer is not keen on generating categories on the fly (bummer).
So – please leave your comments !