^_^ Actually I had an alternative idea... The big issue requiring a 
batch hiding or quick hiding, is new users. Just tell a janitor or staff 
or two to get rid of all the old ones and they won't cause issues.
Other than typing in a user's name into some page like 
[[Special:HideUser]] or [[Special:DeleteUser]] that page could also have 
a list of the 50 or so most recently created users. ^_^ Each one with a 
checkbox beside. So visit, check off the bad names, then hit submit, and 
all of them disappear.

Just so that the techs don't go doing something ugly like using: user1, 
user2, etc... As names, which ends up real ugly in the coding. Output 
like this would work...
<ul>
    <li><input type="checkbox" name="deleteUser[]" value="User1" /><a 
href="/wiki/User:User1">User1</a></li>
    <li><input type="checkbox" name="deleteUser[]" value="User1" /><a 
href="/wiki/User:User2">User2</a></li>
    <li><input type="checkbox" name="deleteUser[]" value="User1" /><a 
href="/wiki/User:User3" class="new">User3</a></li>
    <li><input type="checkbox" name="deleteUser[]" value="User1" /><a 
href="/wiki/User:User4">User4</a></li>
    <li><input type="checkbox" name="deleteUser[]" value="User1" /><a 
href="/wiki/User:User5">User5</a></li>
</ul>
It's not a common known thing, I didn't even know about it till I looked 
at the code for [[Special:Userrights]]. But when you use [] at the end 
of a GET/POST name it is returned as an array in PHP. Nicelyenough, 
MediaWiki's $wgRequest->getArray( 'deleteUser' ) would nicely output an 
array. In this case, that array would be a list of all the usernames 
which were checked off.
^_^ So a little:
foreach( $wgRequest->getArray( 'deleteUser' ) as $user )
    $this->deleteUser( $user );
or something like that would create a batch delete of all the users that 
were checked off

Your hide idea could be used on Special:Listusers though. But putting 
that with user links might have some issues to it... That's probably 
something Users scripts might handle better.
Heh... though if you factor in YUI, you could probably create a script 
that lets you drag usernames into a trash bin, rofl...

~Daniel Friesen(Dantman) of The Gaiapedia, Wikia Graphical Entertainment 
Project, and Wiki-Tools.com

Leon Byford wrote:
> On the interface side of things, I think that there should be a little 
> link next to every username on the wiki that says something like 
> '[hide]'.  Clicking this button will tell the servers to hide this 
> username in all entries on all wikis.  Maybe we can even use AJAX so 
> that you can quickly just click links consecutively.  Actually, I 
> think that the link should be hidden but a button should be placed on 
> each page which reveals all the [hide] links.  That way there's no 
> accidentally clicking on those links.  That gives me a thought.  What 
> if '[hide]' turns into '[unhide]' when clicked so that if the '[hide]' 
> buttons is accidentally pressed, it can be reversed.  That's my 
> thoughts anyway...
>
> -- 
> Leon Byford <http://www.wikia.com/wiki/User:Leon2323>
> Editor-in-chief of The Daily Edit < 
> http://www.wikia.com/wiki/The_Daily_Edit>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wikia-l mailing list
> [email protected]
> http://lists.wikia.com/mailman/listinfo/wikia-l
>   
_______________________________________________
Wikia-l mailing list
[email protected]
http://lists.wikia.com/mailman/listinfo/wikia-l

Reply via email to