Extension talk:Categorize
Contents
| Thread title | Replies | Last modified |
|---|---|---|
| Problem when you use WIkiEditor extension as well | 0 | 13:03, 2 April 2012 |
| Prevent "jumping" of the buttons | 0 | 16:32, 12 March 2012 |
| Encoding error when rendering umlauts | 1 | 16:08, 28 February 2012 |
| Third level of categories | 0 | 11:12, 2 February 2012 |
| Error | 0 | 21:39, 12 August 2011 |
We'd like to use Categorize extension but we using the WikiEditor extension as well (https://www.mediawiki.org/wiki/Extension:WikiEditor). If we install the Categorize extension, the WikiEditor will be unavailable.
Is it possible to use the two extension togethet?
Thx Andrew
The "jumping" of the buttons while hovering with the mouse is caused by the CSS which sets the border-width of the buttons from 1px to 2px without compensating by reducing the padding of the elements accordingly. To amend this the following CSS recreates the same effect by using "outline" instead of "border" which doesn't affect the box size of the element:
span.xlabel:hover, span.xselected {
border-width: 1px !important;
outline: 2px solid #666666;
}
span.xselected {
outline-color: red;
}
There's some horizontal movement left due to making the selected button bold.
The German localization is rendered ok, but there seems to be an encoding error with the category names from LocalSettings.php (the file is saved as UTF-8). I suppose the culprit is somewhere in the JavaScript code.
I'm using Categorize MW1.18 r92462
The culprit seems to be the utf8_encode() function in Categorize.hooks.php, e.g.:
$l__label_value_to_print = utf8_encode(str_replace("_"," ",$l__label_value));
$l__label_value is read correctly from LocalSettings.php but $l__label_value_to_print gets corrupted.
"Please note that utf8_encode only converts a string encoded in ISO-8859-1 to UTF-8. A more appropriate name for it would be 'iso88591_to_utf8'. If your text is not encoded in ISO-8859-1, you do not need this function. If your text is already in UTF-8, you do not need this function. In fact, applying this function to text that is not encoded in ISO-8859-1 will most likely simply garble that text." http://php.net/manual/de/function.utf8-encode.php
Removing that function does resolve the issue, only the AJAX suggestion still doesn't work with umlauts.
Is it possible to have a third level of categories, for category11 subcategories (category111,category112...)?
I'm getting "Undefined variable wgCategorySuggestCloud in C:\xampp\htdocs\wiki\extensions\Categorize\Categorize.hooks.php on line 60". If I comment it out, anything works well. I also installed "SelectCategoryTagCloud" but still the same error. Furthermore it would be nice if you could add an option to still show the [Category: ...] in the MediaWiki-Text.
