Extension talk:CategoryOnUpload
Add topic$wgCategoryOnUploadList doesn't work?
[edit]I have an array setup per the instructions, but it still just shows the entire category list when you try to upload. MW1.15.1
- only the development version supports the configuration setting $wgCategoryOnUploadList.
- Thanks for the reply. :) Do you know if the svn version will work on MW1.15.1 or is it only tested on 1.16a?
- It worked on my MW1.15.1 setting.
Also didn't work on my MW1.15.1. Maybe the description page should contain a note about that issue. It reads as if it would work from 1.11 while in fact it doesn't.--Schmelzle 09:35, 28 January 2010 (UTC)
Multiple Categories?
[edit]Is it possible to allow for selection of multiple categories? I would imagine this would require javascript to add entry fields and then put them into some foreach loop. My thoughts were going to be to make the drop-down list a copy/paste function which will add them to a text-entry field (thus people could, supposedly, add their own new categories that way). Has anyone been working on Multiple fields with this?
Thanks Jshorb 21:47, 25 January 2010 (UTC)
- Perhaps simply add an option for multiple selection drop-down boxes? ie: $wgCategoryOnUploadNumber = 3 could result in 3 drop downs with which to choose from 3 different categories? --D0li0 02:29, 28 September 2010 (UTC)
Problems with MW 1.16alpha
[edit]The extensions seems not to work in MW 1.16alpha. The following error message appears: Fatal error: Cannot access protected property SpecialUpload::$mComment in ../extensions/CategoryOnUpload/CategoryOnUpload.php on line 179
Do you have an idea what is the reason for it? Thanks for support! --77.179.215.216 16:32, 15 March 2010 (UTC) I had a user report seeing this error to me, but I can't recreate it... MW 1.16beta 2. Anyone know the cause or the fix?--84.93.16.201 07:32, 1 June 2010 (UTC)
Solution Found!
[edit]I kept getting this same error: Fatal error: Cannot access protected property SpecialUpload::$mComment in ../extensions/CategoryOnUpload/CategoryOnUpload.php on line 180
After debugging this awesome script for some time I followed the error all the way back to the SpecialUpload.php file. On line 38 you will see that the variable: $mComment is set to be protected. To fix this simply change it to public. Please note that I'm not entirely sure what this change will affect. I don't know if it opens the engine up to any security risks or not, so please proceed with caution when changing this setting.
EnlightenedShadow 03:57, 4 October 2010 (UTC)
What about for pages?
[edit]Great this works for images and other file uploads but any chance of getting the same functionality when creating new pages? --Robinson Weijman 11:05, 5 November 2010 (UTC)
Safety Check for Upload Categories?
[edit]The option $wgCategoryOnUploadAllowNone = false; is a good start to prevent users from uploading files into a "void". But is there a possibility to bring up a warning when no category is allowe and still is been selected?
In short: I want the default setting on "-" but warn my users if they forget on specifying a category.
I am with you
[edit]same request from me