Replies
- Brajesh Singh on June 13, 2017 at 12:03 am in reply to: Buddyblog – Is this possible and if so how difficult? #9501
Hi J,
Please put this in your bp-custom.php
/** * Do not allow members without active plans to pusblish post. * * @param boolean $can * @param int $user_id * * @return bool */ function buddydev_filter_publishing_permission( $can, $user_id ) { if ( function_exists( 'wc_memberships_get_user_active_memberships' ) && ! wc_memberships_get_user_active_memberships( $user_id ) ) { $can = false; } return $can; } add_filter( 'buddyblog_user_can_publish', 'buddydev_filter_publishing_permission', 10, 2 );This should work.
- Brajesh Singh on June 12, 2017 at 11:57 pm in reply to: Buddyblog – Is this possible and if so how difficult? #9500
Hi J,
Yes, That link has the appropriate function. Please allow me 5 more minutes to put an example for you. Thank you Graham.
I am sorry I could not release yesterday, It’s coming today.Hi Graham,
Thank you for posting.Do you mean creating something similar with filters etc or importing from the instagram site?
The first case is already in our plans 🙂Thank you
Brajesh- Brajesh Singh on June 12, 2017 at 11:53 pm in reply to: [Resolved] BP Clear Notifications (mark as read) #9496
Thank you, both of you 🙂
- Brajesh Singh on June 12, 2017 at 11:53 pm in reply to: [Resolved] BuddyPress Profile Visibility Manager #9495
Thank you. Marking as resolved.
Thank you Ravi.
@khangp,
can you please point to your registration form? That will make it easy for us to see how to do it.- Brajesh Singh on June 10, 2017 at 7:01 am in reply to: Buddypress Recent Profile Vistors – Total Views Time Range #9480
Hi Eddie,
Welcome to BuddyDev.At the moment, we don’t have this functionality. It seems like a very good idea to me though. Please give me 2-3 days and we will have it in the form of a widget and the api too.
Thank you
Brajesh - Brajesh Singh on June 10, 2017 at 7:00 am in reply to: Conditional Profile Fields: requiring multiple checkbox selections? #9479
Hi Andy,
I am sorry. That kind of functionality is not available at the moment. At the moment, only single value is supported. Hi Graham,
Thank you.
here is a temporary fix for now. I am about to release a major version(May be tomorrow or Monday and will have it there). Since the select prettifier has been causing a lot of issues, I am looking at some ways to have more flexibility.For now,
Please open community-builder/assets/js/buddypress.js and you will see the functionfunction cb_enable_select_style() { //jQuery( 'select' ).not('.sa-field-content select').selecter(); jQuery( 'select' ).not('.sa-field-content select, .adverts-options select, .adverts-form select, .chosen_select, .select2-hidden-accessible').SumoSelect(); }At the bottom of that file. we will need to add an extra selector like below
function cb_enable_select_style() { //jQuery( 'select' ).not('.sa-field-content select').selecter(); jQuery( 'select' ).not('.sa-field-content select, .adverts-options select, .adverts-form select, .chosen_select, .select2-hidden-accessible, .geodir-search select').SumoSelect(); }That should fix it.
Hope this helps.