Automatically accept Friend Request

Does anyone know how to default a friend request to accepted? I have a controlled user environment and need to automatically accept friend requests.

 

Thank you.

Quote · 14 Mar 2012

Down and dirty way:

** Disclaimer ** Any time you edit source code it makes upgrading a pain in the arse. In other words you will have to make this change after each upgrade for this to keep working ***

 

Open \list_pop.php and look for this around line 375


//create new friends request

$sQuery = "INSERT INTO `sys_friend_list` SET 

`ID` = '{$iProfileId}', `Profile` = '{$iMemberId}', `Check` = '0'";

 

Change it to this:

 

//create new friends request

$sQuery = "INSERT INTO `sys_friend_list` SET 

`ID` = '{$iProfileId}', `Profile` = '{$iMemberId}', `Check` = '1'";

 

Now any new friend request will be automatically accepted.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 14 Mar 2012

Thank you MScott. It worked great. I have noted the change on my modification list so I can remember to put it back after each upgrade.

 

I am also a Arvixe customer.

Quote · 16 Mar 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.