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: 25276

    Thank you. Marking as resolved.

  • Keymaster
    (BuddyDev Team)
    Posts: 25276
    Brajesh Singh on in reply to: Member Type Email & Configuration #9494

    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.

  • Keymaster
    (BuddyDev Team)
    Posts: 25276

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25276

    Hi Andy,
    I am sorry. That kind of functionality is not available at the moment. At the moment, only single value is supported.

  • Keymaster
    (BuddyDev Team)
    Posts: 25276
    Brajesh Singh on in reply to: [Resolved] Geodirectory Compatability #9478

    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 function

    
    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').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.

  • Keymaster
    (BuddyDev Team)
    Posts: 25276
    Brajesh Singh on in reply to: [Resolved] Geodirectory Compatability #9470

    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.
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25276
    Brajesh Singh on in reply to: Member Type Email & Configuration #9465

    Hi 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

  • Keymaster
    (BuddyDev Team)
    Posts: 25276

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25276

    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.

  • Keymaster
    (BuddyDev Team)
    Posts: 25276

    Ahh well, Just noticed that BuddyPress Codex does offer a list.

    Please see here
    https://codex.buddypress.org/developer/template-tag-reference/#is_-functions

    Hope that helps.