Add a videos tab next to profile photo on users’ profiles


#1

When I go to another users profile, to the right of their profile picture I see two tabs: 1) profile fields, 2) photos. These buttons are ajax and toggle/display info when pressed. Is there a way to add a third tab, videos, which would display all the users’ uploaded videos?

I know the code is in class-bp-tabs.php. I tried making a copy of class BpMembersTab_rt_media extends BpMembersTab {...} and changing the database query from photo to video, but I’m not sure how to get the tab generating function to create the 3rd tab that would display all the videos.


#2