BuddyDev

Search

Replies

  • Participant
    Level: Yogi
    Posts: 1117

    Hi there, I think I can see what is wrong here.

    I have created two similar Single Member Types fields

    1. field: Own gender

    2. field: looking for gender

    But of course I can’t have two similar fields with different functions.

    So when users register they are assigned field 2 with their gender, which should have been field 1. (I assume field 2 then overwrites field 1).

    1. How do I solve this gender issue, where I can define both own gender and having a field for which gender users are looking for – also with an option for choosing own gender?

    I have been using this code snippet so far, but this does not take in account members searching own gender:

    Show only users of opposite genders on BuddyPress site
    https://buddydev.com/show-only-users-of-opposite-genders-on-buddypress-site/

    2. Do I need this code using MTP, or does Pro have a build in solution to this problem like showing different directories to different Member Types?

    On the plugin page under ‘Where should I use BuddyPress member types?’
    Dating sites(male/female member type)are mentioned.

    So I guess there must a straight forward answer to this, I just can’t figure it out.

    Can you help?

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1117

    Hi there, the problem in particular is that if you are using a default Ajax WP registration with name, email, and password, combined with ‘BP Non Editable Profile Fields’ and ‘BuddyPress Profile Completion’ to get users to fill out the required BP fields after registration, users are not warned or aware of that a wrong value for their gender has been set.

    Regards
    Carsten

    https://imgur.com/v5nApTP

  • Participant
    Level: Yogi
    Posts: 1117

    Hi Brajesh, thanks for the clarification, I guess it is logic when you write it this way. So in short, if you have to receive visits your own visits has to be displayed to those users as well.

    My license for recent visitors is not active at the moment, because I still have issues with discrepancy between the visit counts and the actual visits, the just don’t match.

    Is this something I could ask you to investigate, have you had other users reporting this issue?

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1117

    Hi Brajesh, sorry for not understanding Member Loop correctly, I have styled my members directory and added extra profile fields in header, but of course this customization is not added to these lists as well.

    Is there a selector and function to style and add functions to all these members lists, so they all look the same?

    Thanks!

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1117
    calu on in reply to: Remove Friendship Button #37725

    Hello Ravi, thank you very much for your help, much appreciated, it’s working perfectly.

    I can use the code for hiding the button in members header actions as well, but the only function I can find in BP documentation is bp_is_user_profile()which removes the friend button from all of the profile page. Is there a function for the member header action?

    I can see that there are many approaches to hiding buttons, add_action . remove_action or add_filter, return $button; ,'__return_false', $display = false;

    Is there any systematic approach when choosing method?

    Thanks again.

    Regards
    Carsten

  • Participant
    Level: Yogi
    Posts: 1117
    This reply has been marked as private.
  • Participant
    Level: Yogi
    Posts: 1117
    This reply has been marked as private.
  • Participant
    Level: Yogi
    Posts: 1117
    This reply has been marked as private.
  • Participant
    Level: Yogi
    Posts: 1117
    This reply has been marked as private.
  • Participant
    Level: Yogi
    Posts: 1117

    Hi Ravi, thanks for your reply, just to clarify this, if the Member Type is assigned already at registration, using the Single Member Type profile field, then the user role eg. customer can be assigned as well, I can’t see how this is done in the “Setup automatic WordPress role assignment based on BuddyPress member type” chapter and screen shot?

    Will this surpass New User Default Role in WP General settings?

    Regards
    Carsten