Support » Plugin: User Login History » buddypress member profile page include user history.

  • jonney

    (@ganarukanaru)


    buddypress member profile page include user history.

    Is there any code that calls the required data from the individual user database?

Viewing 8 replies - 1 through 8 (of 8 total)
  • jonney

    (@ganarukanaru)

    wp_fa_user_logins

    user_id       
    time_login     
    time_logout    
    ip_address    
    browser      
    operating_system 
    countory_name   
    countory_code   
    login_status  

    I want to output to user profile page
     

    Plugin Author Faiyaz Alam

    (@faiyazalam)

    You can use the shortcode.
    Please see the description of the plugin.
    Thanks 🙂

    jonney

    (@ganarukanaru)

    Thank you for your reply.

    Where is the short code listed?

    https://try.wefoster.co/buddypress-demo/members/cecelia/

    I want to get the user ID displayed on this profile page and know the code written in PHP on this page.Not a logged in user。

    I love your plug-ins, so please let me know.

    jonney

    (@ganarukanaru)

    wp_fa_user_logins data

    It is a code to call this individual data from the user ID in the profile page.

    
    	$member_id = bp_displayed_user_id();
    		$x = ( get_user_meta( $member_id, 'staff', true ) == '' ) ? "Staff" : get_user_meta( $member_id, 'staff', true );
    			echo '<div class="staff-label">';
    			echo $x;
    			echo '</div>';
    

    I want to output from the table of this plug-in wp_fa_user_logins, not the data of the usermeta table.

    Plugin Author Faiyaz Alam

    (@faiyazalam)

    you can fetch the data from the table “wp_fa_user_logins” and show wherever you want. Hope this helps.

    Plugin Author Faiyaz Alam

    (@faiyazalam)

    To see the shortcode, please see the description of my plugin page.
    I am not asking for shortcode of buddypress plugin.

    jonney

    (@ganarukanaru)

    you can fetch the data from the table “wp_fa_user_logins” and show wherever you want. Hope this helps.

    Please tell me only one example.

    Plugin Author Faiyaz Alam

    (@faiyazalam)

    $results = $wpdb->get_results( “SELECT * FROM $table_name_with_prefix”);
    For more info click here.

    • This reply was modified 4 months, 1 week ago by  Faiyaz Alam.
Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.