Extension talk:ManageCategories

From mediawiki.org
Latest comment: 11 years ago by WhiteTigerItaly in topic Cann't remove category

MV 1.12[edit]

Any future version that supports MW 1.12. Get error on page when using extension. --Aroekene 22:03, 5 June 2008 (UTC)Reply

Problem downloading[edit]

Hi, sounds nice, but trying to download the file(s) from http://fli7e.host.sk/wiki/managecategories.zip results in error message!.....--Horst Salzwedel 18:01, 22 March 2008 (UTC)Reply

why,it can't work on my website,mediawiki 1.11.0 IE8 LOOK THIS:TKS http://www.wikilv.com/index.php?title=%E5%8C%97%E4%BA%AC%E5%B9%BF%E5%8C%96%E5%AF%BA&action=edit --Zealg 03:02, 1 April 2008 (UTC)Reply

download[edit]

the webspace has some issues. hence i moved it to box.net. --Mayrhuber 21:53, 8 April 2008 (UTC)Reply

Buttons not working[edit]

I've installed this extension on a wiki I'm setting up. The boxes and buttons appear on the edit page as they should, but clicking the buttons doesn't do anything -- doesn't create categories or add one to the current article. I am using URL rewriting, if that could be making a difference. When looking at the page source, I noticed that all the other referenced scripts are on paths like "wiki/...", while the one for this extension is "extensions/managecategories/...", with no "wiki/" in front. I thought this might be the source of the problem, since I didn't have a URL rewriting rule that'd trigger on a path like "extensions/...", but when I tried putting in a specific rule for it, nothing changed. Any idea what might be going wrong? --142.166.147.90 19:26, 16 April 2008 (UTC)Reply

Cann't remove category[edit]

I can add an article to a/some category(s) by this extension. It works well. But I cann't remove any category(s) by it.

  • MediaWiki: 1.11.0
  • Win XP
  • The AppServ Open Project - 2.5.7 for Windows
    • Apache Web Server Version 2.2.3
    • PHP Script Language Version 5.1.6
    • MySQL Database Version 5.0.24a

Could you give me a hand?--Roc michael 06:33, 24 May 2008 (UTC)Reply


--Take a look at the source code, code for removing the category is not in there at all.

Same issue here, I'm not able to remove category.
If there is not code about this, why there are the check box near the categories?

--WhiteTigerItaly (talk) 14:27, 3 October 2012 (UTC)Reply

Same on MW 1.12=[edit]

I can add categories (however not as obvious as initially though) but no confirmation or page refresh or anything. The newly added category only appears when the page has been saved.

However removing categories doesn't work at all. MW 1.12.0, PHP 5.1.2, MySQL 5.0.26

Cameron.moody 21:16, 1 July 2008 (UTC)Reply

Making this extension work with FCKEditor[edit]

If you added the FCKEditor to your wiki, this will not work for you. Please check out my blog for how I corrected it. teampoop.com this link is not working


Hi

I have modified a little ManageCategories to make it work but I still have the rich editor problem with FCKEditor. You seem to have made modifications that made it work but the page on you site doesn't exist any longer. Can you please help me with this.

Thanks in advance.

Agreed, not working for me and I have FCKEditor. Anyone have a solution? --Robinson Weijman 12:20, 27 September 2010 (UTC)Reply
Apparently not. So, don't install this extension if you have FCKEditor. --Robinson Weijman 08:45, 30 September 2010 (UTC)Reply


Solution[edit]

HI,

I found a way to use an FCKEditor and Wikipedia together, but for this situation I got to change ManageCategories program.

First step - Open the file managecategories.js and add the function:
function SetText(text){

        var oEditor = FCKeditorAPI.GetInstance( oFCKeditor.InstanceName ) ;
        oEditor.InsertHtml( "<br>" + text + "<br>" ) ;

}
Second Step - Change the functions insertCategoryTags1 to get like that:


function insertCategoryTags1() {

        for (var i=0; i<document.editform.categories.length; i++) {
                if (document.editform.categories.options[i].selected)
                SetText("[[Category:"+document.editform.categories.options[i].text+"]]");
        }

        document.editform.wpTextbox1.focus();

}
Third Step - Change the functions insertCategoryTags3 to get like that:
function insertCategoryTags3() {

        if(document.editform.newCategory.value != "enter new Category name")
                //document.editform.wpTextbox1.value += "[[Category:"+document.editform.newCategory.value+"]]";
                  SetText("[[Category:"+document.editform.newCategory.value+"]]");

        document.editform.wpTextbox1.focus();

}

Error after "Extension:Newest Pages" install[edit]

Following error:

Notice: Undefined variable: fname in /www/de/xyz/docs/extensions/managecategories/managecategories.php on line 155

Notice: Undefined variable: categorized in /www/de/xyz/docs/extensions/managecategories/managecategories.php on line 92

Notice: Undefined variable: categorized in /www/de/xyz/docs/extensions/managecategories/managecategories.php on line 98

Notice: Undefined variable: fname in /www/de/xyz/docs/extensions/managecategories/managecategories.php on line 155

Can anyone help?

While using namespaces[edit]

  • Same error message
    • Same Question
      • fresh MW 1.14 install

Hi, there are few faults in code... here is quick fix.

  • around line 84

if ( preg_match($reg,$editPage->textbox1) )$categorized = true;

replace with

if ( preg_match($reg,$editPage->textbox1) ){ $categorized = true; }else{ $categorized = false; }

  • in beginning of fnGetAllCategories function add following line:

$fname = 'Database::select';

Hope this helps :)


  ^Thank you!

Issue with category without pages[edit]

I manually added a category and in the page for the category I added a reference to a parent category. So the category exists and is in its parent category. I then go to create an actual page, but my new category is not listed in the drop down box. Any ideas? Or is that how the extension is supposed to work?

Error with Editor Tiny_MCE[edit]

Tiny MCE is derivate the FCKEditor but no solution...