Get the newest video from a user?

I’d like to get the latest video a user has uploaded and place it in their profile page. How would I do this without placing a gallery into the page?

@pablo631, Use this code. It will fetch 5 latest videos uploaded by a user. function show_last_n_video($n = 5) { if ($user_id = bp_displayed_user_id()) { $model = new RTMediaModel(); $results = $model->get(array('media_type' => 'video', 'context' => 'profile', 'context_id' => $user_id), 0, $n); // $results contain an array of video uploaded by the user. // your code here } }

You can also check this support thread for the same ->

Thanks. I'm getting a not found on that link though.