Gettinng id of the activity status
-
Hi
I’m trying to fetch the content data from wp_db_activity table in order to escape from HTML tags that are wrapped around the content. I need this since I want to implement an audio player for links to mp3 files.
The `bp_activity_content_body()` gives me results like
`http://link_to_mp3_file`
while I need only the link
`http: // link_to_mp3_file`
without the markup for use in JavaScript.Using the following code in bp-themes/bp-default/activity/entry.php, I got only the activity ID, but cannot fetch the content data.
`$content = $wpdb->get_results($wpdb->prepare(“SELECT content FROM $bp->activity->table_name WHERE id = %d” , bp_activity_id()));
`I’m new to BuddyPress, and still learning the code, so any help would be great.
Thanks in advance
- The topic ‘Gettinng id of the activity status’ is closed to new replies.