Exemplo n.º 1
0
 $friendModel = CFactory::getModel('friends');
 $profileid = JRequest::getVar('userid', 0, 'GET');
 $params->def('unreadCount', $inboxModel->countUnRead($filter));
 $params->def('pending', $friendModel->countPending($my->id));
 $params->def('myLink', CRoute::_('index.php?option=com_community&view=profile&userid=' . $my->id));
 $params->def('myName', $my->getDisplayName());
 $params->def('myAvatar', $my->getAvatar());
 $params->def('myId', $my->id);
 $params->def('myKarma', CUserPoints::getPointsImage($my));
 $params->def('enablephotos', $config->get('enablephotos'));
 $params->def('enablevideos', $config->get('enablevideos'));
 $params->def('enablegroups', $config->get('enablegroups'));
 $params->def('enableevents', $config->get('enableevents'));
 $enablekarma = $config->get('enablekarma') ? $params->get('show_karma', 1) : $config->get('enablekarma');
 $params->def('enablekarma', $enablekarma);
 $js = modHelloMeHelper::getHelloMeScript($my->getStatus(), COwnerHelper::isMine($my->id, $profileid));
 $document = JFactory::getDocument();
 $document->addScriptDeclaration($js);
 if ($params->get('enable_facebookconnect', '1')) {
     $params->def('facebookuser', modHelloMeHelper::isFacebookUser());
 } else {
     $params->def('facebookuser', false);
 }
 CFactory::load('helpers', 'string');
 $unreadCount = $params->get('unreadCount', 1);
 $pending = $params->get('pending', 1);
 $myLink = $params->get('myLink', 1);
 $myName = $params->get('myName', 1);
 $myAvatar = $params->get('myAvatar', 1);
 $myId = $params->get('myId', 1);
 $myKarma = $params->get('myKarma', 1);
Exemplo n.º 2
0
 $params->def('pending', $friendModel->countPending($my->id));
 $params->def('myLink', CRoute::_('index.php?option=com_community&view=profile&userid=' . $my->id));
 $params->def('myName', $my->getDisplayName());
 $params->def('myAvatar', $my->getAvatar());
 $params->def('myId', $my->id);
 $CUserPoints = new CUserPoints();
 $params->def('myKarma', $CUserPoints->getPointsImage($my));
 $params->def('enablephotos', $config->get('enablephotos'));
 $params->def('enablevideos', $config->get('enablevideos'));
 $params->def('enablegroups', $config->get('enablegroups'));
 $params->def('enableevents', $config->get('enableevents'));
 $enablekarma = $config->get('enablekarma') ? $params->get('show_karma', 1) : $config->get('enablekarma');
 $params->def('enablekarma', $enablekarma);
 $modHelloMeHelper = new modHelloMeHelper();
 $COwnerHelper = new COwnerHelper();
 $js = $modHelloMeHelper->getHelloMeScript($my->getStatus(), $COwnerHelper->isMine($my->id, $profileid));
 $document = JFactory::getDocument();
 $document->addScriptDeclaration($js);
 if ($params->get('enable_facebookconnect', '1')) {
     $params->def('facebookuser', $modHelloMeHelper->isFacebookUser());
 } else {
     $params->def('facebookuser', false);
 }
 $unreadCount = $params->get('unreadCount', 1);
 $pending = $params->get('pending', 1);
 $myLink = $params->get('myLink', 1);
 $myName = $params->get('myName', 1);
 $myAvatar = $params->get('myAvatar', 1);
 $myId = $params->get('myId', 1);
 $myKarma = $params->get('myKarma', 1);
 $enablephotos = $params->get('enablephotos', 1);