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

    No problem Jay. I am glad it is fixed and the issue is solved for you.
    Marking the topic as closed.

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

    Hi Jon,
    I am sorry but I may not be of much help there with the post plugin.

    Please do know that Auto activation plugin does not send any email. It is never sent by this plugin. Either the post plugin is doing that or the WordPress triggers it based on the post plugin action.

    The only goal of the auo activation plugin is to check if there is someone opening a link which is for activation of an account and if that is correct, It logs the user in on successful activation.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25365

    You are most welcome. Glad it is working. Marking the topic as resolved.

  • Keymaster
    (BuddyDev Team)
    Posts: 25365

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

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

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

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

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