Use this to display everyone who the member in question is following based on the member_id in the url…
{exp:buddies:display subject_id="{segment_x}" object_id="{member_id}" type="buddy"}
<a href="http://link_to_profile">{screen_name}</a>
{/exp:buddies:display}
Use this to display who is following the member in question also based on the url…
{exp:buddies:display_reverse subject_id="{segment_3}" object_id="{member_id}" type="buddy"}
<a href="http://link_to_profile">{screen_name}</a><a href="http://link_to_remove_template">remove this buddy from list</a>
{/exp:buddies:display_reverse}
Notice the link next to the “screen_name” variable. It would be best to first determine if the member is looking at their own profile. If they are show the remove link.
Next I put a link on the profile page that appears for every member like this.
<a href="http://link_to_add_buddy_template">Add this member as a buddy</a>
That’s it! very straight forward and easy. All that’s missing is some type of notification when your “buddy” has posted a new entry or comment.
It’s worth noting that a more robust addon that does this is located http://www.brandnewbox.co.uk/products/details/followers/.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.