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

    Thank you George.

    To delete a gallery, you can use the following

    
    mpp_delete_gallery( $gallery_id, true );
    

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25471
    Brajesh Singh on in reply to: Styling forms #12770

    Hi Tristan,
    Thank you.

    Yes, one of the goals of CB 2.0 is to provide compatibility with multiple Page Builders(We are looking at the top 3-4 and Divi Builder is among it).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25471

    Hi George,
    If you are using the global shared gallery, the code

    
    mpp_update_gallery_meta( $gallery_id, '_mpp_is_all_upload_allowed', 0)
    

    Marks a gallery as shared and anyone can upload to it.

    To undo that, you should delete the meta.

    The above code does not change the status of the gallery. For changing status/privacy, please see my post about mpp_update_gallery.

    Regards
    Brajesh

    PS:- We will release Shared Gallery anytime soon where a user can give fine grained control like ‘view’, ‘edit’, ‘upload’, ‘delete’ to other specific members.

  • Keymaster
    (BuddyDev Team)
    Posts: 25471
    Brajesh Singh on in reply to: Display Members Directory as list #12768

    Hi George,
    Thank you.
    You have a very informative article there and I am sure it will help many people.

    @ Keith,

    In this case, you can copy community-builder/buddypress/members/members-list.php to your child theme/buddypress/members/members-list.php

    and then we can use the following code to show a field in the loop.

    
    
    bp_member_profile_data('field=About'); // About is the name of field, you should change it.
    
    

    Or you can also use the following

    
    echo xprofile_get_field_data( 'About', bp_get_member_user_id(), 'comma' );
    
    

    If you are using the second style, you may want to use field id instead of field name for better efficiency.

    
    echo xprofile_get_field_data( 2, bp_get_member_user_id(), 'comma' );
    
    

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25471
    Brajesh Singh on in reply to: Styling forms #12761

    Hi Tristan,
    Thank you.

    I checked and I see that the child theme is disabling the font-end css file loaded by divi builder. That’s why It is taking the normal styles.

    I will be off for an hour, when I am back, I will check and see if there is a possibility of doing the same.

    It seems to me, that Divi theme is providing a complete custom css for the builder and not letting builder load the default styles.

    It may not be a feasible solution for normal themes, still I will like to check and see if it is doable without too much issue.

  • Keymaster
    (BuddyDev Team)
    Posts: 25471
    Brajesh Singh on in reply to: Styling forms #12759
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25471
    Brajesh Singh on in reply to: Styling forms #12758

    Hi Tristan,
    The theme is test for compatibility with Maximus Builder(which is based on Divi Builder 1.3.x).

    Still, Any theme will work with Divi Builder.

    You have provided me access to the site, please allow me 30mins-1 hour to check/update a few things on site and it will work.

    regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25471
    Brajesh Singh on in reply to: Styling forms #12754

    Hi Tristan,
    The code for loading custom.css is in our chi9ld theme.

    You can download the child theme from here

    https://buddydev.com/members/tristangardner/membership/themes/

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25471
    Brajesh Singh on in reply to: [Resolved] BP Featured Members Avatar Size #12752

    Hi Nick,
    We changed

    
    
    <?php bp_member_avatar(); ?>
    
    

    to

    
    <?php bp_member_avatar( bp_fm_get_avatar_args() ); ?>
    

    In the template file.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25471
    Brajesh Singh on in reply to: Display Members Directory as list #12751

    Hi Keith,
    I am sorry but the list layout is not available as part of 1.x.

    We have it available in 2.0
    https://i.imgur.com/ZlmNPRU.png

    But that will be atleast 2-3 weeks from now when we release it.

    In the current version, if you select the list layout, It will simply change the grid to 1 column per row.

    Adding profile fields is easy. There are 2 ways to do it.

    1. By overriding the member list template. It gives you more control.
    2. By putting the code in functions.php (a little bit less flexible).

    Which approach will you like to use?

    Regards
    Brajesh