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

    Hi Razor,
    Thank you for posting. BuddyPress does not have a proper/efficient function for checking if the field group exists.

    You may define your own(put it in functions.php or bp-custop.php )

    
    /**
     * Check if a field group exists.
     *
     * @param string $name group name.
     *
     * @return int
     */
    function bpcustom_profile_field_group_exists( $name ) {
    	$bp = buddypress();
    	global $wpdb;
    
    	return $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_groups} WHERE name = %s", $name ) );
    }
    
    

    and after that you can use it to check if the groups exists or not.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Comments link in gallery view #15570

    Hi Audiomonk,
    Since you are using a custom lightbox, we are only using it to show the image. I am not sure we can handle this in your case as we lack the control over what gets shown in the lightbox.

    Sorry about this. We are working on a better version of our own lightbox too and I certainly hope that you will reconsider it around 1.5

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Mediapress features #15568

    Hi George,
    Thank you.

    On the single media page it is already displayed(you will need a bit of css to make it look better though). I am concerned about the grid view(or media loops).

    The file name is actually saved as media title on upload. A user can change it from the lightbox or from the bulk edit/ single media edit pages.

    Those will be shown instead of the filename if available.

    For the description in the loop, I am thinking about the ui that doe snot break the grid. Another possibility is to change the grid to (or add new ) masonry layout. That way, we won’t have to worry much about the description length.

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Are you sure it is the same file you are testing with. Is WordPress is able to extract the media data, so will we.

    We are using the “wp_read_audio_metadata() ” in the meta extraction in uploader which is the same function as WordPress.

    That should make it work with us too if the file works with WordPress(meta extraction).

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi Richard,
    Thank you for using the plugin.

    It is a bug with your theme. Here is how it looks on normal themes

    https://i.imgur.com/HleVo24.png

    Your theme is using esc_html() on the field value which it should not. The values are already sanitized(BuddyPress does it and we do it too).

    Please look for the code and you can fix it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Mediapress features #15562

    Hi George,
    About this, I had a relook at the things and I noticed that at the moment, we are only showing the description on the single media page, lightbox and single gallery page(gallery description) if enabled.

    Adding description in the loop is as simple as adding tag but expecting that users will have variations in their length of description, It can make the layout look real bad.

    I am still thinking of a way to do it. If you have suggestion, Please do let me know.

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: Site Title Not Shown in Community Builder #15561

    Hi Ethan,
    For login logo the width is constrained to 320px. Please use a logo with this width and it should work as expected.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Just to be clear, It happens on upload if the audio has these details.

  • Keymaster
    (BuddyDev Team)
    Posts: 25302

    Hi George,
    We already do it.
    https://github.com/buddydev/mediapress/blob/master/core/media/mpp-media-functions.php#L1162

    We use these details as fallback title/description for the media.

  • Keymaster
    (BuddyDev Team)
    Posts: 25302
    Brajesh Singh on in reply to: [Resolved] Mediapress limits #15555

    You are welcome 🙂