Extension talk:Dynamic Category Map
From MediaWiki.org
Any user names refer to users of that site, who are not necessarily users of MediaWiki.org (even if they share the same username).
Contents |
[edit] Extension doesn't work with PHP4
I think it's the same problem there is in Dynamic Article List. I got the error code:
Parse error: syntax error, unexpected T_CLASS in /www/htdocs/w006b563/extensions/DynamicCategoryMap/CategoryTravelerBase.php on line 10
running PHP4. Maybe someone have a workaround? Or an idea what to do? I think the problem are the abstract class and the abstract functions in CategoryTravelerBase.php.
Thanks in advance for your help.
Nice work! I am using this extension in my personal site. However, I made some minor modifications so that all the required files are held in a directory under the extensions. No files would be copied to includes. I felt that this is a much cleaner way of doing things, for then one should not have to worry about where the related files are, in situations like upgrading of mediawiki version.
(Details of the modification are given below. The modified version is here.)
- Here are the changes:
- CategoryMap.php
require_once( "$wgDynamicCategoryMapPath/CategoryTravelerBase.php" );
- CategoryTravelerBase.php
require_once( "$wgDynamicCategoryMapPath/CategoryNode.php" );
- DynamicCategoryMap.php
require_once ("$wgDynamicCategoryMapPath/CategoryMap.php");
- CategoryMap.php
- Then add the following to the LocalSettings.php
[edit] does it work with 1.7.1 version?
I'd installed this extension but... It's just showing my first category... What's happening?
- I've installed it on 1.7.1 and it works fine for me. I do notice that it doesn't display categories that lack any kind of description in them ("red" categories). Maybe a bug, maybe intentional. --208.161.104.192 09:16, 16 September 2006 (UTC)
[edit] give me a zip or php file
it's wrong for .pdf,WHO can give me a copy
[edit] The includes folder?
Really? Shouldn't this be changed to be contained entirely within the extensions folder? --w:User:Matt B. (71.57.32.65 02:14, 11 March 2007 (UTC))
[edit] Use of Apostrophes (') in Category Names
Applying on
- MediaWiki: 1.9.3
- PHP: 5.1.4
- MySQL: 5.0.27
That contains a
- Category:Côte d'Ivoire
Results in:
- from within function "CategoryMap::buildOneCategory". MySQL returned error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Ivoire') ORDER BY page_title' at line 1 (localhost)".
Note that the above conversation may have been edited or added to since the transfer. If in doubt, check the edit history.
[edit] Add 3rd, 4th... category level
How can I show more category levels?
Thanks a lot.
CU Felix Böttcher

