Replies
- 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.
Hi Graham,
I am sorry for the trouble.It can be easily disabled. And we are already doing that for most of the plugins use select2.
Can you please tell me which selectbox it is affecting, is it the retailers?
Thank you.
BrajeshHi Mohammad,
Thank you for the kind words and my apologies for the delayed reply.1. You can set the member type of a user using the following
bp_set_member_type( $user_id, 'member_type_name' );2. Tough I agree with you about it, and I do understand that it will make it significantly better, Our team won’t be able to work n it. It is something that should be part of BuddyPress core. I will suggest opening a ticket at BuddyPress trac for this.
Thank you
Brajesh- Brajesh Singh on June 9, 2017 at 8:04 am in reply to: Buddyblog – Is this possible and if so how difficult? #9463
I am not sure of your last reply.
I posted that code to show what we have exposed. You can add to that filter and use woo subscription to decide whether to return true/false.
It will be a simple code with only 1 or 2 lines. I am sorry but I am not familiar with the WooMemberships or Subscription so I may not be able to help.
If you can provide me the function for checking expired membership for a given user, I can certainly write the code for you.
Thank you
Brajesh - Brajesh Singh on June 9, 2017 at 7:40 am in reply to: Buddyblog – Is this possible and if so how difficult? #9461
Hi J,
Welcome to BuddyDev.
1. I am sorry but at the moment, the plugin can handle only one post type. You will need to use category or custom field for managing two types. Or you can extend the plugin(which will be major work)Using WordPress Template hierarchy, you can easily create different layout for different kind of the posts.
About membership, we have a hook like this
apply_filters( 'buddyblog_user_can_publish', $can_publish, $user_id )You can filter on ‘buddyblog_user_can_publish’ and customize the permission as you will like.
Hope that helps.
- Brajesh Singh on June 9, 2017 at 6:49 am in reply to: BuddyPress function primer (Follow Up Question) #9459
Ahh well, Just noticed that BuddyPress Codex does offer a list.
Please see here
https://codex.buddypress.org/developer/template-tag-reference/#is_-functionsHope that helps.