BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25176

    Hi Jasmin,
    Please upgrade to 1.3.1 and the issue will be fixed

    https://buddydev.com/plugins/recent-visitors-for-buddypress-profile/

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25176
    Brajesh Singh on in reply to: Gallery comment count #2846

    Hi Piotr,
    The comments are handled by activity and currently counting comments for gallery is not very efficient(and that’s why comment counts are not included).

    If you still need it, I will post the code but please do know that it is not efficient and not very scalable solution. It will be nice to keep a count in one of the metas in future and sync them.

  • Keymaster
    (BuddyDev Team)
    Posts: 25176

    Marking this thread as closed due to lack of replies and I feel the last post clarifies about template structure.

  • Keymaster
    (BuddyDev Team)
    Posts: 25176
    Brajesh Singh on in reply to: BP Autologin at activation #2843

    Hi Jon,
    By RC, I meant Release candidate of the plugin.

    You may try it on a test server.
    https://buddypress.org/2016/02/buddypress-2-5-0-release-candidate-1/

    Yes, the autologin will work.

    Hope that clarifies.

  • Keymaster
    (BuddyDev Team)
    Posts: 25176

    Hi Jay,
    I am sorry I was away from Desk while you messaged. That should work as a temporary fix. It is just hiding the notices.

    The best solution will be to supply the functions which is causing the error. Since Divi is a premium theme, I don’t have access and could not do much. hoping that ET guys will assist you.

    Please do let me know how it goes.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25176

    Hi Paul,
    Here is a completely working code that you can use. It is tested to work.

    
    
    function add_member_images() {
    	//Include image.php for helper functions
    	require_once ABSPATH . 'wp-admin/includes/image.php';
    
    	$title        = 'Nature is great';
    	$content      = 'checking this out';
    	$gallery_id   = 292; //change
    	$media_type   = 'photo';
    	$type         = 'image/jpeg';
    	$url          = 'http://localhost/4.4.2/wordpress/wp-content/uploads/15-beach-sea-photography.jpg';
    	$file         = '/wp-content/uploads/15-beach-sea-photography.jpg';
    	$status       = 'public';
    	$component_id = 1;
    	$component    = 'members';
    
    	$media_data = array(
    		'title'          => $title,
    		'description'    => $content,
    		'gallery_id'     => $gallery_id,
    		'user_id'        => get_current_user_id(),
    		'is_remote'      => false,
    		'type'           => $media_type,
    		'mime_type'      => $type,
    		'src'            => $file,
    		'url'            => $url,
    		'status'         => $status,
    		'comment_status' => 'open',
    		'storage_method' => mpp_get_storage_method(),
    		'component_id'   => $component_id,
    		'component'      => $component,
    		//'context' => $context,
    		'is_orphan'      => 0,
    	);
    
    	$id = mpp_add_media( $media_data );
    }
    
    add_action('mpp_actions', 'add_member_images');
    
    

    Please update the fields as you need. It was giving fatal error because we did not include image.php which has some required functions needed for processing media.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25176
    Brajesh Singh on in reply to: BP Autologin at activation #2834

    A fix is coming in BuddyPress 2.5 hopefully(not fully confirmed).
    Also, BuddyPress 2.5 contains a very easy way to customize your emails(using theme customizer), so you won’t have to worry about including the login link. It is just a couple of weeks before the 2.5 stable coms out(RC is is already out).

    I am hoping that will resolve the issue for you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25176

    Hi Jay,
    Can you please upgrade my account to superadmin. If I can look at that line in the file, I will be able to put a temporary solution.

  • Keymaster
    (BuddyDev Team)
    Posts: 25176
    Brajesh Singh on in reply to: MediaPress #2832

    Hi Michael,
    If you have issues translating the file, I will be happy to supply with the same. I am assuming your locale is en_US?

    Please do give a try to filters.

  • Keymaster
    (BuddyDev Team)
    Posts: 25176
    Brajesh Singh on in reply to: [Resolved] member type on registration #2831

    Thank you.
    It looks awesome 🙂