Skip to:
Content
Pages
Categories
Search
Top
Bottom

Friendship could not be requested

  • @shanebp

    Moderator

    BP – Version 1.2.7
    WP – version = 3.0.4

    I’m adding some simple member blocking.
    Everything works fine except for one annoying issue with friendship requests.

    When Member A does a friend request on Member B who has blocked them,
    for Member A the text “Add Friend” changes to “Friendship could not be requested”.

    I need it to say “Friendship requested” so that they don’t know they are blocked.
    [ If Member A refreshes the page, they will see “”Friendship requested” ]

    So, I think the “Friendship could not be requested” is coming from ajax somewhere.

    I have changed that text in :
    /plugins/buddypress/bp-friends.php
    and
    /plugins/buddypress/bp-themes/bp-default/_inc/ajax.php
    and
    /plugins/buddypress/bp-languages/buddypress.pot

    But “Friendship could not be requested” still appears.
    Where else could it be coming from?

Viewing 6 replies - 1 through 6 (of 6 total)
  • @cheese-1

    Member

    Would you mind sharing how you made a blocker function?

    @shanebp

    Moderator

    It’s just a hack, across various php files

    Add a block/unblock button on profile pages
    When clicked either add or remove a row from a blocked_users db table via function in bp-custom
    Check that table in bp-messages when sending messages & notifications
    Check that table in bp-friends when a friend request is made

    Works fine except for the initial “Friendship could not be requested” issue.

    @cheese-1

    Member

    how did you do the hack/hacks?

    @shanebp

    Moderator

    The usual way – trial and error.

    @cheese-1

    Member

    🙄

    @shanebp

    Moderator

    I forgot the ajax file in the _inc folder in the child theme – fixed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Friendship could not be requested’ is closed to new replies.
Skip to toolbar