Accepting friend request from pop up

So I just noticed that if you have a pending friend request with a member and you roll your mouse over their avatar, you get the befriend button.  I will change this shortly to say accept friendship but in the mean time.

If you have a pending friend request with them and befriend them that way, there's not notification that they accepted your friend request until now......

 

in the file list_pop.php around line 407 find this

 

                    //send system alert
                    bx_import('BxDolAlerts');
                    $oZ = new BxDolAlerts('friend', 'accept', $iMemberId, $iProfileId);
                    $oZ->alert();

 

ADD THIS


###
#SteveSoft
#05-15-2012
#                               
             //-- send email notification --//
            $oEmailTemplate = new BxDolEmailTemplates();
            $aTemplate          = $oEmailTemplate -> getTemplate('t_FriendRequestAccepted') ;
            $aRecipient          = getProfileInfo($iMemberId);
       
            // passing all necessary data
            $aPlus = array(
                'Recipient'        => $aRecipient['NickName'],
                'SenderLink'    => getProfileLink($iProfileId),
                'Sender'           => getNickName($iProfileId),
       
            );

            // send notification
            sendMail( $aRecipient['Email'], $aTemplate['Subject'], $aTemplate['Body'], '', $aPlus );

            //--
#

And they will now get an email saying friendship accepted, IF a friend request is pending.

http://www.mytikibar.com
Quote · 15 May 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.