No account yet?
0) { $document =& JFactory::getDocument(); $document->addCustomTag( '' ); $document->addCustomTag( '' ); $document->addCustomTag( '' ); echo '
'; $k = count($data); $i = 0; while ($i < $k) { $dat = $data[$i]; $userid = $dat->id; $usernames = $dat->username; if ($dat->avatar != NULL) { if (ereg("^gallery", $dat->avatar) == false) { $dat->avatar = "tn" . $dat->avatar; } $img = ''.$dat->name.''; } else { $img = ''.$dat->name.''; } $arr = Array(); $sql = "SELECT s.id_group, g.name FROM #__gj_users s, #__gj_groups g where s.id_group = g.id AND s.id_user = " . $dat->id; $db->setQuery($sql); $grp = $db->loadObjectList(); if (count($grp) > 0) { $arr[0] = $grp[0]->name; $arr[1] = $grp[0]->id_group; } else { $arr[0] = NULL; $arr[1] = NULL; } $link_cb = JRoute::_("index.php?option=com_comprofiler&task=userProfile&user=$dat->id$itemid"); $link_mail = JRoute::_("index.php?option=com_comprofiler&task=emailUser&uid=$dat->id"); if ($pmssystem == "mesjim") { $link_pms = JRoute::_("index.php?option=com_jim&page=new&id=$dat->username"); } if ($pmssystem == "uddeim") { $link_pms = JRoute::_("index.php?option=com_uddeim&task=new&recip=$dat->id"); } if ($pmssystem == "pms") { $link_pms = JRoute::_("index.php?option=com_pms&page=new&id=$dat->username"); } if ($dat->id != $cuser->id && $dat->id > 0) { $loadfromsql = "SELECT a.* FROM #__comprofiler_members a WHERE a.referenceid=".$cuser->id." AND a.memberid=".$dat->id.""; $db->setQuery($loadfromsql); $resultados = $db->loadObjectList(); if (count($resultados) > 0) { $resultado = $resultados[0]; if (($resultado->accepted == 1) && ($resultado->pending == 0)) { $link_conect = JRoute::_("index.php?option=com_comprofiler&task=removeConnection&act=connection&connectionid=$dat->id"); $link_conectim = JURI::base() . "modules/mod_cb_superthumb/images/remove.png"; } else if (($resultado->accepted == 1) && ($resultado->pending == 1)) { $link_conect = JRoute::_("index.php?option=com_comprofiler&task=removeConnection&act=connection&connectionid=$dat->id"); $link_conectim = JURI::base() . "modules/mod_cb_superthumb/images/remove.png"; } } else { $link_conect = JRoute::_("index.php?option=com_comprofiler&task=addConnection&act=connection&connectionid=$dat->id"); $link_conectim = JURI::base() . "modules/mod_cb_superthumb/images/adicionar.png"; } } if ($arr[1] != NULL) { $tmp = JRoute::_("index.php?option=com_groupjive&task=showgroup&groupid=" . $arr[1]); $link_gjive = '' . $arr[0] . ''; $link_gjive2 = $tmp.$arr[0]; } else { $link_gjive = $arr[0]; } if ($viewname == 0) { $name = $dat->username; } else { $name = $dat->name; } echo '
'; if ($imagelinked == 1) { echo ''; } if ($shownamedetails == 1) { if ($usernamelinked == 1) { echo ''; } echo $name; if ($usernamelinked == 1) { echo ''; } } if(($viewgroup == 1) && ($grouplink == 0)) { echo '
'.$link_gjive.'
'; } if ($toolbar == 1) { echo '
'; if ($profilelink == 1) { echo ''; } if ($arr[1] != NULL) { if ($grouplink == 1) { echo ''; } } if (($sendpm == 1) && ($cuser->id != 0)) { if(!empty($link_pms)) { echo ''; } } if (($adddelete == 1) && ($cuser->id != 0)) { if(!empty($link_conect)) { echo ''; } } if ($sendmail == 1 && ($cuser->id != 0)) { if(!empty($link_mail)) { echo ''; } } echo '
'; } echo '
'; $i++; } echo '
'; } else { if ($modulename == 8) { echo "
You don't have any friend connection.
"; } if ($modulename == 9) { echo "
No online user.
"; } } if ($modulename == 8) { echo '

Manage connection'; if ($user != $cuser->id && $user > 0) { $sql = "SELECT a.* FROM #__comprofiler_members a WHERE a.referenceid=".$cuser->id." AND a.memberid=".$user.""; $db->setQuery($sql); $rows = $db->loadObjectList(); if (count($rows) > 0) { $row = $rows[0]; if (($row->accepted == 1) && ($row->pending == 0)) { echo ' | Revoke'; echo ''; echo 'Remove Connection'; echo ''; } else if (($row->accepted == 1) && ($row->pending == 1)) { echo ' | Remove'; echo ''; echo 'Revoke Connection'; echo ''; } } else { echo ' | Add'; echo ''; echo 'Request Connection'; echo ''; } } echo '
'; } ?>
banner

Latest bulletins

Who's Online

We have 1 guest online

CB Online

None

Latest Album