BuddyBoss Home – Web Support Forums Themes Boss. theme How to get arg for 'What are you up to' Form

Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #41981
    @ignitionmktgny

    I am trying to display the member’s last status update (entered from the activity screen). In the boss theme it is in the ‘What are you up to’ form.

    Using bp_update_user_last_activity( $user_id ); function as stated from the buddy press 2.0 api.

    Thanks for the assistance.

    Answers

    #42050

    Alyssa
    Participant
    @alyssa-buddyboss

    @ignitionmktgny I’m afraid I’m not going to be of any assistance here, I haven’t had experience with this kind of function before. You will need to contact BuddyPress for support.

    #42236
    @ignitionmktgny

    to follow-up on this thread, here is what I have found for BP 2.0+.

    The first code bracket will display the last status. The second will create the form to update the status.

    <?php
    		$user_id = get_current_user_id();
    		$update = get_usermeta( $user_id, 'bp_latest_update' );
    		echo $update['content'];
    		echo "<br/>";
    	?>
    <?php
    		if ( is_user_logged_in() ) :
    		bp_get_template_part( 'activity/post-form' ); 
     		endif;
    	?>
    
    #42250

    Alyssa
    Participant
    @alyssa-buddyboss

    Thanks for the follow up!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘How to get arg for 'What are you up to' Form’ is closed to new replies.