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: 25302
    Brajesh Singh on in reply to: [Resolved] Remove All Members Option #15433

    Hi Sujee,
    That’s strange. The above code should work for logged out too. It should hide all members form directory.

    Are you modifying member loop in any other way except the above code.


    @ravisharma
    ,
    Thank you for the code but I will rather like it to work without it too.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Thank you for creating the topic here.

    I have tested the plugin with 3.0 (on a text field).

    If I have to guess from the above, I will suggest disableing “BP)SuitePlugins – Advanced XProfile Fields for BuddyPress” and then trying again.

    It seems to be the only plugin that can cause it.

    Please give it a try and let me know.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    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: 25302

    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: 25302

    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: 25302

    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: 25302
    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: 25302

    Hi Carsten

    Thank you. Looks perfect.

    I will have it by Monday or before.

    Best Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    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: 25302

    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