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?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.