Ho to display "Status Update" only – the right way
I like the added Status Updates component in trunk. I need to display only the Status Update by it self, without the ‘clear’ button, timestamp, or update box. So I use the following code in my template (I could make a function in my bp-custom I suppose). I am wondering if there is a better -shorter- approach even though there is nothing wrong with this either:
<?php global $bp; $user_id = $bp->displayed_user->id; $status = get_usermeta( $user_id, 'bp_status' ); echo $status['content']; ?>
I realize it is a new component, but was wondering if there are other bleeding edge developers out there, that could elaborate?
- The topic ‘Ho to display "Status Update" only – the right way’ is closed to new replies.