Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25472
    Brajesh Singh on in reply to: profile fields not saving after edits #15424

    Hi David,
    I have tested conditional field plugin by applying conditions on a field based on another text field and a select box and it is working for me.

    I am not sure what could be causing it for you.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Hi Herve,
    I am sorry but I don’t think I will be able to assist you on this.

    For me, as I said earlier, the solutions provided are very specific to what you mention. In some of the cases, they may act as a general solution but most of the time they will break.

    In your case, even after so many days, I am still not sure, what exactly you are looking for.

    The latest solution is tested to change the the role on completion.

    Here is teh notice on BuddyPress 2.9
    https://i.imgur.com/FQcmNH5.png

    and on BuddyPress 3.0

    https://i.imgur.com/LVWiwJM.png

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Thank you for clarifying.

    BuddyPress member Type field(s) are not compatible with the current version of BuddyPress Profile search.

    We have an update lined up for it tomorrow that will add the compatibility.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Hi Nidia,
    I am sorry but I am not familiar with BuddyForms.

    I will suggest asking in their forums.

    if there is anything else related to BuddyPress or our Plugins, Please feel free to ask in our forums. I will be glad to assist.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472
    Brajesh Singh on in reply to: profile fields not saving after edits #15418

    Hi David,
    I am not sure about this. I am going to test an report back in 30 minutes.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Hi Carsten

    Thank you. Looks perfect.

    I will have it by Monday or before.

    Best Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Can you please take backup of the first code and try it.

    It does exactly that.

    Also, I am still not sure what a connection is but it works by checking on each page load. since it uses the logged in user’s user meta for checking, The impact on performance will be neglible.

    Login is just one of the events where profile status changes. The profile status may also change on photo upload/delete or profile filed update.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Hi Herve,
    to be honest, I have no idea what worked in the first and what did not. That’s why I tried to rewrite it.

    As per your previous message

    The idea is at the moment of connection (That’s when I can not do it, I think), check if the member has
    * a photo
    * all mandatory fields filled
    * a subscriber role
    * a special value for an xprofile field

    If yes I change the role of the member (member0)

    I made it such.

    What changes do you want in this. Please do know that like I explained earlier, I am unable to work with parts. The code you had supplied was using incorrect variable($this outside the class scope, $bp without declaring global).

    Can you please tell me the issue you are facing with the above code. It is just an upgrade of the previous code and as per your requirement, It does change the role.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Hi Patricia,
    Welcome to BuddyDev.

    The error you are seeing is due to a bug in BuddyPress 3.0

    At the moment, any field using multi select and multiple checkboxes are throwing the error.

    Please find more details here

    https://buddypress.trac.wordpress.org/ticket/7845

    The fix needs to be in BuddyPress. My suggestion will be to apply the path from the above ticket.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25472

    Hi tangpage

    I am sorry but I am unable to understand.

    1. Can you please tell me the plugin you are using? Is it about BuddyPress member Types Pro?

    2. Can you please clarify the issue in a little more details.

    Thank you
    Brajesh