Once it’s running.
Started 1 year, 5 months ago by: murasaki
Ok, what im trying to do is simple:
if ( bp_activity_latest_update() ) : then show the update else then show this
basically, it’s for the new users who obviously haven’t posted an update yet.
i figured it was something simple, anyone have any ideas?
or is that the wrong tag?
Try
if ( bp_get_activity_latest_update() ) bp_activity_latest_update(); //then show the update else // then show this
thanks alot boone! lol…i thought no one would EVER answer me lol.
your a life saver
Im haveing a problem lol. its only working on the members profile page, i want it to show on all pages. Its in the side bar, well, the idea is to show your latest post in the sidebar
Yeah, without a $user_id argument, it’ll only work on profile pages. See bp-activity/bp-activity-templatetags.php bp_activity_latest_update().
Try:
if ( bp_get_activity_latest_update( bp_loggedin_user_id() ) ) bp_activity_latest_update( bp_loggedin_user_id() ); //then show the update else // then show this
ha! there we go, and we’re in business! thanks again boone, i appreciate it
Where do i put the code??
I’d like to preface the update (it it’s available ) with: ‘and the latest update was:‘
Wrapping the update in italics and breaking the update from the preceeding “‘member’ was active 3 minutes ago”
I’ve tried some echos but it’s breaking for some reason unknown.
Ideas?
I was able to preface the update if it existed with this: ‘ $latest_update = bp_get_activity_latest_update(); if ( bp_get_activity_latest_update() ) echo “and the latest update was: $latest_update “; else ‘
Existing and new plugins/components and themes.
Show off your BuddyPress powered sites.
Problems with getting it running.
Discuss translating BuddyPress
Everything else.
Feature requests; criticism.
Post your add-ons here.
To start connecting please log in first.
Remember Me
Think you've found a bug with the software? Please report it here (use the same login credentials).