Extension talk:Categorize

From MediaWiki.org
Jump to: navigation, search
Start a new discussion

Contents

Thread titleRepliesLast modified
Problem when you use WIkiEditor extension as well013:03, 2 April 2012
Prevent "jumping" of the buttons016:32, 12 March 2012
Encoding error when rendering umlauts116:08, 28 February 2012
Third level of categories011:12, 2 February 2012
Error021:39, 12 August 2011

Problem when you use WIkiEditor extension as well

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

89.134.89.8513:03, 2 April 2012

Prevent "jumping" of the buttons

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.

Nakohdo (talk)16:25, 12 March 2012

Encoding error when rendering umlauts

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.

MediaWiki Categorize encoding error.jpg

I'm using Categorize MW1.18 r92462

Nakohdo (talk)14:57, 28 February 2012

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.

Nakohdo (talk)15:54, 28 February 2012
 

Third level of categories

Is it possible to have a third level of categories, for category11 subcategories (category111,category112...)?

91.135.180.21511:12, 2 February 2012

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.

87.189.209.13621:39, 12 August 2011
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox