How to display images in member-header?

Hi! I’ve been trying to get the photos-in-member-header thing to work, but no luck.
I followed this old link:

There has to be a way to do this, right?

I am creating an membership agency for artists and would like a simple buddypress profile with all info and all the pictures in one place for easy access, and rtMedia is the epic solition for me!

Can you please help me? (And not just point me towards the documentation, because it’s like pig-latin…)

The link is somehow invisible? Try again:

http://wordpress.org/support/topic/how-to-display-images-member-header

Please check this support thread -> https://rtcamp.com/support/topic/how-to-activate-the-lightbox/

Thank you, Ritesh, but the link does not work…

So, you are not able to access the link or what??

Anyways, here is the code snippet. Add this function in your theme’s functions.php file and call it in BuddyPress member-header template .

function show_last_n_images_group($n = 5) {  
    if ($user_id = bp_displayed_user_id()) {  
        $model = new RTMediaModel();  
        $results = $model->get(array('media_type' => 'photo', 'context' => 'profile', 'context_id' => $user_id), 0, $n);  
        if ($results) {  
            echo '';  
        }  
    }  
}