This plugin enables users to have buddies/friends/followers just like in many popular social networks and blogging systems.
The users are able to add/remove others as their friends. The lists of friends added by user and also who added him can be displayed.
Also, you can have “enemies” along with friends - for fun or for something useful.
The plugin is using standard database table, so it’s 100% compatible with Buddies/Blocked list that can be found under Personal messages in user’s Control Panel.
{exp:buddies:add subject_id=”%member_id_1%” object_id=”%member_id_2%” type=“buddy”}
Add a member as friend of another member.
subject_id - member_id of user who wants to add a friend
object_id - member_id of the user to be added as friend
type - can be omited. Defaults to ‘buddy’ but you can set it to ‘blocked’ to work with blocked members instead
{exp:buddies:remove subject_id=”%member_id_1%” object_id=”%member_id_2%” type=“buddy”}
Remove a member from friends of another member.
subject_id - member_id of user who wants to remove a friend
object_id - member_id of the user to be removed from friends
type - can be omited. Defaults to ‘buddy’ but you can set it to ‘blocked’ to work with blocked members instead
{exp:buddies:check subject_id=”%member_id_1%” object_id=”%member_id_2%” type=“buddy”}
...some html here…
{/exp:buddies:check}
Check whether a member is friend of another member.
Does not return anything, but the code inside is displayed only if the object member IS NOT a friend of subject
{exp:buddies:display subject_id=”%member_id_1%” type=“buddy”}
0
{username}
{screen_name}
{avatar_filename}
...any other field available in exp_members table
{/exp:buddies:display}
Display friends of a member.
subject_id - member_id of user to display his friends
type - can be omited. Defaults to ‘buddy’ but you can set it to ‘blocked’ to work with blocked members instead
{exp:buddies:display_reverse subject_id=”%member_id_1%” type=“buddy”}
0
{username}
{screen_name}
{avatar_filename}
...any other field available in exp_members table
{/exp:buddies:display}
Display members, for whom choosen member is a friend.
subject_id - member_id of user who is “friend of” users to display
type - can be omited. Defaults to ‘buddy’ but you can set it to ‘blocked’ to work with blocked members instead
Posted by runner at 04:29 PM. Filed under: Extending EE • Plugins •