Jump to content

Extension talk:Categorize

About this board

Problem when you use WIkiEditor extension as well

1
89.134.89.85 (talkcontribs)

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

Reply to "Problem when you use WIkiEditor extension as well"

Prevent "jumping" of the buttons

1
Nakohdo (talkcontribs)

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.

Reply to "Prevent "jumping" of the buttons"

Encoding error when rendering umlauts

2
Nakohdo (talkcontribs)

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

Nakohdo (talkcontribs)

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.

Reply to "Encoding error when rendering umlauts"

Third level of categories

1
91.135.180.215 (talkcontribs)

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

Reply to "Third level of categories"
87.189.209.136 (talkcontribs)

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.

Reply to "Error"
There are no older topics