Make Friends a Plugin!

I am new here, but I am planning to use Elgg for a number of clients.  I am really impressed with the extensibility of Elgg and the plugin system.  That said, I have searched and searched for a plugin to disable the friend function --entirely.  I don't want it renamed to "followers, "contacts" or anything like that.  The reality for me is that almost none of my clients care to have the "friends" features.  It is antithetical to small corporate and educational environments who are trying to increase the sense of community.  From my clients perspective, friends are for facebook.  I am aware of the Elgg Trac ticket #3445 and that this has become a "long term discussion."  I am posting this to cast my vote that the friends function should be pulled out of core, since MANY clients have no use for it an it just adds clutter.  In the meantime, if anyone has any suggestions (links to other groups/discussions) for how to quickly rip-out/hide all friends functionality without messing with core files too much, that would be greatly appreciated.  I am not a PHP guru, but I am going to start hacking, so any tips would be great!  And thank you again for the great work with Elgg!

  • Thanks, Kevin.  Sounds like I better get busy familiarizing myself with the views files.  Your success is my inspiration!

  • aaronk, for Elgg 1.8 I would look at the ways to manipulate the filter menus in particular, especially the prepare plugin hook and the elgg_unregister_menu_item() function.

  • Steve, I saw the elgg_unregister_menu_item() function mentioned in another discussion as well --thanks for the tip, every bit will help...

  • For kicks.  A quick little invisiblity cloak for CSS friendly browsers:

    ul.profile-action-menu li:first-child { display: none; }
    li.elgg-menu-item-friend { display: none; }
    select.elgg-input-dropdown option:nth-of-type(2) { display: none; }
    #elgg-widget-type-friends { display: none; }

    No more friends (assuming there weren't any to begin with).

Feedback and Planning

Feedback and Planning

Discussions about the past, present, and future of Elgg and this community site.