Loading AI tools
From Wikipedia, the free encyclopedia
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. |
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)
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)
<?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)
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)
What happened here? —Theopolisme 22:35, 5 December 2012 (UTC)
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)
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)
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)
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 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)
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)
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 (Talk•Sign) 16:45, 18 December 2012 (UTC)
The Technical Barnstar | |
Thanks for https://toolserver.org/~chris/template.php NVanMinh (talk) 06:59, 18 December 2012 (UTC) |
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)
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)
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.