In buddylist 1 there was an option to auto add a default buddy.

ANy chance we could have this feature on Buddylist2?? If possible, why not have say 3 default buddies.

thanks

CommentFileSizeAuthor
#1 cfg.txt904 bytesnodestroy

Comments

nodestroy’s picture

StatusFileSize
new904 bytes

hi,

there is a easy and high-configureable way to do such things. when you install token and workflow-ng, you can import the attached config, change the custom php code via workflow-ng user interface - and you can add as many default buddies as you want.

ask if you have problems with configuring this

// load user to add
$default = user_load(array('uid' => 1));

// turn off notification 
$buddyinfo = array();
$buddyinfo['sendnotification'] = FALSE;

// add buddy connenction
buddy_api_add_oneway($account, $default, $buddyinfo);
buddy_api_add_oneway($default, $account, $buddyinfo);