Ok this is an easy way to give users the option to opt out of receiving Match Notifications (Cupid Mail)
The Match System will still work for them but they will be able to Opt Out of receiving the Match Notifications.
Step 1. Create a new block in Profile Fields
Goto
Admin Panel - Builders - Profile Fields - Edit Profile, select Owner
From Inactive Blocks drag up a NEW BLOCK and rRename to "Mail Settings"
Then from Inactive Items drag up a NEW ITEM and place under Mail Settings Block
Click on the NEW ITEM to open Edit Box, then in System Name type MatchAlertMails and in Caption type Receive Match Alert Mails and in Type choose selector
Then click on the Advanced tab and set Selector control to Radio buttons then in Possible values type Yes and on the next line type No (note: must be one word/value per line) then in Default value type Yes
Step 2. Edit /inc/match.inc.php (Backup this file first)
This will tell dolphin only to send Match Notifications only to members that have not opted out.
Find: around line 67
$aProfiles = $oDb->getColumn("SELECT `ID` FROM `Profiles` WHERE `Status` = 'Active' AND `ID` != $iProfileId $sCondSort");
And replace with:
$aProfiles = $oDb->getColumn("SELECT `ID` FROM `Profiles` WHERE `Status` = 'Active' AND `MatchAlertMails` = 'Yes' AND `ID` != $iProfileId $sCondSort");
Step 3. Setting defaults in Database to MatchAlerts column in Profiles table (Backup of Database recommended first)
Run this command in phpMyAdmin
UPDATE `Profiles` SET `MatchAlertMails`='Yes' WHERE `MatchAlertMails`=''
And that's it
Now that was so easy. Why its not a default feature i would never know!
Dave....