Skip to content

Buddies plugin - easy friendship management for EE

11 Mar 2009

Buddies plugin - easy friendship management for EE

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

For support, please email .(JavaScript must be enabled to view this email address).

Licensing & support terms

Attachment

Comments

  1. escape the friend zone
    escape the friend zone 03 Aug 2009

    Buddies plugin enables users to have buddies,friends,followers just like in many popular social networks and blogging systems.

  2. w holmes
    w holmes 26 Aug 2009

    Thanks for this, I’ll give it a try really soon.

  3. Yuri Salimovskiy's avatar
    Yuri Salimovskiy 26 Aug 2009

    I’ve just released 0.2 version of the plugin. This is a compatibility release: I’ve added alternative syntax of variables.

  4. Yuri Salimovskiy's avatar
    Yuri Salimovskiy 26 Aug 2009

    v 0.3 released - added buddy reverse check

  5. w holmes
    w holmes 26 Aug 2009

    haven’t had a chance to try this yet but I do suggest putting the version number in the name of the zip file. Thanks again.  Also if you haven’t already maybe you should mention or “announce” this in the EE Forums.

  6. Yuri Salimovskiy's avatar
    Yuri Salimovskiy 26 Aug 2009

    I don’t put the version number in the name of the zip file on purpose: so that download link would always remain the same. As for annoucing, there is a thread on EE forums

Comments are closed. To get support, email .(JavaScript must be enabled to view this email address).

Featured EE Add-ons

About

    Hello, my name is Yuri and I specialize in creating custom add-ons (plugins, modules, extensions) for ExpressionEngine CMS.
    You can email me .(JavaScript must be enabled to view this email address)