Extension talk:CategoryCloud

I'm using a german MediaWiki Version 1.9.3. The Extension doesn't work, every Category seems to be empty. I changed the SQL-Statement to:

$sql = 'SELECT cl.cl_to as name, count(*) as count ' . ' FROM categorylinks cl' . ' LEFT JOIN page AS p on p.page_title = cl.cl_to' . ' WHERE cl.cl_to LIKE '. $dbr->addQuotes($categoryName) . ' GROUP BY cl.cl_to' . ' ORDER BY '. $order;

Now it works. Have fun.

Proposed Extension
Well... I added a tag in mine so it displays the article/subcategory count for each category. Just add this after line 221: if ($args["showcount"]) { $catCount = $categories[str_replace(" ", "_", $cat)]; $text .= " $catCount "; } Then it's as easy as

Of course I could've saved the category name var before the "_"s where changed to " ", but I wanted to keep your code unscathed. --Phenome 15:35, 2 June 2007 (UTC)
 * I'll add that into the next version, seems like a very useful feature. --Dylan Moonfire 16:09, 5 October 2007 (UTC)

Recursivity
"the extension does not recursively go through the sub-categories for additional categories." - Pity... it would be great if it did that. :) -- Schneelocke 20:09, 21 June 2007 (UTC)
 * I'll add "recurse=X" where X is the number of levels to recurse. While I don't use it, it seems like a useful one to have. --Dylan Moonfire 16:10, 5 October 2007 (UTC)

Tag for every article in the given category
It generates a tag for every sub-category, but not article, in the given category. >> It should ;) And besides the option as tag cloud maybe like the regular list but different font sizes. --Sub
 * The main reason I didn't do that is because it wouldn't really create different font sizes. Since there would be one and only one of an article inside a category, it would always have a count of 1. In effect, it would just be a link of everything inside the category, with no font sizes. --Dylan Moonfire 16:21, 5 October 2007 (UTC)

Installation/Use
Could someone perhaps add a section of Installation and Use? I'm assuming you save it as TagCloud.php in the extension directory and then in LocalSettings.php you use require_once("$IP/extensions/TagCloud.php"); Can anyone confirm? I would even make the section myself if this is correct.

--Dopple 11:00, 22 August 2007 (UTC)
 * Yes, that is how you add it. I'll block in a section the next time I do an update (hopefully in a week or three). --Dylan Moonfire 16:11, 5 October 2007 (UTC)

1.10.1 Problems
Notice: Undefined index: class in MYWIKIPATH/extensions/CategoryCloud/CategoryCloud.php on line 199

Notice: Undefined index: style in MYWIKIPATH/extensions/CategoryCloud/CategoryCloud.php on line 203 The above error occurs consistently with CategoryCloud enabled on my mediawiki 1.10.1 website. If anyone knows how to fix this or has had this problem before any assistance would be appreciated. Otherwise I'm going to take a look at the wikitagcloud extension and see if it can do (or can be modified to do) the same thing as the categorycloud extension. --Diploid 20:27, 24 August 2007 (UTC)
 * Are you using a recent version of the CategoryCloud? I thought I fixed that with one of the later versions, by checking the key existence first. Which version of PHP are you using? You should be able to bypass it by just putting in class="" and style="" depending on your use. --Dylan Moonfire 16:19, 5 October 2007 (UTC)

I've the exact same problem with my Wiki :/ [Wed Dec 3 13:08:06 2008] [error] PHP Notice:  Undefined index:  class in MYWIKIPATH/extensions/CategoryCloud/category-cloud.php on line 199 [Wed Dec 3 13:08:06 2008] [error] PHP Notice:  Undefined index:  style in MYWIKIPATH/extensions/CategoryCloud/category-cloud.php on line 203 My installed software: MediaWiki v. 1.13.1, PHP v. 5.1.6 (apache), MySQL v. 4.1.22-log. --Danny373 12:05, 3 December 2008 (UTC)