Hi!
RE: DOLPHIN 7.0.4
For those who are still looking for the Reject Button on the Admin Members page and wish to be able to reject certain new members with the Rejection Letter going out - HERE IS THE SOLUTION:
You will need to create one Language Key and the only file you need to update is /administration/profiles.php
1. In profiles.php find on Line 49 or near
//--- Process Actions ---//
if(isset($_POST['adm-mp-activate']) && (bool)$_POST['members']) {
$GLOBALS['MySQL']->query("UPDATE `Profiles` SET `Status`='Active' WHERE `ID` IN ('" . implode("','", $_POST['members']) . "')");
$oEmailTemplate = new BxDolEmailTemplates();
foreach($_POST['members'] as $iId) {
createUserDataFile((int)$iId);
reparseObjTags('profile', (int)$iId);
$aProfile = getProfileInfo($iId);
$aMail = $oEmailTemplate->parseTemplate('t_Activation', array(), $iId);
sendMail($aProfile['Email'], $aMail['subject'], $aMail['body']);
$oAlert = new BxDolAlerts('profile', 'change_status', (int)$iId, 0, array('status' => 'Active'));
$oAlert->alert();
}
echo "<script>window.parent." . BX_DOL_ADM_MP_JS_NAME . ".reload();</script>";
exit;
}
2. Copy it and paste directly after. Then change all references to "activation" to "rejection". OR, simply paste the following code
// REJECT START
if(isset($_POST['adm-mp-reject']) && (bool)$_POST['members']) {
$GLOBALS['MySQL']->query("UPDATE `Profiles` SET `Status`='Rejected' WHERE `ID` IN ('" . implode("','", $_POST['members']) . "')");
$oEmailTemplate = new BxDolEmailTemplates();
foreach($_POST['members'] as $iId) {
createUserDataFile((int)$iId);
reparseObjTags('profile', (int)$iId);
$aProfile = getProfileInfo($iId);
$aMail = $oEmailTemplate->parseTemplate('t_Rejection', array(), $iId);
sendMail($aProfile['Email'], $aMail['subject'], $aMail['body']);
$oAlert = new BxDolAlerts('profile', 'change_status', (int)$iId, 0, array('status' => 'Rejected'));
$oAlert->alert();
}
echo "<script>window.parent." . BX_DOL_ADM_MP_JS_NAME . ".reload();</script>";
exit;
}
// REJECT END
3. Find the string: 'adm-mp-activate' => _t('_adm_btn_mp_activate'),
4. Paste above it (or wherever you want the button to be): 'adm-mp-reject' => _t('_adm_btn_mp_reject'),
5. Create Lang Key - _adm_btn_mp_reject
YOU ARE SORTED!
Best!
Eugene