diff --git a/main/forum/forumbody.inc.php b/main/forum/forumbody.inc.php index 11c7cc9686..a25673c27b 100644 --- a/main/forum/forumbody.inc.php +++ b/main/forum/forumbody.inc.php @@ -5,6 +5,7 @@ $my_cid_req = Security::remove_XSS($_GET['cidReq']); $my_forum = Security::remove_XSS($_GET['forum']); $my_thread = Security::remove_XSS($_GET['thread']); $my_user_id = Security::remove_XSS($_GET['user_id']); +$user = Security::remove_XSS($_GET['user']); $my_idtextqualify = isset($_REQUEST['idtextqualify']) ? Security::remove_XSS($_REQUEST['idtextqualify']) : $qualify; $my_gradebook = Security::remove_XSS($_GET['gradebook']); $to_origin = Security::remove_XSS($_GET['origin']); @@ -16,30 +17,58 @@ $output = << + FIN; + $output .= ' - '.get_lang('User').' : -
'.get_name_user_by_id($userid).'
+ '.get_lang('User').' : +
'.get_name_user_by_id($userid).'
- '.get_lang('Thread').' : - + '.get_lang('Thread').' : +
'.$current_thread['thread_title'].'
+ + + '.get_lang('CourseUsers').' : + +
'.$result['user_course'].'
+ + + + + '.get_lang('PostsNumber').' : + +
'.$result['post'].'
+ + + + '.get_lang('NumberOfPostsForThisUser').' : + +
'.$result['user_post'].'
+ + + + '.get_lang('AveragePostPerUser').' : + +
'.round($result['user_post']/$result['post'],2).'
+ + -
'.get_lang('Qualification').' :
-
+
'.get_lang('Qualification').' :
+
  '.get_lang('MaxScore').' : '.$max_qualify.'
- -
+ +
diff --git a/main/forum/forumfunction.inc.php b/main/forum/forumfunction.inc.php index 296a1a3cba..af094686e3 100644 --- a/main/forum/forumfunction.inc.php +++ b/main/forum/forumfunction.inc.php @@ -1875,7 +1875,7 @@ function show_add_post_form($action='', $id='', $form_values='') { $form->addElement('static','Group','
'.get_lang('AdvancedParameters').'
'); $form->addElement('html','"; } $userid = (int)$_GET['user_id']; @@ -116,19 +118,10 @@ if(isset($_POST['idtextqualify'])) store_theme_qualify($userid,$threadid,$qualify,$_SESSION['_user']['user_id'],date('Y-m-d H:i:s'),''); } -$result = get_statistical_information($current_thread['thread_id'], $_GET['user'], $_GET['cidReq']); +$result = get_statistical_information($current_thread['thread_id'], $_GET['user_id'], $_GET['cidReq']); if($userinf['status']!='1') { echo '
'; require_once 'forumbody.inc.php'; - echo ''.get_lang('ViewHistoryChange').''; + //echo ''.get_lang('ViewHistoryChange').''; echo '
'; } -echo '
- '.get_lang('StatisticalForum').':
- ---------------------
- '.get_lang('UserCourse').' : '.$result['user_course'].'
- '.get_lang('NumberPosts').' : '.$result['post'].'
- '.get_lang('NumberUserPost').' : '.$result['user_post'].'
- '.get_lang('PromedioPostUser').' : '.$result['user_post']/$result['post'].'
-
- '; \ No newline at end of file diff --git a/main/forum/viewthread_flat.inc.php b/main/forum/viewthread_flat.inc.php index 7656831277..10a24939fa 100644 --- a/main/forum/viewthread_flat.inc.php +++ b/main/forum/viewthread_flat.inc.php @@ -73,9 +73,9 @@ foreach ($rows as $row) { $current_qualify_thread=show_qualify('1',$_GET['cidReq'],$_GET['forum'],$row['poster_id'],$_GET['thread']); if( isset($_GET['gradebook'])){ $info_thread=get_thread_information(Security::remove_XSS($_GET['thread'])); - echo "".icon('../img/new_test_small.gif',get_lang('Qualify'))."\n"; + echo "".icon('../img/new_test_small.gif',get_lang('Qualify'))."\n"; } else { - echo "".icon('../img/new_test_small.gif',get_lang('Qualify'))."\n"; + echo "".icon('../img/new_test_small.gif',get_lang('Qualify'))."\n"; } } } diff --git a/main/forum/viewthread_nested.inc.php b/main/forum/viewthread_nested.inc.php index 4d31b3c20a..7c1e207178 100644 --- a/main/forum/viewthread_nested.inc.php +++ b/main/forum/viewthread_nested.inc.php @@ -80,7 +80,7 @@ foreach ($rows as $post) { if($userinf['status']!='1') { if(api_is_allowed_to_edit()) { $current_qualify_thread=show_qualify('1',$_GET['cidReq'],$_GET['forum'],$post['user_id'],$_GET['thread']); - echo "".icon('../img/new_test_small.gif',get_lang('Qualify'))."\n"; + echo "".icon('../img/new_test_small.gif',get_lang('Qualify'))."\n"; } } echo '

'; diff --git a/main/forum/viewthread_threaded.inc.php b/main/forum/viewthread_threaded.inc.php index 1fe31c00d5..6192ea7f1f 100644 --- a/main/forum/viewthread_threaded.inc.php +++ b/main/forum/viewthread_threaded.inc.php @@ -246,7 +246,7 @@ $userinf=api_get_user_info($rows[$display_post_id]['user_id']); if(api_is_allowed_to_edit()) { $current_qualify_thread=show_qualify('1',$_GET['cidReq'],$_GET['forum'],$rows[$display_post_id]['user_id'],$_GET['thread']); - echo "".icon('../img/new_test_small.gif',get_lang('Qualify'))."\n"; + echo "".icon('../img/new_test_small.gif',get_lang('Qualify'))."\n"; } } echo '

';