Skip to:
Content
Pages
Categories
Search
Top
Bottom

Possible to add another friends list?

  • Hi guys,

    I’m trying to get a sports social network up and going, with the help of r-a-y I’ve managed to rename My Friends to My Fans.

    I would also like to add another “friends list”, however this time it would be called My Rivals. Basically the exact same thing, but just a list for ‘enemies’. It would function the exact same way, and there would be 2 links, one to add as friend (fan) / another to add as enemy (rival).

    Is this possible?

    Thanks :)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Hey BA,

    This one’s a little ambitious… since there isn’t an “enemies” function or activity to keep track of enemies!

    I’m guessing you’d need to duplicate many of the core “friends” code to do what you want to do.

    Also a person would have to “add” an enemy, which kind of defeats the purpose of adding this functionality, don’t you think? ;) (I get what you want to use it for!)

    Thanks for the reply r-a-y

    Basically I want to have the ability for people to add their favorite members (friends), but also an ability to add their least favorite or ones that they are odds with.

    Since this is going to be a sports site, it’s going to revolve around member-opinions on teams and players. One user might love the Dolphins but hate the Jets. After using the site they’ll get to know each other more and it becomes more of a competitive like thing. So they can add each other to keep track of each others for updates, etc. I suppose its more of a novelty idea, but I’m trying to be different than other sites out there.

    If I were to try to do this, would it be some as you mentioned and perhaps copy the friends function (renaming it to rivals in the process) and setting up the ability to mark a member a friend or rival? Or is it slightly more complicated than that?

    (I’m a front-end designer, so back-end work is very new to me haha :D)

    Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    Here’s what I think you’d have to do:

    There is a lot of bp-friends code that you’d have to duplicate.

    /wp-content/plugins/buddypress/bp-friends/ (entire directory)

    /wp-content/plugins/buddypress/bp-friends.php

    You’d have to rename each function, class and file for your “enemies” functionality.

    Then, you’d have to hack the core as well (or write filters or functions that won’t hack the core):

    /wp-content/plugins/buddypress/bp-core/ (many files in this directory, not all)

    Like I said, it’s ambitious. It’s not impossible. But you’d have to test it out.

    (I’m not a programmer either… I do a little front-end and a little back-end. I’m not especially good at one particular thing! Hopefully a real programmer can respond and give their input!)

    Thanks for the reply r-a-y. The forums were down for me for the last week so I haven’t been able to check in until just now…

    I would love to have this feature, among several others that I have in mind. If there’s a BP guru and programmer out there that can help me, I’m willing to pay you for your efforts.

    I just have a few things left to integrate before I can go live with my site :).

    In future, BP will have a more comprehensive friend relationship system so I would imagine it ought to be possible to extend it to achieve this sort of thing.

    In the interim, yes, you’ll have to get it written yourself.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.