New
PeoplePress is here. Community building for WordPress, reimagined. Fast, modern, and built for the communities you've always wanted to run.
See it live

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25514

    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.

  • Keymaster
    (BuddyDev Team)
    Posts: 25514

    Hi J,
    Yes, That link has the appropriate function. Please allow me 5 more minutes to put an example for you.

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

    Thank you Graham.
    I am sorry I could not release yesterday, It’s coming today.

  • Keymaster
    (BuddyDev Team)
    Posts: 25514
    Brajesh Singh on in reply to: Bring Instagram to BuddyPress #9498

    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

  • Keymaster
    (BuddyDev Team)
    Posts: 25514

    Thank you, both of you 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25514

    Thank you. Marking as resolved.

  • Keymaster
    (BuddyDev Team)
    Posts: 25514
    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: 25514

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

    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: 25514
    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.