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

    Hi Jan,
    Thank you for the question.

    No, The plugin is not capable of recording non logged users. We store user id to relate and show later.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Recent visitors – charts #28037

    Hi Jan,
    Thank you for the question.

    Currently, It does not provide the option for showing chart.

    Since the data is present in database tables, you might hire a developer to develop this as a custom solution.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    Hi Plutus,
    That is the correct way to override.

    If it is not working, Please contact the theme author and seek their advice. They may be able to help better.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    Thank you. I am looking forward to it 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    Hi Frank,
    Thank you for posting here.

    There is a bug in BP Nouveau template that cases it.

    I have updated the code with the fix. Please use the following code

    
    function buddydev_filter_private_message_button_args( $args ) {
    
    	//if the user is logged in, we don't need to do anything
    	//Also, I am only handling it for profile buttons here
    	if ( is_user_logged_in() || ! bp_is_user() ) {
    		return $args;
    	}
    
    	$user_id = bp_displayed_user_id();
    
    	$args['must_be_logged_in'] = false; //show for non logged in too
    	//and redirect to our custom url containing the user id
    	$args['link_href'] = wp_login_url( site_url( '?message-redirect=' . $user_id ) );
    
    	return $args;
    }
    
    add_filter( 'bp_get_send_message_button_args', 'buddydev_filter_private_message_button_args' );
    
    /**
     * Fix for nouveau.
     */
    add_filter( 'bp_nouveau_get_members_buttons', function ( $buttons ) {
    	if ( ! isset( $buttons['private_message'] ) ) {
    		return $buttons;
    	}
    
    	$buttons['private_message']['button_attr']['href'] = wp_login_url( site_url( '?message-redirect=' . bp_displayed_user_id() ) );
    
    	return $buttons;
    } );
    
    /**
     * Redirect to the send message when the user logs in
     **/
    function buddydev_redirect_to_send_message_on_login() {
    
    //make sure it is our url set in previous step
    	if ( ! is_user_logged_in() || empty( $_GET['message-redirect'] ) ) {
    		return;
    	}
    
    //redirect to PM
    	$user_id = absint( $_GET['message-redirect'] );
    //let us make sure that user exists
    	$user = get_user_by( 'id', $user_id );
    //can not PM to invalid user
    //also you should not send message to yourself
    	if ( ! $user || $user->ID == bp_loggedin_user_id() ) {
    		return;
    	}
    
    	$url = bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . $user->user_login;
    
    	bp_core_redirect( $url );
    }
    
    add_action( 'bp_template_redirect', 'buddydev_redirect_to_send_message_on_login' );
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    Thank you, both of you.

    I see now.

    You mean the links to other sites shout open in new tab? I will add an update to make it that way. I will post back after the update.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348
    Brajesh Singh on in reply to: Can I Add Media Without a Gallery? #28010

    Hi Christian,

    Thank you for the reply.

    I am sorry. Currently, gallery are at the core of the plugin. A media can not be uploaded if the gallery does not exist.

    We want to change this and the upload experience but my biggest worry is how do we manage the upgrades form current version without breaking.

    Since our schedule for March does not permit it, we plan to work on it in April and we ill try to coincide with BuddyPress 6.0 release(at the end of April) . But, I am not sure currently, It may take some more time depending on the challenges we face.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    Hi Mical,
    Thank you for the patience.

    Please upgrade to 1.6.0. It allows template override for the member header list as well as the shortcodes.

    In order to override, Please copy

    
    recent-visitors-for-buddypress-profile/templates/recent-visitors/file 
    

    to

    
    yourtheme/buddypress/recent-visitors/file
    
    

    Example:- to override shortcodes/top-visitors.php

    Please copy

    
    
    recent-visitors-for-buddypress-profile/templates/recent-visitors/shortcodes/top-visitors.php
    
    

    to

    
    yourtheme/buddypress/recent-visitors/shortcodes/top-visitors.php
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25348

    Hi,
    Please allow me to check the username-emails-characters plugin today. I will get back to you in next 24 hours.

    Any plugin which works with the user registration process may override the email error inadvertently. I will check and confirm.

    Regards
    Brajesh