[svn r19693] FS#4008 - Restoring the settings for the online editor in course description tool, introduction section. Adding comments in all introduction sections to protect their settings.

skala
Ivan Tcholakov 16 years ago
parent 1c5bbf50e7
commit 508d22fdbb
  1. 4
      main/announcements/announcements.php
  2. 10
      main/blog/blog.php
  3. 4
      main/calendar/agenda.php
  4. 8
      main/course_description/index.php
  5. 5
      main/course_home/course_home.php
  6. 4
      main/document/document.php
  7. 2
      main/dropbox/index.php
  8. 4
      main/exercice/exercice.php
  9. 3
      main/exercice/export/exercise_import.php
  10. 2
      main/forum/forumsearch.php
  11. 2
      main/forum/index.php
  12. 2
      main/glossary/index.php
  13. 26
      main/gradebook/index.php
  14. 4
      main/group/group.php
  15. 4
      main/group/group_space.php
  16. 11
      main/inc/lib/search/search_widget.php
  17. 4
      main/link/link.php
  18. 4
      main/newscorm/document.php
  19. 5
      main/newscorm/lp_list.php
  20. 2
      main/notebook/index.php
  21. 6
      main/survey/survey_list.php
  22. 4
      main/user/user.php
  23. 7
      main/wiki/index.php
  24. 6
      main/work/work.php

@ -1,4 +1,4 @@
<?php //$Id: announcements.php 19608 2009-04-07 18:04:42Z cvargas1 $
<?php //$Id: announcements.php 19693 2009-04-09 19:55:28Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -851,6 +851,8 @@ if($_REQUEST['publish_survey'])
Tool Title
====================================================*/
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -245,9 +245,6 @@ switch ($current_page)
-----------------------------------------------------------
*/
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';
echo '<div class=actions>';
?>
<a href="<?php echo api_get_self(); ?>?blog_id=<?php echo $blog_id ?>" title="<?php echo get_lang('Home') ?>"><?php echo Display::return_icon('blog.gif', get_lang('Home')).get_lang('Home') ?></a>
@ -257,10 +254,15 @@ echo '<div class=actions>';
<?php
echo '</div>';
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';
Display::display_introduction_section(TOOL_BLOG);
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
//
//Display::display_header($nameTools,'Blogs');
?>

@ -1,4 +1,4 @@
<?php //$Id: agenda.php 18979 2009-03-11 22:43:40Z cfasanando $
<?php //$Id: agenda.php 19693 2009-04-09 19:55:28Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -234,6 +234,8 @@ $is_allowed_to_edit = api_is_allowed_to_edit(false,true) OR (api_get_course_sett
// tool introduction
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -1,4 +1,4 @@
<?php // $Id: index.php 19644 2009-04-08 14:55:54Z pcool $
<?php // $Id: index.php 19693 2009-04-09 19:55:28Z ivantcholakov $
/*
==============================================================================
@ -87,7 +87,11 @@ $nameTools = get_lang(TOOL_COURSE_DESCRIPTION);
-----------------------------------------------------------
*/
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';
Display::display_introduction_section(TOOL_COURSE_DESCRIPTION);

@ -1,4 +1,4 @@
<?php // $Id: course_home.php 18319 2009-02-07 00:03:42Z herodoto $
<?php // $Id: course_home.php 19693 2009-04-09 19:55:28Z ivantcholakov $
/*
==============================================================================
@ -179,10 +179,11 @@ $reqdate="&reqdate=$temps";
-----------------------------------------------------------
*/
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';
// A special case, some default settings do not fit. These settings should stay.
$fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/document/';
$fck_attribute['Config']['CreateDocumentDir'] = 'document/';

@ -1,4 +1,4 @@
<?php // $Id: document.php 19677 2009-04-09 09:49:45Z pcool $
<?php // $Id: document.php 19693 2009-04-09 19:55:28Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -349,6 +349,8 @@ if($to_group_id !=0) //add group name after for group documents
-----------------------------------------------------------
*/
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -122,6 +122,8 @@ $dropbox_unid = md5( uniqid( rand( ), true));
// introduction section
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -1,4 +1,4 @@
<?php // $Id: exercice.php 19674 2009-04-09 08:32:26Z pcool $
<?php // $Id: exercice.php 19693 2009-04-09 19:55:28Z ivantcholakov $
/*
==============================================================================
@ -388,6 +388,8 @@ include_once(api_get_path(LIBRARY_PATH).'events.lib.inc.php');
event_access_tool(TOOL_QUIZ);
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -100,10 +100,11 @@ include api_get_path(INCLUDE_PATH) . '/header.inc.php';
//display title
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';
// TODO: These settings to be checked when it is possible.
$fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/document/';
$fck_attribute['Config']['CreateDocumentDir'] = '../../../courses/'.api_get_course_path().'/document/';

@ -107,6 +107,8 @@ api_display_tool_title($nameTools);
// tool introduction
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -133,6 +133,8 @@ api_display_tool_title($nameTools);
// tool introduction
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -36,6 +36,8 @@ Display::display_header(get_lang(ucfirst($tool)));
// tool introduction
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -70,13 +70,16 @@ if (isset($_GET['isStudentView'])) {
if ( (isset($_GET['selectcat']) && $_GET['selectcat']>0) && (isset($_SESSION['studentview']) && $_SESSION['studentview']=='studentview') ) {
Display :: display_header(get_lang('Details'));
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
//Introduction tool: student view
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Gradebook';
Display::display_introduction_section(TOOL_GRADEBOOK);
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
//
$category= $_GET['selectcat'];
$stud_id=api_get_user_id();
$course_code=api_get_course_id();
@ -94,13 +97,16 @@ if ( (isset($_GET['selectcat']) && $_GET['selectcat']>0) && (isset($_SESSION['st
if ( !isset($_GET['selectcat']) && ($_SESSION['studentview']=='studentview') || (isset($_GET['isStudentView']) && $_GET['isStudentView']=='true') ) {
// if ( !isset($_GET['selectcat']) && ($_SESSION['studentview']=='studentview') && ($status<>1 && !api_is_platform_admin()) || (isset($_GET['isStudentView']) && $_GET['isStudentView']=='true' && $status<>1 && !api_is_platform_admin()) ) {
Display :: display_header(get_lang('Gradebook'));
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
//Introduction tool: student view
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Gradebook';
Display::display_introduction_section(TOOL_GRADEBOOK);
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
//
$stud_id=api_get_user_id();
$course_code=api_get_course_id();
$session_id=api_get_session_id();
@ -744,15 +750,13 @@ if (api_is_platform_admin() || api_is_allowed_to_create_course() || $status==1)
-----------------------------------------------------------
*/
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Gradebook';
Display::display_introduction_section(TOOL_GRADEBOOK);
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
//
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Gradebook';
Display::display_introduction_section(TOOL_GRADEBOOK);
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
if ( (isset ($_GET['selectcat']) && $_GET['selectcat']<>0) ) {
//

@ -1,4 +1,4 @@
<?php // $Id: group.php 19529 2009-04-03 16:23:35Z herodoto $
<?php // $Id: group.php 19693 2009-04-09 19:55:28Z ivantcholakov $
/*
==============================================================================
@ -89,6 +89,8 @@ Display::display_header(get_lang('Groups'));
// introduction section
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -1,4 +1,4 @@
<?php //$Id: group_space.php 19369 2009-03-26 22:29:27Z herodoto $
<?php //$Id: group_space.php 19693 2009-04-09 19:55:28Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -98,6 +98,8 @@ Display::display_header($nameTools,"Group");
-----------------------------------------------------------
*/
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -315,14 +315,21 @@ function search_widget_show($action='index.php') {
echo '<h2>'.get_lang('Search').'</h2>';
// introduction section
// TODO: Settings for the FCKEditor to be added for the introduction section.
// The settings here for the online editor are needed and they are specific for the introduction section.
// You may test and modify them, but please, don't delete them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';
// TODO: Settings for the FCKEditor to be checked (insert an image for example). Probably this is a special case here.
if (api_get_course_id() !== -1)
if (!empty($_SESSION['_gid'])) {
Display::display_introduction_section(TOOL_SEARCH.$_SESSION['_gid'],'left');
} else {
Display::display_introduction_section(TOOL_SEARCH,'left');
}
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
$op = 'or';
if (!empty($_REQUEST['operator']) && in_array($op,array('or','and'))) {
$op = $_REQUEST['operator'];

@ -1,4 +1,4 @@
<?php // $Id: link.php 19491 2009-04-02 00:15:47Z iflorespaz $
<?php // $Id: link.php 19693 2009-04-09 19:55:28Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -183,6 +183,8 @@ if(isset($_GET['action']))
-----------------------------------------------------------
*/
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -192,11 +192,13 @@ api_display_tool_title($nameTools);
(editable by course admins)
-----------------------------------------------------------
*/
// The settings here for the online editor are needed and they are specific for the introduction section.
// You may ajust them if it is needed, but please, don't delete them.
//TODO: check see if we need, it seems not working here
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '400';
$fck_attribute['ToolbarSet'] = 'LearnPath';
// TODO: These settings to be checked when it is possible.
$fck_attribute['Config']['InDocument'] = false;
$fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/document/';

@ -88,13 +88,12 @@ Display::display_header($nameTools,"Path");
-----------------------------------------------------------
*/
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';
// These settings should stay here.
// TODO: Here a calculation mechanism has to be added in order the editor to work
// properly with documents that are not at the root of the repository.
$fck_attribute['Config']['CreateDocumentWebDir'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/document/';
$fck_attribute['Config']['CreateDocumentDir'] = '../../courses/'.api_get_course_path().'/document/';
$fck_attribute['Config']['BaseHref'] = api_get_path('WEB_COURSE_PATH').api_get_course_path().'/';

@ -39,6 +39,8 @@ Display::display_header(get_lang(ucfirst($tool)));
// tool introduction
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -1,4 +1,4 @@
<?php // $Id: survey_list.php 18319 2009-02-07 00:03:42Z herodoto $
<?php // $Id: survey_list.php 19693 2009-04-09 19:55:28Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -27,7 +27,7 @@
* @author unknown, the initial survey that did not make it in 1.8 because of bad code
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University: cleanup, refactoring and rewriting large parts of the code
* @author Julio Montoya Armas <gugli100@gmail.com>, Dokeos: Personality Test modification and rewriting large parts of the code
* @version $Id: survey_list.php 18319 2009-02-07 00:03:42Z herodoto $
* @version $Id: survey_list.php 19693 2009-04-09 19:55:28Z ivantcholakov $
*
* @todo use quickforms for the forms
*/
@ -81,6 +81,8 @@ Display :: display_header($tool_name,'Survey');
// introduction section
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -1,4 +1,4 @@
<?php // $Id: user.php 19524 2009-04-03 13:01:12Z herodoto $
<?php // $Id: user.php 19693 2009-04-09 19:55:28Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -328,6 +328,8 @@ $is_allowed_to_track = ($is_courseAdmin || $is_courseTutor) && $_configuration['
// introduction section
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

@ -164,14 +164,19 @@ else
MAIN CODE
==============================================================================
*/
// introduction section
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';
// introduction section
Display::display_introduction_section(TOOL_WIKI);
$fck_attribute = null; // Clearing this global variable immediatelly after it has been used.
/*
-----------------------------------------------------------
Wiki configuration settings

@ -1,4 +1,4 @@
<?php //$Id: work.php 19500 2009-04-02 15:15:56Z cvargas1 $
<?php //$Id: work.php 19693 2009-04-09 19:55:28Z ivantcholakov $
/* For licensing terms, see /dokeos_license.txt */
/**
* @package dokeos.work
@ -6,7 +6,7 @@
* @author Patrick Cool <patrick.cool@UGent.be>, Ghent University - ability for course admins to specify wether uploaded documents are visible or invisible by default.
* @author Roan Embrechts, code refactoring and virtual course support
* @author Frederic Vauthier, directories management
* @version $Id: work.php 19500 2009-04-02 15:15:56Z cvargas1 $
* @version $Id: work.php 19693 2009-04-09 19:55:28Z ivantcholakov $
*
* @todo refactor more code into functions, use quickforms, coding standards, ...
*/
@ -382,6 +382,8 @@ if (!empty ($_POST['changeProperties'])) {
// introduction section
// The settings here for the online editor are needed and they are specific for the introduction section.
// Please, preserve them.
$fck_attribute['Width'] = '100%';
$fck_attribute['Height'] = '300';
$fck_attribute['ToolbarSet'] = 'Introduction';

Loading…
Cancel
Save