User talk:Chris G/Archives/2012/December

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Occupy Wall Street and Jimmy Savile

I've noticed that RfCbot seems to be stuck in a loop reporting that it is removing these two items from various pages. I'm pretty sure no serious damage has been done, but I thought I'd mention it. Formerip (talk) 01:05, 25 November 2012 (UTC)

Thanks for reporting this. That should be fixed now. Sorry for the late response; I thought I replied to this earlier. --Chris 05:29, 1 December 2012 (UTC)

massblock.php

Hello!

I hope you will have time and opportunity to look into my issue: I've tried to run this script and it works ok for me except for one feature - when I set $reblock = false; it still puts blocks over already banned people. What am I doing wrong?

Best regards, Rubin16 (talk) 15:48, 3 December 2012 (UTC)

Ha, I wrote that so long ago, I'm always amazed to discover people actually use those scripts. It looks to be a bug in the Mediawiki API -- this should fix it:
<?php
/** massblock.php - blocks users.
 *  Copyright (C) 2008  Chris Grant - http://en.wikipedia.org/wiki/User:Chris_G
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *   
 *  Developers (add your self here if you worked on the code):
 *	Cobi  - [[User:Cobi]]    - Wrote some of botclasses.php
 *  	Chris - [[User:Chris_G]] - Wrote up the main code
 **/

/* Setup my classes */
include('botclasses.php');
$wiki      = new wikipedia;
$wiki->url = 'http://en.wikipedia.org/w/api.php';

/* All the login stuff */
$user = 'Chris G';
include('adminpass.php');
$wiki->login($user,$pass);
unset($pass);

/* The list of users we want to block, seperated by line breaks. */
$userlist = "";

/* Or block all the users created by this account. */
$account = "";

/* If the user is already blocked should we overright the current block settings. */
$reblock = true;

/* Work out all the accounts to block. */
if (empty($account)) {
	$users = explode(chr(10),$userlist);
} else {
	$x = $wiki->query('?action=query&list=logevents&letype=newusers&lelimit=500&leuser='.urlencode($account).'&format=php');
	foreach ($x['query']['logevents'] as $y) {
		$users[] = substr(5,$y['title']);
	}
}

/* Now block all those users. */
foreach ($users as $u) {
	if ($reblock) {
		$wiki->block($u,'abuse','infinite','autoblock|noemail|nocreate|reblock');
	} else {
		/* Double check that the user isn't already blocked - API Bug */
		$x = $wiki->query('?action=query&list=users&format=php&usprop=blockinfo&ususers=' . urlencode($u));
		if (!isset($x['query']['users'][0]['blockid'])) {
			$wiki->block($u,'abuse','infinite','autoblock|noemail|nocreate');
		}
	}
}

?>

--Chris 13:52, 4 December 2012 (UTC)

  • Your scripts are highly ranked by Google, so, it's not strange that people discover them :) Thanks a lot, no one to massblock at the moment and I can't check - but anyway, thanks again :) Rubin16 (talk) 15:48, 4 December 2012 (UTC)

RfC bot: number of topics

Chris, I notice that when I add topics to an RfC (bio, econ, hist etc), it will only let me list four. Will the bot only list four, or is it just the first four that are visible on the RfC/talk-page template? Is there a way to fix that so that the template lists as many as people want to add? SlimVirgin (talk) 23:11, 30 November 2012 (UTC)

RfC bot will recognise all the topics you add, its just the template won't display them all. Currently the template will only show four topics, we can increase that, but there will always be a fixed limit. i.e. While the bot can recognise an infinite number of topics, due to the limitations of templates, there will always be a hard limit on the number topics that the template can show. --Chris 03:08, 1 December 2012 (UTC)
Thanks for the reply. It would be good if either the template could be changed so that it displays all the topics an editor wants to add (there are currently 14), or says that not all the topics will be displayed, but that the RfC will still be added to those pages. I've seen editors remove the last few less important topics because they believe the RfC bot will only let them include four. SlimVirgin (talk) 21:42, 1 December 2012 (UTC)
I've upped the limit to 10 -- that should be more than enough. We don't want people over categorising RfCs, because that creates problems. --Chris 08:13, 2 December 2012 (UTC)
Thanks, that's much clearer. SlimVirgin (talk) 03:07, 6 December 2012 (UTC)

The Signpost: 03 December 2012

RfC bot: huh?

What happened here? —Theopolisme 22:35, 5 December 2012 (UTC)

Its a bit of a quirk in the order RfC Bot does things. The RfC was removed as expired because the timestamp was "17:56, 2 November 2012 (UTC)", from over a month ago. I've faked a new timestamp, so RfC Bot should leave it alone. --Chris 07:55, 6 December 2012 (UTC)
Thanks! —Theopolisme 11:52, 6 December 2012 (UTC)

The notoriuos wiki troll ( Iaaasi) returned

Hello!

The well known chauvinist romanian wiki-troll User:Iaaasi returned (with a new croatian fake identity) He is now active alias user: Irji2012 He is often active in Hungarian-related aricles, he enjoy edit-warring deleting good sources and sentences from important articles, and he like to break the rules of wiki even 3 revert rule. Can you arrange about this notorious wiki-troll? Thank you! Peter. — Preceding unsigned comment added by 84.0.49.97 (talk) 11:21, 8 December 2012 (UTC)

Please comment on Wikipedia:Village pump (proposals)

Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Wikipedia:Village pump (proposals). Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. RFC bot (talk) 21:16, 8 December 2012 (UTC)

GABOT Review count

I like that GABOT counts the reviews that people have done. Where does it get the data from? What is being counted in total - nominations as well as reviews? I've been trying to count my GA reviews - but I must have miscounted, as I have found 143 while GABOT has 146. SilkTork ✔Tea time 00:31, 9 December 2012 (UTC)

The Signpost: 10 December 2012

Please comment on Template talk:Trademark

Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Template talk:Trademark. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. RFC bot (talk) 11:15, 12 December 2012 (UTC)

Shahrukh Khan (to GA bot)

Shahrukh Khan has been nominated for GA see the Talk page please include that in WP:GA nominations#Theatre, dance, opera and other media Thank You Greatuser (talk) 04:19, 13 December 2012 (UTC)

GA bot

Hey. Seems like the bot is going a bit crazy. it removed an entire section from the GAN page and performed a series of strange edits after that. Could you please check if something happened? Thanks. — ΛΧΣ21 19:29, 17 December 2012 (UTC)

Nevermind, I realized what happened and fixed it. Regards. — ΛΧΣ21 19:41, 17 December 2012 (UTC)

Small issue on WP:GAN

Hi there,

I recently reviewed Lemmings (video game). The WP:GAN list seems to have been updated incorrectly and now shows it as:

Lemmings (video game) (edit|talk|history|links|watch|logs) (discuss review) Unknown Error parsing timestamp.

I'm not sure if this is a bot error or something I may have done to cause it. Cheers Cabe6403 (TalkSign) 16:45, 18 December 2012 (UTC)

You removed too much info in your edit. All you needed to do was change status= to status=onhold -- anyway, all fixed --Chris 17:01, 18 December 2012 (UTC)
Ah, no worries, thanks for fixing it :) Cabe6403 (TalkSign) 19:41, 18 December 2012 (UTC)

The Signpost: 17 December 2012

A barnstar for you!

Vitruvian Barnstar Hires.png The Technical Barnstar
Thanks for https://toolserver.org/~chris/template.php NVanMinh (talk) 06:59, 18 December 2012 (UTC)
You're welcome. Thanks for the barnstar! --Chris 17:01, 18 December 2012 (UTC)
I think, now after the comment by Anomie, one could do a "reverse" counter. One number is the jarry-number (e.g. 3000) with all transcludes, the other, the number of only the direct includes (e.g. 2600). Your with-redirect-number was 3400. With your tool one could compute the value. Now, there is now way that I can see. I also would like to restrict it to the article space, so one could see how many articles directly and indirectly transclude "Infobox settlement".
It is the number one Infobox in all WP, and I would like to find out more about its usage. NVanMinh (talk) 08:06, 21 December 2012 (UTC)
Do you mean like this? --Chris 11:53, 23 December 2012 (UTC)

Please comment on Wikipedia talk:Manual of Style/Icons

Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Wikipedia talk:Manual of Style/Icons. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. RFC bot (talk) 06:18, 24 December 2012 (UTC)

The Signpost: 24 December 2012

Please comment on Wikipedia talk:Files for deletion

Greetings! You have been randomly selected to receive an invitation to participate in the request for comment on Wikipedia talk:Files for deletion. Should you wish to respond to the invitation, your contribution to this discussion will be very much appreciated! If in doubt, please see suggestions for responding. If you do not wish to receive these types of notices, please remove your name from Wikipedia:Feedback request service. RFC bot (talk) 05:17, 30 December 2012 (UTC)