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: 25494
    Brajesh Singh on in reply to: Activity Plus Reloaded for BuddyPress #27719

    Hi,
    Welcome to BuddyDev and thank you for the suggestions.

    1. Limiting the number of files in one activity:- Please allow me to check it. We can most probaly have it easily.

    2. Adding the option for the link/graphic:- This will need a ui change. I do not think we will be able to have it currently. I believe BuddyPress Links did something similar in the past.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Add fields to gallery #27718

    Hi Christophe,
    I am sorry for the delayed reply.

    Her is an addon that shows how to add custom field on the gallery create screen

    https://github.com/mediapress/mpp-gallery-categories/blob/master/mpp-gallery-categories.php

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Moose
    Thank you for the question.

    To answer your question.

    1. The front template for member type works, but it is not what you are expecting. The front template is used to show the contents inside the content area(below the member header where you see activity etc)

    2. If your goal is to completely control the profile page layout by member type, we can easily do it by forcing bp to load our own template if exists.

    
    add_filter( 'bp_template_hierarchy_members_single_item', function ( $templates ) {
    
    	$member_types = bp_get_member_type( bp_displayed_user_id(), false );
    	foreach ( $member_types as $member_type ) {
    		array_unshift( $templates, "members/single/index-type-{$member_type}.php" );
    	}
    
    	return $templates;
    } );
    
    

    Now, you can create buddypress/members/single/index-type-somemembertype.php and that will be the one used for whole page(You will need to include headers/footers etc manually here).

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Carsten,
    Thank you for sharing.

    I am glad it is working.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi Mical,
    Thank you for updating. I am glad you resolved it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Buddycommerce #27709

    Hi Nik,
    Thank you for using the plugin.

    1. I am not sure I will be able to help you with this currently. It will need time and I lack free time currently.

    We are adding each item as a top level/sub nav using BuddyPress nav functions bp_core_new_nav_item() or

    bp_core_new_subnav_item() depending on admin preference.

    2. Seems like a bug. I will check and update you on Monday.

    3. No. BuddyPress supports only 2 level menu. So, you can move all shop sub nav items under profile(by setting parent slug to “profile”) but not the shop itself(if you are planning to have profile->shop->shop links).

    You can certainly do it like profile->shop links(all shop sub tabs like orders, addresses etc ).

    The default sub nav slug is used to setup which of the sub nav item will be default when you click on the shop tab.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    Hi imborx,
    Which template pack are you using?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494

    HI Peter,
    Here is an example

    
    add_filter( 'xprofile_get_field_data', function ( $value, $field_id, $user_id ) {
    
    	if ( 5 != $field_id || is_array( $value ) ) {
    		return $value;
    	}
    
    	return do_shortcode( $value );
    
    }, 10, 3 );
    
    

    Please add it to your bp-custom.php and try.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: [Resolved] BuddyPress Xprofile Custom Field Types #27706

    Hi Carsten,
    Thank you for reporting the issue. Yes, the bug was introduced in last update where we limited the registration of our js libraries.

    I will be pushing an update within couple of hours to fix it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25494
    Brajesh Singh on in reply to: Problem with footer in community builder theme #27705

    Hi Kranthi,
    Thank you for using the theme.

    I am sorry but the above information is not coming from the theme. It is most probably coming from a plugin(seems like a media related plugin). Please check by deactivating plugins.

    Regards
    Brajesh