Extension talk:YetAnotherTagCloud

From MediaWiki.org

Jump to: navigation, search

Orangedino 00:21, 25 February 2007 (UTC) I'm going to move the documentation to mediawiki.org, hope in the next days.

3/20/07 - Great extension. Worked like a charm on my site http://tipcollection.com

very cool.. works just fine MW 1.9.3 163.252.39.78 15:57, 18 April 2007 (UTC)

Contents

[edit] Older Versions

I had to change some code to get it working on MW 1.6x. I only use the code on one page so got rid of the for loop.

Change:

function invalidateCache() {
	$titles[0] = "Main_Page";

	for ($i = 0; $i < count($titles); $i++) {
		Title :: newFromText($titles[$i])->invalidateCache();
	}
}

To This:

function invalidateCache() {
	$wgTitle = "Main_Page";
	$wgTitle->invalidateCache();
}


I also had to put a div around the extension so it wouldn't blank out the right border of my other div's. I just added

around the tag. Take a look at it working on my site at http://www.captainwiki.com --Ben 00:23, 3 June 2007 (UTC)

[edit] Don't work with é, à, â, etc.

Still don't work with é, à, â, etc.

[edit] Capitalization Issues

Great extension! However, we're having issues with capitalization. For example, the "FAQ" category links to [[Category:faq]], which does not exist (it should be [[Category:FAQ]]). That's a big problem, of course - especially since it can't be manually adjusted... -- FND 13:38, 28 June 2007 (UTC)

[edit] Fix for PostgreSQL

The SQL query does not work with an MediaWiki using a PostgreSQL-DB (it complains about a missing column count).

Replace the SQL statement with the following line (the changed part is highlighted)

$sql = "SELECT LOWER(cl_to) as title, COUNT(*) as count FROM $categorylinks  " . $exclude_condition . " GROUP BY cl_to HAVING count(cl_to) >= $min_count_input ORDER BY cl_to ASC";
Personal tools