default Admin as a friend worked on 6 but not on

hello everyone

6.1 to 6.9 I had a code that made admin into a friend for all members upon joining...

members would contact me with questions and also would check out my profile to see what could be done..

i guess 7.1 came with a new join.php which was were the code was placed.

can someone make it work on 7.1?

thanks

$dump = db_res("INSERT INTO FriendList SET `ID` = '{$iMemID}', `Profile` = 1, `Check` = 1");


Quote · 26 Dec 2012

http://www.boonex.com/forums/topic/Auto-Friend-for-D7.htm

Quote · 27 Dec 2012

 

http://www.boonex.com/forums/topic/Auto-Friend-for-D7.htm

 OMG how did I miss that

this worked for me on 7.1

thanks prolaznik 

 /inc/classes/BxDolJoinProcessor.php

around line 248 find

$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]);
list($iId1, $sStatus1) = $oPC->createProfile($aProfile1);

add this code after

$dump = db_res("INSERT INTO sys_friend_list SET `ID` = '{$iId1}', `Profile` = 1, `Check` = 1");

1 is the id of your first registered member that would be your admin account

Quote · 27 Dec 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.