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: 25485
    Brajesh Singh on in reply to: [Resolved] Menu Locations #21879
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] Menu Locations #21878

    Hi Jessica,
    You are welcome.

    I am sorry, there is no restriction on posting here. We do not restrict at all. Please check if the page was cached or please share me a screenshot of the message on my email(in next reply).

    Please feel free to ask any question. I will be glad to assist in future.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Joss,
    Thank you.

    Please use the updated code as

    
    
    function buddydev_show_pmpro_membership_level_in_dir() {
    	if ( ! bp_is_members_directory() ) {
    		return;
    	}
    	// for the logged in user.
    	$level = pmpro_getMembershipLevelForUser( bp_get_member_user_id() );
    
    	if ( ! $level || $level->id != 2 ) {
    		return;
    	}
    
    	echo '<div class="bp-member-xprofile-custom-field bp-member-level">' . $level->name . '</div>';
    }
    
    add_action( 'gwangi_buddypress_member_xprofile_custom_fields', 'buddydev_show_pmpro_membership_level_in_dir', 10 );
    
    

    Note the small change from earlier is this

    
    if ( ! $level || $level->id != 2 ) {
    		return;
    	}
    

    Hope this helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: [Resolved] Menu Locations #21875

    Hi Jessica,
    Thank you for the question.
    The menu description is misleading(It is a remnant from the early version, I will update description).

    In Community Builder 1.x, the menu visibility depends on panel visibility.

    Please visit appearance->Customize->Layout->Global and update the left panel visibility there.

    That will work.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Font Awesome Icons in Main Navigation #21874

    Hi Jessica,
    Thank you for the patience.
    I have release 1.1.6 now and it adds an option in the Advance setitngs to disable the dropdown icon. Please visit Appearance->Customize->Advance Settings and check the option to disable it.

    After that, the icons will work.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Active Left Panel and Main Container Overlap #21872

    Hi Jessica,
    Thank you.

    I will need a little ore time to test on ios device as I don’t own any(emulator did not show it for me).

    I will update you in next 2 days.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Hi Chad,
    Thank you for the question.

    1. A better option will be to usebp_has_member_type () like this

    
    
    if ( bp_has_member_type( bp_displayed_user_id(), 'teacher' ) ) {
    ?>
    <div class="teacher-only-class">
        I am a teacher
    </div>
    <?php
    }
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485
    Brajesh Singh on in reply to: Community Builder – Change iframe width #21869

    Hi Hugo,
    Thank you for reporting.
    is there any chance that the content was added from mobile device. Just trying to understand the reason.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25485

    Please check back with us in next 2 days.

    Thank you
    Brajesh