Forum:Image category

Is there a way that I can automatically add áll images to the Image category? Tedjuh10 - Talk 13:43, 6 June 2009 (UTC)


 * There is no need for that, Special:PrefixIndex/File: lists them all. 14:22, 6 June 2009 (UTC)
 * There's also Special:UncategorizedFiles. --Michaeldsuarez (Talk) (Deeds) 15:00, 6 June 2009 (UTC)


 * Still none are the answer... he wants to categorize them so they can be seen it in an alphabetic order be DPL or category pages, and oppose to some project images are categorize at the same as the articles so both are display when browsing the category pages (well thats my bet as thats my intention to apply some day to the dofus images). The fastest and easiest way i can think is by using a bot. The second best thing is to go to the image use the "end" key in your keyboard and use the add category option in monaco will be faster than my third option that is to "edit" waiting for loading then copy/paste or type down and then saving and waiting for load --


 * Yeah, but the problem is... we have about 250 images... I have a bot, well... the files, and the family / user config files, but I don't know how to use it. Any suggestions? Tedjuh10 - Talk 22:14, 6 June 2009 (UTC)


 * I'm guessing you are using the Pywikipedia bot, so use the category script (the command is ). By default, it'll only show up to 60 images, so increase the limit on "pagegenerators.py", line 325 ("UnCategorizedImageGenerator"). If you want to have them sorted in different subcategories, you should first move to all images to a temporary category, then use the replace script. You won't have to go through all images if you've skipped one (unless you're willing to wait a day for Special:UncategorizedFiles). I don't know if you've ever used a bot on Wikia, but just in case, make sure that you've fixed the credits line, and get the bot flagged on your wiki. --D. (talk · contr) 23:13, 7 June 2009 (UTC)


 * And where can I give that command (I've never used a bot before). Tedjuh10 - Talk 14:24, 9 June 2009 (UTC)


 * Go here. --D. (talk · contr) 15:20, 9 June 2009 (UTC)


 * When I try to give the login command, it says NamError: (The password I inserted) is not defined. Tedjuh10 - Talk 19:18, 9 June 2009 (UTC)


 * Are you using Python v.3.0.1? You must use v.2.6.2 for the bot to work. Otherwise, I don't know what the problem is if you haven't modified any files. --D. (talk · contr) 20:33, 9 June 2009 (UTC)
 * Actually, post your user-config.py. --D. (talk · contr) 20:38, 9 June 2009 (UTC)

import os, re, sys family = 'runescape' mylang = 'nl' usernames['runescape']['nl'] = 'RSWelcomeBot' minthrottle = 1 maxthrottle = 4 put_throttle = 4 noisysleep = 2.0

Here it is. Tedjuh10 - Talk 14:39, 10 June 2009 (UTC)
 * I just tried it, and it worked for me (I got the proper login text). I don't suppose the family file is the problem. Best thing to do is to reinstall all Pywikipedia files (make a backup of user-config and your family file). I can't really think what the problem would be. :/ --D. (talk · contr) 17:18, 10 June 2009 (UTC)


 * Maybe the mistake is in the login file? I made some changes (I only changed my name and pw there) —This unsigned comment is by Tedjuh10 (talk • contribs) . Please sign your posts with !
 * Oh that's why. login.py should not be modified. All logins/passwords are contained in your user-config. Replace your login.py by a clean one. --D. (talk · contr) 18:33, 10 June 2009 (UTC)


 * Allright, now it's working, but now it asks for my password. I can't type anything, even though it says I must. Tedjuh10 - Talk 18:52, 10 June 2009 (UTC)
 * That's normal: type it even if nothing shows up. --D. (talk · contr) 18:54, 10 June 2009 (UTC)
 * I forgot to say but it will also remember it, so you don't have to do  again after the first time. --D. (talk · contr) 18:57, 10 June 2009 (UTC)


 * Thanks! Everything works now! Wouldn't have done this without you! - I forgot to login again :P.


 * Something's wrong again; I just added that credit line, and now it says: unident doesn't match other indentent levels. Tedjuh10 - Talk 19:44, 10 June 2009 (UTC)
 * Make sure you've used the tab key and not the spacebar key when making indent. It'll look like this (on NotePad++). Each dotted vertical line is an indent made by the tab key.--D. (talk · contr) 20:17, 10 June 2009 (UTC)


 * It's like on the image, but it appears red and it still doesn't work. Tedjuh10 - Talk 14:45, 11 June 2009 (UTC)
 * Double check where you've placed the code, and that you have not modified anything else in the file. The code on the Memory Alpha wiki has a space added before each line; make sure you have removed them. --D. (talk · contr) 16:56, 11 June 2009 (UTC)

It still doesn't work. Here's a screen Tedjuh10 - Talk 19:23, 11 June 2009 (UTC)
 * There should be no line break between  and  . The latter must be exactly below the comment line, again like this (I don't have the comment line because I've removed it). --D. (talk · contr) 19:43, 11 June 2009 (UTC)


 * Why are these things so god****** annoying. It still doesn't work... (My mistake, at the print screen I accidentialy pressed enter, in the before ones there wasnt a enter, still doesn't work. Tedjuh10 - Talk 20:04, 11 June 2009 (UTC)
 * Download the file here and replace it. It's the one I use, so it should work. --D. (talk · contr) 20:28, 11 June 2009 (UTC)


 * Allright. It works now, but now it says, when I type the command: not enough arguments for format string. Ich brauche hilfe! Ik heb hulp nodig! I need help! Tedjuh10 - Talk 20:45, 12 June 2009 (UTC)
 * Which command, the category one? It's . If you have modified pagegenerators.py, download the one I have here (1000 images limit). I don't know if you've modified any other files, so if you did, replace them (except for the wikipedia.py that I've uploaded). I don't suggest modifying them unless you know what you are doing. --D. (talk · contr) 22:16, 12 June 2009 (UTC)


 * Nope. It doesnt work, [here] is a screen. Tedjuh10 - Talk 10:20, 13 June 2009 (UTC)
 * You must only type  (you've typed  ). --D. (talk · contr) 12:54, 13 June 2009 (UTC)


 * But then it says that that isn't a known command. Tedjuh10 - Talk 13:13, 13 June 2009 (UTC)
 * Try, or   (category.py). The command I gave you worked for me though. :/ --D. (talk · contr) 13:20, 13 June 2009 (UTC)

Nope, I've tried everything. I'm getting so tired of this.... Tedjuh10 - Talk 13:27, 13 June 2009 (UTC)
 * My bad, I read too fast. I've tried to run the script on your wiki, it doesn't work for me either. It works for other English wikis though. I have no idea why, so I can't help you on this. However, you can try this other way:
 * It'll add whatever text is in "text". It's not as effective as category.py, since it's not gonna recognize if the category is already in Images (like if you've messed up), so there's possibilities of duplicate categories if you stop the bot and run again before the Special:UncategorizedFiles has been cached next day. --D. (talk · contr) 14:57, 13 June 2009 (UTC)
 * It'll add whatever text is in "text". It's not as effective as category.py, since it's not gonna recognize if the category is already in Images (like if you've messed up), so there's possibilities of duplicate categories if you stop the bot and run again before the Special:UncategorizedFiles has been cached next day. --D. (talk · contr) 14:57, 13 June 2009 (UTC)


 * Doesn't work either. I've just replaced category and it still doesnt work. Ill contact Uberfuzzy. Tedjuh10 - Talk 16:13, 13 June 2009 (UTC)
 * No idea. I stopped using that bot framework months ago. I got fed up with its support, inconsistent parameter support/formatting between modules, and having to patch a bunch of files to get it to work on Wikia (it uses old assumptions that you have to be in the 'sysop' group to do things, where as helpers and staff at wikia have those same privileges). Once they move to that API branch they've been working on, finally drop most if not all of their screenscraping/special:export hacks, most of their problems will go away. so, yeha, i have no idea whats causing your problem with that script. have you tried asking in their irc channel? or even posting a bugticket at their sourceforge project? they actually do try to help via those. --Uberfuzzy 20:44, 13 June 2009 (UTC)