User talk:Chris G/Archives/2011/April
This is an archive of past discussions about User:Chris G. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
New upload function for botclasses.php
Now that MediaWiki supports API uploading, I rewrote the upload function in botclasses.php to use the API:
function upload ($page,$file,$desc='') {
if ($this->token == null) {
$this->token = $this->getedittoken();
}
$params = array(
'filename' => $page,
'comment' => $desc,
'text' => $desc,
'token' => $this->token,
'ignorewarnings' => '1',
'file' => '@'.$file
);
return $this->query('?action=upload&format=php',$params);
}
This is much more reliable than the old method and also gives you real status messages. Can you replace the old function with this one in botclasses.php?
Thanks! Kaldari (talk) 05:38, 16 March 2011 (UTC)
- Done --Chris 10:16, 16 March 2011 (UTC)
File:Wikipedia-The_Missing_Manual_0303.png
I just got a note from your bot regarding the above file. Could you help me out here by specifying exactly what is wrong? -- John Broughton (♫♫) 22:01, 19 March 2011 (UTC)
- The copyright tag was removed (hence the bot tagged it for deletion), however this has since been reverted. --Chris 10:56, 21 March 2011 (UTC)
- Thanks; I'll check the page history next time before bothering someone. -- John Broughton (♫♫) 12:32, 23 March 2011 (UTC)
The Signpost: 21 March 2011
- WikiProject report: Medicpedia — WikiProject Medicine
- Features and admins: Best of the week
- Arbitration report: One closed case, one suspended case, and two other cases
- Technology report: What is: localisation?; the proposed "personal image filter" explained; and more in brief
Files for Jyukai (band) songs deleted by orphaned image deletion bot
Hi Chris G,
Back in August of last year, all of the articles on songs for Jyukai (band) were redirected to the article on the band. While the articles were redirected, the files used on those articles were deleted by the orphaned image deletion bot. However, four of the redirects were undone soon afterwards, but the files were never restored. I'm not totally sure whether the articles on the songs should be redirected or not (the claim to notability for them seems to be that they were used as theme songs for TV series). However, given that they have remained as articles for the past 7 months without anyone re-redirecting them, I was thinking the files used on them should probably be restored. The files in question and the articles where they had been used are File:Hoshi akari.jpg (used on Hoshi Akari), File:Koibito doushi.jpg (used on Koibito Doushi), File:Anata ga ita mori.jpg used on (Anata ga Ita Mori), and File:Ainohoshi.jpg (used on Ai no Hoshi/Hanamuke no Melody). Three of the articles have since been edited to remove the redlinked files, but I would edit the articles to put the files back in if you restore them. Also, I want to mention that I wasn't the person who uploaded the files, so I can't just re-upload them. Anyway, hopefully this isn't too much trouble, and hopefully this won't cause problems if someone decides to redirect the articles again (I'm assuming the bot would just take care of the images again in that case). Calathan (talk) 06:23, 28 March 2011 (UTC)
- Done --Chris 11:51, 28 March 2011 (UTC)
- Thanks! Calathan (talk) 12:44, 28 March 2011 (UTC)
The Signpost: 28 March 2011
- News and notes: Berlin conference highlights relation between chapters and Foundation; annual report; brief news
- In the news: Sue Gardner interviewed; Imperial College student society launched; Indian languages; brief news
- WikiProject report: Linking with WikiProject Wikify
- Features and admins: Featured list milestone
- Arbitration report: New case opens; Monty Hall problem case closes – what does the decision tell us?
The Signpost: 4 April 2011
- News and notes: 1 April activities; RIAA takedown notice; brief news
- Editor retention: Fighting the decline by restricting article creation?
- WikiProject report: Out of this world — WikiProject Solar System
- Features and admins: The best of the week
- Arbitration report: AUSC appointments, new case, proposed decision for Coanda case, and motion regarding CU/OS
- Technology report: Bugs, Repairs, and Internal Operational News
Error by User:Orphaned image deletion bot
Please see this deletion (http://en.wikipedia.org/w/index.php?title=Special:Log&page=File%3ALogo+POP+PLUS.jpg) by the bot and notice that it was not 7 full days as advertised. --After Midnight 0001 01:42, 5 April 2011 (UTC)
- I've added a few extra checks to help stop this happen in the future (there was some confusion with the discrepancy in dates). Although, by the looks of things the image will be deleted again anyway if no one adds it to an article soon. --Chris 09:46, 5 April 2011 (UTC)
- Yep, I figured it was because of the date tag being applied incorrectly, but also figured it was something nyou would want to know about. Thanks for taking the time to make the improvement. --After Midnight 0001 01:35, 6 April 2011 (UTC)