(2010-01-17, 06:35 PM)querschlaeger Wrote: (2010-01-17, 05:43 PM)Skiilz Wrote: Yes I use this. But instead of the email notification is possible to add one option that when someone add you to his buddy list you get a message like when you receive a PM?
Ah, now I understand you. Yes, I will include this in next version.
Great!
Thank you querschlaeger.
Also.. In the new version we don't have the "Manage your buddies" link anymore... How do I add it?
if($mybb->user['uid']!=0){
$user_buddys=explode(',',$mybb->user['buddylist']);
if($mybb->user['uid']==$memprofile['uid'])
$add_buddy='<tr><td class="trow2"'.$colspan.' align="right"><a href="'.$mybb->settings['bburl'].'/usercp.php?action=editlists">'.$lang->profilebuddies_manage_buddies.'</a></td></tr>';
elseif(!in_array($memprofile['uid'],$user_buddys))
$add_buddy='<tr><td class="trow2"'.$colspan.' align="right"><a href="'.$mybb->settings['bburl'].'/usercp.php?action=do_editlists&my_post_key='.$mybb->post_code.'&add_username='.htmlspecialchars_uni($memprofile['username']).'">'.$lang->sprintf($lang->profilebuddies_add_buddy,htmlspecialchars_uni($memprofile['username'])).'</a></td></tr>';
}