Hope you are all having a wonderful day!
I have seen many problems and complaints from users that want to export users but they don't want the blacklisted or unconfirmed users in this export file, the csv.
I have made a small hack that will allow for this:
The file I edited was admin/export.php
Round about line 38 you will see this:
- Code: Select all
case 'all':
if ($list) {
$querytables = $GLOBALS['tables']['user'].' user'.', '.$GLOBALS['tables']['listuser'].' listuser';
$subselect = ' and listuser.userid = user.id ';
} else {
$querytables = $GLOBALS['tables']['user'].' user';
$subselect = '';
}
I then changed this line
- Code: Select all
$subselect = '';
to
- Code: Select all
$subselect = ' and user.blacklisted = 0 and user.confirmed = 1 ';
This then exports a clean list with ONLY confirmed and non blacklisted users
I will refine this a little later on to provide you with a tick box to export only blacklisted or un confirmed users.
Please let me know if this works for you,
Happy days to you fine peeps!
Wins