Replies
- Brajesh Singh on June 9, 2018 at 1:24 pm in reply to: [Resolved] Conditionally create BP xprofile field group (programatically) #15576
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 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
BrajeshHi 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.
- Brajesh Singh on June 9, 2018 at 10:54 am in reply to: Media Press Audio uploads – autofill Media Description from MP3 Information #15567
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).
- Brajesh Singh on June 9, 2018 at 10:25 am in reply to: [Resolved] BuddyPress Xprofile Custom Field Types – Custom Taxonomy Multiselector issue #15566
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 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.
- Brajesh Singh on June 9, 2018 at 1:38 am 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 - Brajesh Singh on June 9, 2018 at 1:33 am in reply to: Media Press Audio uploads – autofill Media Description from MP3 Information #15560
Just to be clear, It happens on upload if the audio has these details.
- Brajesh Singh on June 9, 2018 at 1:32 am in reply to: Media Press Audio uploads – autofill Media Description from MP3 Information #15559
Hi George,
We already do it.
https://github.com/buddydev/mediapress/blob/master/core/media/mpp-media-functions.php#L1162We use these details as fallback title/description for the media.
You are welcome 🙂