The forum is in read only mode.
Hi, is ist possible to get all groups and events of a user inside of my component? I couldn´t find anything about this in the documentation. I tried CFactory::getRequestUser()->groups, but it´s an empty array although I´ve created a group.
Hi, - for group you should use this code :
$groupsModel = CFactory::getModel('groups'); $members = $groupsModel->getMembers($groupID, 0, true, false, SHOW_GROUP_ADMIN);
$event = JTable::getInstance('Event', 'CTable'); $event->load($eventID); $members = $event->getMembers(COMMUNITY_EVENT_STATUS_ATTEND, 0, false, true);
JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a full -fledged, social networking site
TRY NOW BUY NOW