BP Activity Fields
-
Howdy and Happy mom’s day to the ah… moms…
Hopefully there is someone in this community who knows the answer to these questions.1: How to list all most recent activity with the full body, not just truncataed to make a title.
2: How to get the original post ID number
3: How to get the original post author ID?I’ve been using this:
function getFeed($feed_url){ $content = file_get_contents($feed_url); $x = new SimpleXMLElement($content); for ($i=0; $i<=100; $i++){ $entry = $x->channel->item[$i]; if ($entry){ $link = $entry->link; $page_id = $entry->ID; $user = bp_get_activity_id(); $title = $entry->title; $object = $entry->object; $content = $entry->activity_comment; $tags = $entry->tag; if ($title){ echo $user.",".$page_id.",".$title.",".$link.",".$content.",".$tags."<br>\n"; } } } } getFeed($feed_url);
user, content tags page id do not generate anything only title and link work
and the title is truncated from the body (need the body) and the URL is not
the permalink its the straight /p/ number treatment.4: How do I get real permalinks to work in the activity stream?
Yeah I know its too much but I hope someone has already solved this.
Thanks for reading!
- You must be logged in to reply to this topic.