Adding xprofile fields to activity header
-
in the activity stream, for each entry there is the user’s avatar, and beside that a header that include their username, latest action (‘updated their profile’ or whatever), and below that smaller print indicating when they were last online.
That info is all in the activity-header generated on entry.php. How entry.php calls this info is to run the self-echoing function bp_activity_action.
I want to add xpfofile field data and the delete link to this header. Some would try to ram it into entry.php but then you must fuss around with the CSS to get the info up near or into the activity header, risking breaking something else.
I’m trying to add it to the bp_activity_action. I found a thread sort of on topic here, but this chap was trying to do something else and his self-discovered solution was to ram it into entry.php before the header rather than using the action hook.
I’ve created a simple function to test adding something to bp_activity_action, simply trying to add the word “success!” somewhere in the header:
function SN_member_header() { echo "success!"; } add_action( 'bp_activity_action', 'SN_member_header');
…but nothing appears. What am I missing?
- You must be logged in to reply to this topic.