WordPress Cat Cloud Plugin v0.2.2 released
Update: This plugin is no longer maintained. I'd recommend using Wordpress' built-in tag cloud functionality or the Simple Tags plugin instead.
Version 0.2.2 of the Category Cloud WordPress plugin has been released. The code is even uglier than the previous version. :)
New features include:
- style sheet now moved into head of generated output
- additional options for controlling the display font and the characters used before and after the category names have been added to the admin console
- a bug in the validation of font sizes has been fixed (and you can now enter in font sizes with decimal amounts)
Download the plugin from http://zak.greant.com/catcloud-v0.2.2.zip
Tags: catcloud, Code, UncategorizedRelated posts
Posted on Saturday, April 1st, 2006 at 10:35
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
April 1st, 2006 at 12:42
Work Fine for me :p
April 4th, 2006 at 12:16
Hi, remember me ? we met at the phpquebec conference.
Anyway, I coded a similar plugin a long time ago based on Weighted Categories (distributed on hitormiss.com). My plugin is very minimalistic but maybe you wanna check it. Of course it's installed on my blog. I just don't have as much categories as you do. :P
Thanks again for the book (MySQL phrasebook). I'll write a review soon.
April 18th, 2006 at 9:43
Great plugin!
Would it be possible to have the option to only show the top X catagories (X being a number like 15 or 60)?
Thanks in advance!
April 18th, 2006 at 10:14
Hi Jason,
That is a quick thing to add - will hack it in sometime in the next few weeks.
May 17th, 2006 at 1:39
Zak, nice plugin. How can I get the plugin to use my theme's css rather than the css in the .php file?
May 21st, 2006 at 13:30
Hovering a 'tag' shows the description of the category - but unfortunatly not on sub categories. Will you fix this?
May 26th, 2006 at 8:20
Zak, wonderful plugin! I've got a possible bug, though: the size/color formatting doesn't seem to be applied to categories with only 1 entry. You can see my blog's sidebar for an example — look specifically at "Contest," "Gaming" and "Homeschooling." Any chance this is an easy fix?
—-
Hi Travis,
Thanks for writing
What version of the plugin are you using?
Did you modify the plugin - the CSS looks a bit different.
The fix might be as simple as adding a newline ("\n") before the tab ("\t") in the line below in the plugin code.
$output['css'] .= "\t#catcloud { font-family: $catcloud_font_face };";
Cheers!
–zak
June 2nd, 2006 at 1:00
Hey, I think I noticed a minor bug with the color step size.
If you have a large discrepancy between the number of posts in your smallest category and the number of posts in your largest category, the color step size can be rounded to 0 or 1 (which could result in going beyond 255 or below 0).
Fix would be along the lines
1. Remove the rounding when calculating the step size
foreach($color_min as $k => $v){
$color_step[$k] = mk_step($v, $color_max[$k], $counts);
}
and then
2. Add rounding when calculating the value at a particular step
foreach($color_min as $k => $v){
$c[$k] = round( mk_stepped_base($v, $color_step[$k], $count) );
}
July 1st, 2006 at 18:01
[...] Okay, here's the link to what seems to be a good plugin for this function, from Zak Greant’s blog: Cat Cloud Plugin v0.2.2 [...]
July 20th, 2006 at 7:13
I was wondering if there was any way to get Cat Cloud to only display a specific number of tags. For example, calling catcloud(25) would form a cloud with only the top 25 tags in it. I took a look at the code and it doesn't look like that's possible, but can you suggest an easy way to get this done? Thanks.
July 28th, 2006 at 11:12
Hello
there is any documentation/tutorial anywhere on how to use this? I downloaded the zip file and there is anything but the php file and the license.
I installed it sucessfully but it doesn't show in the theme I'm using, and I have no idea what to do next.
Thanks
July 28th, 2006 at 11:48
Hi!
Put a call to
catcloud()
inside your templates where you would like the category cloud to show up.
You can configure the plugin by visiting WordPress\' Plugin -> Cat Cloud Configuration and setting options.
–
Cheers!
–zak
August 5th, 2006 at 8:16
[...] Aí eu me empolguei com essa história de nuvens e resolvi colocar as categorias do site também em nuvem, usando o plugin do wordpress Cat Cloud. [...]
February 23rd, 2008 at 11:22
can it use in wordpress 2.3?
February 25th, 2008 at 14:22
It's no longer maintained. Anyone know where I can download it?
February 25th, 2008 at 14:23
I wish there was more documentation.
February 26th, 2008 at 4:15
Actually I liked your plugin more than the built-in cloud. Any chance that you release a new version?