Hi,
Can anyone please help me with the following: The code below is the function to display users created groups on a page. I want to change this to display groups user has joined. Can anyone please help with this?
public function userViewSidebarGroups($user) { if ( !$user['total_groups'] || !session::permission('groups_browse', 'groups') && $user['user_id'] != session::item('user_id') ) { return ''; } loader::helper('groups/groups'); echo groups_helper::getGroups(array('user' => $user, 'limit' => 4, 'select_users' => false, 'template' => 'groups/helpers/groups_sidebar')); }
Thanks