Topic on Extension talk:Nuke

Mass delete from multiple users

3
Naught101 (talkcontribs)

I changed the first part of the listForm method to allow multiple users, as a comma separated values list. Works pretty well. I don't know if commas can be part of a username, if they can, I guess you'll just have to manually delete those pages, or change the "explode()" separator (the first argument):

function listForm( $usernames, $reason ) {
  global $wgUser, $wgOut, $wgLang;

  $users = explode(",", $usernames);
  $pages = array();
  foreach ($users as $user) {
    $pages += $this->getNewPages( $users );
  }

  if( count( $pages ) == 0 ) {
    $wgOut->addWikiMsg( 'nuke-nopages', $usernames);
    return $this->promptForm();
  }
  $wgOut->addWikiMsg( 'nuke-list', $usernames );
....
Gettodachopper (talkcontribs)

Hi, thanks for that, I've updated the SpecialNuke_body.php with the above but when I try it out it seems to bunch all of the usernames as one. I've tried separating with commas, semi colons, with and without spaces but with no luck. Is there anything else I need to do other than changing SpecialNuke_body.php? Is there any other way I should be entering the usernames into the mass delete box?

This post was hidden by Kghbln (history)
Reply to "Mass delete from multiple users"