Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

”Add Friend” link displaying twince on member page (8 posts)

Started 1 year ago by: sesaconsulting

  • Profile picture of sesaconsulting sesaconsulting said 1 year ago:

    Hey folks:

    For some reason the add friend is showing up twice next to each members’ name on my members page. The link is:

    http://www.imastormchaser.info/members/

    Any idea why this is happening and how I can delete the second incidence?

    Thanks!

  • Profile picture of josemv josemv said 1 year ago:

    Maybe… http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/duplicate-add-friends-members-directory/

  • Profile picture of Virtuali Virtuali said 1 year ago:

    Yeah removing <?php bp_member_add_friend_button() ?> will do it, but the real reason this is happening is because you have called a template twice, or, for example, double CSS in your theme by accident, (calling default.css+template pack)

  • Profile picture of Brandon Allen Brandon Allen said 1 year ago:

    It’s most likely not because you’ve called a file more than once, but more likely because you’re using a custom theme of some sort. Friend buttons are now added through a do_action/add_action combo, which is why a lot of people with custom theme files ended up with duplicate buttons.

  • Profile picture of Virtuali Virtuali said 1 year ago:

    It’s most likely not because you’ve called a file more than once,

    Seen many times with many installs is they put existing BP on top of what they already have. Investigated this myself, came up with the template pack with already called stuff from the BP default theme.

    Could be many, as he hasn’t written back, which must mean he solved the issue?

  • Profile picture of @mercime @mercime said 1 year ago:

    On my end, I’ve seen this happen with an outdated BP theme (including bp-template pack) which still use bp_member_add_friend_button. Seriously needs updating.

  • Profile picture of sesaconsulting sesaconsulting said 1 year ago:

    Hey folks:

    Thanks for all the insight. I am going to first try removing the and then go from there. I am using a custom template and would have preferred to use a BP one, but it is one my client insists on so I have to work around the glitches.

  • Profile picture of sesaconsulting sesaconsulting said 1 year ago:

    Thanks virtuali, mercime, josemv and Brandon… It worked!