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: 25480
    Brajesh Singh on in reply to: [Resolved] Moderation tools support for posts? #18201

    Hi Richard,
    I am sorry for the delayed update. We have got the post type working. The issue that has caused delayed is related to admin deletion of log/reports etc.

    It is inconsistent and I have been working on to make it more consistent. I will publish the release for sure today(IST). It may be late as I still need to sort out the log and report deletion in a consistent way.

    Thank you for your patience.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25480
    Brajesh Singh on in reply to: Code Snippet 'Add Xprofile fields to the member code' #18199
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25480
    Brajesh Singh on in reply to: Code Snippet 'Add Xprofile fields to the member code' #18197
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25480
    Brajesh Singh on in reply to: Code Snippet 'Add Xprofile fields to the member code' #18194

    Hi Carsten,
    Thank you.

    Everything is correct except the field id is set to 1 instead of 478 in the code. Please update and check that.

  • Keymaster
    (BuddyDev Team)
    Posts: 25480
    Brajesh Singh on in reply to: Code Snippet 'Add Xprofile fields to the member code' #18192

    Hi Carsten,
    Since we are using field ID here, the quotes are not needed.We don’t use backtick in php. It is single or double quotes

    Please verify the correctness of field id again and make sure that the user has data for Age field.

    Also, if feasible, Please share me your complete bp-custom.php on pastebin(and link here).

    I can look into it and find the problem.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25480
    Brajesh Singh on in reply to: Gallery creation Email notifications #18190

    Thank you Saxena.

    The plugin is not available yet but we will be able to have it by the end of this week.

    I will post back after the release.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25480
    Brajesh Singh on in reply to: [Resolved] About buddyCircle #18189

    Thank you for sharing the details Kino.

    It makes much better sense to me . I sincerely appreciate your kind words.
    Will be pushing a release today and writing back.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25480
    Brajesh Singh on in reply to: Code Snippet 'Add Xprofile fields to the member code' #18188

    Please put the following in your bp-custom.php

    
    
    /**
     * Show age field in members directory.
     */
    function buddydev_show_age_field_in_directory() {
    
    	$field_id_or_name = 578; // You can either use field name or ID.
    
    	echo xprofile_get_field_data( $field_id_or_name, bp_get_member_user_id() );
    }
    
    add_action( 'bp_directory_members_item', 'buddydev_show_age_field_in_directory' );
    
    

    Does this work for you?

  • Keymaster
    (BuddyDev Team)
    Posts: 25480
    Brajesh Singh on in reply to: Code Snippet 'Add Xprofile fields to the member code' #18185

    Hi Carsten,
    When you visit members directory, do you see some php code? If you do, the file is correct.

    There is an issue with the above code though.

    You are not closing the php block correctly.

    The code should go after the

    
    ?>
    
    

    in your theme

    Instead of this

    
    
    <?php echo xprofile_get_field_data( 578, bp_get_member_user_id() );?>
    
    ?>
    
    

    It should be like

    
    
    ?>
    
    <?php echo xprofile_get_field_data( 578, bp_get_member_user_id() );?>
    
    

    We are putting our code after the closed php block. If it does not show you anything, I can post a snippet for bp-custom.php that will wok with all themes.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25480

    Hi Rudolf,
    Thank you for purchasing the plugin.

    You are correct about automatic assignment of the groups. The plugin can do it based on the membership level.

    To configure it:-
    1. While creating a member type, add groups. Check the sync button to remove users from non member type groups when their membertype changes.

    2. Please visit WooCommerce->Memberships screen and open Plan tab as shown below
    https://i.imgur.com/BWf3zxo.png

    3. Please edit plan and at the bottom, you will see a member type option as shown below
    https://i.imgur.com/xn0SC8e.png

    Check the member type(or multiple types, I suggest using single as they are better supported across BuddyPress UI)

    4. Save.

    Now, we have created a pipeline. When a user gets assigned the membership level, their member type changes and the change in member type changes their assigned groups(adds/removes to/from groups).

    Note:- It only works for newer purchases after the setup. For users with existing membership level, it won’t do anything. The action get triggers only when a new membership level changes.

    Hope that helps.

    Regards
    Brajesh