BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Hide the Tab "New Post" in BuddyBlog Plugin #14063

    Hello Daniel,

    Just paste me the whole file code of the file “bp-custom.php” so that I can check. You can post the code into pastebin.

    https://pastebin.com/

    Thank you
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Daniel,

    1. To modify border colour. Please use the following code at the bottom of your active theme “style.css” file.

    
    .bpajax-register-title{
    	background-color: red;  // Change colour
    }
    

    2. To apply site logo just modify the template “ajax-register-form.php”. You can override by copy this template to your active theme directory and modify accordingly.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Hide the Tab "New Post" in BuddyBlog Plugin #13999

    Hello Daniel,

    Please try the following code in your “bp-custom.php” and let me know if it works or not.

    
    
    function buddydev_remove_new_post_tab() {
        bp_core_remove_subnav_item( buddypress()->buddyblog->slug, 'edit' );
    }
    add_action( 'bp_buddyblog_setup_nav', 'buddydev_remove_new_post_tab' );
    
    function buddydev_remove_admin_new_post_tab( $wp_admin_nav_items ) {
        $new_admin_items = array();
    
        foreach ( $wp_admin_nav_items as $wp_admin_nav_item ) {
    
            if ( $wp_admin_nav_item['id'] == 'my-account-' . buddypress()->buddyblog->id . '-new-post' ) {
                continue;
            }
    
            $new_admin_items[] = $wp_admin_nav_item;
        }
    
        return $new_admin_items;
    }
    add_filter( 'bp_buddyblog_admin_nav', 'buddydev_remove_admin_new_post_tab' );
    

    For “bp-custom.php” you can refer followin url:
    https://codex.buddypress.org/themes/bp-custom-php/

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Hide the "Unpublish" tab in BuddyBlog Plugin #13998

    Hello Daniel,

    Sorry for the inconvenience. Yes it was a bug in buddyblog. I have updated the plugin. Please download the updated version of plugin. You can download from the following url:

    https://buddydev.com/plugins/buddyblog/

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Form Validation in Simple Front End Post #13953

    Thank you for the acknowledgement. I am glad that I could help.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: how to add shortcode to top of activity feed #13939

    Hello Peter,

    Please post me your any whole file code into postbin. You can refer the following url.

    https://pastebin.com/

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: BuddyPress Featured Members – cannot find members list?? #13938

    Hello Christopher,

    Thank You for posting. Plugins works like in the following way.

    1. After activation. On member directory page as well as on member’s profile page a new button will appear name “Set Featured” to set member as featured member.

    2. And to list member you can either use widget “BuddyPress Featured Members” or shortcode to display them on frontend. That’s it.

    Please let me know if there is any query.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Form Validation in Simple Front End Post #13935

    Hello Ada,

    Okey, In that case we have to implement client side validation for the form. Please remove the old code and use the following code and let me know if it works or not.

    
    function buddydev_add_bsfep_custom_js() {
    
    	wp_add_inline_script( 'bsfep-js', "jQuery('div.bp-simple-post-form #submit').click(function() {
    
        var terms = jQuery('ul.simple-post-tax-check-list input[type=checkbox]:checked')
    
        if ( terms.length == 0 ) {
            alert( 'Please select atleast one category' );
            return false;
        }
    
        })" );
    }
    add_action( 'wp_enqueue_scripts', 'buddydev_add_bsfep_custom_js' );
    
    

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: how to add shortcode to top of activity feed #13933

    Hello Peter,

    Thank you for posting. Try the following code in your “bp-custom.php” file

    
    
    function buddydev_add_slider() {
    	echo do_shortcode( '[your-short-code]' ); // Replace shortcode with your one
    }
    add_action( 'bp_before_directory_activity', 'buddydev_add_slider' );
    
    

    If you do not know about “bp-custom.php” file refer the following url.
    https://codex.buddypress.org/themes/bp-custom-php/

    Let me know if it works or not.

    Thank You
    Ravi

    • This reply was modified 7 years, 1 month ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] open close activity separate class #13876

    Hello Julia,

    I have updated the plugin. Please download the latest version of plugin from the following url
    https://buddydev.com/plugins/bp-lock-unlock-activity/

    Thank You
    Ravi

    • This reply was modified 7 years, 1 month ago by Ravi.