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
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Lightbox remove white box #3925

    Hi Christian

    I looked into it and found there is no hook present in the code. Only way for now is to modify the code? will you be ok with that?

    Thank You
    Ravi

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

    Hi Brian

    Good to know that it is working. If I were you, I would have used the activation hook instead to be sure that the post is created when accounts are activated. Using ‘bp_core_activated_user’ this hook and code should be in bp-custom.php

    All the best with your project.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Lightbox remove white box #3922

    Hi Christian,

    I am looking into it and Will let you know at day end.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: MediaPress Media List widget #3876

    Hi Christian,

    Please put the following code in Your theme style.css file. It will fix the bug.

    
    
    .widget .mpp-media-title {
        display: none;
    }
    
    

    Thank You
    Ravi

    • This reply was modified 10 years, 5 months ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hi Javier,

    Please try the following code in your theme functions.php file and let me know it works or not.

    
    function buddy_new_reset_password_email( $message, $key, $user_login, $user_data ) {
        
        // get the user data is user object you need to fetch xprofile email value. user $user_data->data->ID to fetch the details
        $user_email = '[email protected]'; 
        
        if ( is_multisite() ) {
            $blogname = $GLOBALS['current_site']->site_name;
        } else {
            $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
        }
    		
        $title = sprintf( __('[%s] Password Reset'), $blogname );
        
        if ( $message && ! wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) )
    		wp_die( __('The email could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.') );
        
        $message = '';
        
        return $message;
    }
    add_filter('retrieve_password_message','buddy_new_reset_password_email' );
    

    Thank You
    Ravi

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

    Hi Jonas,

    FYI. It won’t work with the old comments.

    Thank You
    Ravi

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

    Hi Jonas,

    Bug is fixed now. It is marking the post as read when you click on the notification. You can clone or downloaded the updated code from git and let me know if it is working or not. Please refer the following url.

    https://github.com/buddydev/bp-notify-post-author-on-blog-comment.git

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Latest galleries not listed #3858

    Hi Terjemk,

    Please use [mpp-list-gallery status=”loggedin”] this shortcode to list gallery marked as logged in.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Need to add custom BuddyBlog new post fields #3856

    Hi Chirag,

    Thank You posting. You can disable ‘Add Media’ from BuddyBlog plugin setting under setting in backedend. Check Allow Upload setting and sat it to NO. It will disable the ‘Add Media’ button.

    Please use the following code in your bp-custom.php file.

    
    function buddydev_change_post_format( $post_id ) {
        set_post_format( $post_id, 'video' );  // set the default post format here
    }
    add_action('bsfep_post_saved','buddydev_change_post_format');
    
    function buddydev_video_field( $settings ){
        // extra field for video url
        $settings['custom_fields']['_video_url'] = array(
            'type'    => 'textbox',
            'label'   => 'Enter Video Url',
            'default' => ''
        );
        
        return $settings;
    }
    add_filter('buddyblog_post_form_settings','buddydev_video_field', 10 );
    
    

    to render the content of this post use the following code

    
    function buddydev_filter_content( $content ) {
        
        $video_url = get_post_custom_values( '_video_url', get_the_ID() )[0];
        
        if ( $video_url ) {
            $content .= $video_url;
        }
        return $content;
    }
    add_filter('the_content','buddydev_filter_content' );
    

    Please let me know if it works for you or not.

    Thank You
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Mediapress limited to 20 items per audio gallery? #3834

    Hi George,

    Thank You for posting. You can limit the media and gallery listing on website. There is an option to manage galleries and media listing on frontend. You can check the MediaPress setting in Admin Pannel under MediaPress setting theming tab with label “How many Media per page”. You can fix this from there.

    Thank You
    Ravi