skala
Julio Montoya 16 years ago
commit 46cd2ee220
  1. 1
      main/auth/profile.php
  2. 6
      main/css/chamilo/default.css
  3. 1
      main/inc/ajax/.htaccess
  4. 4
      main/inc/ajax/social.ajax.php
  5. 2
      main/inc/banner.inc.php
  6. 20
      whoisonline.php

@ -293,6 +293,7 @@ if (is_profile_editable() && api_get_setting('profile', 'password') == 'true') {
// EXTRA FIELDS // EXTRA FIELDS
$extra = UserManager::get_extra_fields(0, 50, 5, 'ASC'); $extra = UserManager::get_extra_fields(0, 50, 5, 'ASC');
$extra_data = UserManager::get_extra_user_data(api_get_user_id(), true); $extra_data = UserManager::get_extra_user_data(api_get_user_id(), true);
foreach ($extra as $id => $field_details) { foreach ($extra as $id => $field_details) {
if ($field_details[6] == 0) { if ($field_details[6] == 0) {

@ -589,12 +589,16 @@ margin-top:0;
margin: 0 0 12px 0; margin: 0 0 12px 0;
padding: 0; padding: 0;
list-style-image:none;
list-style-position:outside;
list-style-type:none;
} }
.menulist li{ .menulist li{
float:left; /* float:left; */
/* margin-left:10px; */ /* margin-left:10px; */
margin-bottom:10px; margin-bottom:10px;
display:list-item;
} }
#centerwrap { #centerwrap {
float: left; float: left;

@ -0,0 +1 @@
Options -Indexes

@ -163,6 +163,10 @@ switch ($action) {
break; break;
case 'toogle_course': case 'toogle_course':
if (api_is_anonymous()){
echo '';
break;
}
require_once api_get_path(LIBRARY_PATH).'blog.lib.php'; require_once api_get_path(LIBRARY_PATH).'blog.lib.php';
require_once api_get_path(SYS_CODE_PATH).'forum/forumfunction.inc.php'; require_once api_get_path(SYS_CODE_PATH).'forum/forumfunction.inc.php';

@ -197,7 +197,7 @@ if ($_user['user_id'] && !api_is_anonymous()) {
} }
// My Profile // My Profile
if (api_get_setting('show_tabs', 'my_profile') == 'true' && api_get_setting('show_tabs', 'social') != 'true') { if (api_get_setting('show_tabs', 'my_profile') == 'true' && api_get_setting('allow_social_tool') != 'true') {
$navigation['myprofile'] = $possible_tabs['myprofile']; $navigation['myprofile'] = $possible_tabs['myprofile'];
} else { } else {
$menu_navigation['myprofile'] = $possible_tabs['myprofile']; $menu_navigation['myprofile'] = $possible_tabs['myprofile'];

@ -117,6 +117,7 @@ if ($_GET['chatid'] != '') {
// This if statement prevents users accessing the who's online feature when it has been disabled. // This if statement prevents users accessing the who's online feature when it has been disabled.
if ((api_get_setting('showonline', 'world') == 'true' && !$_user['user_id']) || ((api_get_setting('showonline', 'users') == 'true' || api_get_setting('showonline', 'course') == 'true') && $_user['user_id'])) { if ((api_get_setting('showonline', 'world') == 'true' && !$_user['user_id']) || ((api_get_setting('showonline', 'users') == 'true' || api_get_setting('showonline', 'course') == 'true') && $_user['user_id'])) {
if(isset($_GET['cidReq']) && strlen($_GET['cidReq']) > 0) { if(isset($_GET['cidReq']) && strlen($_GET['cidReq']) > 0) {
$user_list = Who_is_online_in_this_course($_user['user_id'], api_get_setting('time_limit_whosonline'), $_GET['cidReq']); $user_list = Who_is_online_in_this_course($_user['user_id'], api_get_setting('time_limit_whosonline'), $_GET['cidReq']);
} else { } else {
@ -125,8 +126,10 @@ if ((api_get_setting('showonline', 'world') == 'true' && !$_user['user_id']) ||
$total = count($user_list); $total = count($user_list);
if (!isset($_GET['id'])) { if (!isset($_GET['id'])) {
Display::display_header(get_lang('UsersOnLineList')); Display::display_header(get_lang('UsersOnLineList'));
if (api_get_setting('allow_social_tool') == 'true') {
echo '<div id="social-content-left">'; echo '<div id="social-content-left">';
//this include the social menu div //this include the social menu div
if (!api_is_anonymous()) { if (!api_is_anonymous()) {
@ -136,30 +139,31 @@ if ((api_get_setting('showonline', 'world') == 'true' && !$_user['user_id']) ||
if ($_GET['id'] == '') { if ($_GET['id'] == '') {
echo '<p><a class="refresh" href="javascript:window.location.reload()">'.get_lang('Refresh').'</a></p>'; echo '<p><a class="refresh" href="javascript:window.location.reload()">'.get_lang('Refresh').'</a></p>';
} else { } /*else {
if (0) { if (0) {
// if ($_user['user_id'] && $_GET["id"] != $_user['user_id']) { // if ($_user['user_id'] && $_GET["id"] != $_user['user_id']) {
echo '<a href="'.api_get_self().'?chatid='.Security::remove_XSS($_GET['id']).'">'.get_lang('SendChatRequest').'</a>'; echo '<a href="'.api_get_self().'?chatid='.Security::remove_XSS($_GET['id']).'">'.get_lang('SendChatRequest').'</a>';
} }
}*/
} else {
echo '<div class="actions-title">';
echo get_lang('UsersOnLineList');
echo '</div>';
} }
} }
if ($user_list) { if ($user_list) {
if (!isset($_GET['id'])) { if (!isset($_GET['id'])) {
if (api_get_setting('allow_social_tool') == 'true') {
echo '<div id="social-content-right">'; echo '<div id="social-content-right">';
//this include the social menu div //this include the social menu div
if (!api_is_anonymous()) { if (!api_is_anonymous()) {
echo UserManager::get_search_form($_GET['q']); echo UserManager::get_search_form($_GET['q']);
} }
SocialManager::display_user_list($user_list);
echo '</div>';
/*
if (!api_is_anonymous()) {
echo UserManager::get_search_form($_GET['q']);
} }
SocialManager::display_user_list($user_list); SocialManager::display_user_list($user_list);
*/ echo '</div>';
} else { } else {
//individual user information - also displays header info //individual user information - also displays header info
SocialManager::display_individual_user(Security::remove_XSS($_GET['id'])); SocialManager::display_individual_user(Security::remove_XSS($_GET['id']));

Loading…
Cancel
Save