Sorry, Eloy, my directions were wrong.
I've changed hiddentopics to hiddensections ...
This commit is contained in:
+5
-5
@@ -99,13 +99,13 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign=top>
|
||||
<td align="right"><P><?php print_string("hiddentopics") ?>:</td>
|
||||
<td align="right"><P><?php print_string("hiddensections") ?>:</td>
|
||||
<td><?php
|
||||
unset($choices);
|
||||
$choices["0"] = get_string("hiddentopicscollapsed");
|
||||
$choices["1"] = get_string("hiddentopicsinvisible");
|
||||
choose_from_menu ($choices, "hiddentopics", $form->hiddentopics, "");
|
||||
helpbutton("coursehiddentopics", get_string("hiddentopics")); ?>
|
||||
$choices["0"] = get_string("hiddensectionscollapsed");
|
||||
$choices["1"] = get_string("hiddensectionsinvisible");
|
||||
choose_from_menu ($choices, "hiddensections", $form->hiddensections, "");
|
||||
helpbutton("coursehiddensections", get_string("hiddensections")); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr valign=top>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
<p align="center"><b>Course hidden sections</b></p>
|
||||
|
||||
<P>This option allows you to decide how the hidden sections in your course
|
||||
are displayed to students.</p>
|
||||
|
||||
<p>By default, a small area is shown (in collapsed form, usually gray) to
|
||||
indicate where the hidden section is, though they still can not actually see
|
||||
the hidden activities and texts. This is particularly useful
|
||||
in the Weekly format, so that non-class weeks are clear.</p>
|
||||
|
||||
<p>If you choose, these can be completely hidden, so that students
|
||||
don't even know sections of the course are hidden</p>
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
<p align="center"><b>Course hidden topics</b></p>
|
||||
|
||||
<P>This option allows you to decide how the hidden topics in your course
|
||||
are going to be displayed to students.</p>
|
||||
|
||||
<p>They can be completely hidden or shown in collapsed form.</p>
|
||||
|
||||
<p>This setting only affects courses using the "Topics" format.</p>
|
||||
|
||||
+3
-3
@@ -451,9 +451,9 @@ $string['helptext'] = 'How to write text';
|
||||
$string['helpwiki'] = 'How to write Wiki text';
|
||||
$string['helpwriting'] = 'Write carefully';
|
||||
$string['hide'] = 'Hide';
|
||||
$string['hiddentopics'] = 'Hidden Topics';
|
||||
$string['hiddentopicscollapsed'] = 'Hidden topics are shown in collapsed form';
|
||||
$string['hiddentopicsinvisible'] = 'Hidden topics are completely invisible';
|
||||
$string['hiddensections'] = 'Hidden Topics';
|
||||
$string['hiddensectionscollapsed'] = 'Hidden sections are shown in collapsed form';
|
||||
$string['hiddensectionsinvisible'] = 'Hidden sections are completely invisible';
|
||||
$string['hidepicture'] = 'Hide picture';
|
||||
$string['hits'] = 'Hits';
|
||||
$string['hitsoncourse'] = 'Hits on $a->coursename by $a->username';
|
||||
|
||||
+4
-4
@@ -744,14 +744,14 @@ function main_upgrade($oldversion=0) {
|
||||
table_column("event", "", "format", "integer", "4", "unsigned", "0", "not null", "description");
|
||||
}
|
||||
|
||||
if ($oldversion < 2004042703) {
|
||||
set_config("enablerssfeeds",0);
|
||||
}
|
||||
|
||||
if ($oldversion < 2004042900) {
|
||||
execute_sql(" ALTER TABLE `{$CFG->prefix}course` DROP `showrecent` ");
|
||||
}
|
||||
|
||||
if ($oldversion < 2004043001) { /// Change hiddentopics to hiddensections
|
||||
table_column("course", "hiddentopics", "hiddensections", "integer", "2", "unsigned", "0", "not null");
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ CREATE TABLE `prefix_course` (
|
||||
`maxbytes` int(10) unsigned NOT NULL default '0',
|
||||
`showreports` int(4) unsigned NOT NULL default '0',
|
||||
`visible` int(1) unsigned NOT NULL default '1',
|
||||
`hiddentopics` int(1) unsigned NOT NULL default '0',
|
||||
`hiddensections` int(2) unsigned NOT NULL default '0',
|
||||
`groupmode` int(4) unsigned NOT NULL default '0',
|
||||
`groupmodeforce` int(4) unsigned NOT NULL default '0',
|
||||
`lang` varchar(10) NOT NULL default '',
|
||||
|
||||
@@ -482,15 +482,16 @@ function main_upgrade($oldversion=0) {
|
||||
}
|
||||
|
||||
if ($oldversion < 2004042701) { /// Add hiddentopics field to control hidden topics behaviour
|
||||
table_column("course", "", "hiddentopics", "integer", "1", "unsigned", "0", "not null", "visible");
|
||||
#table_column("course", "", "hiddentopics", "integer", "1", "unsigned", "0", "not null", "visible");
|
||||
#See 'hiddensections' further down
|
||||
}
|
||||
|
||||
if ($oldversion < 2004042702) { /// Add a format field for the description
|
||||
table_column("event", "", "format", "integer", "4", "unsigned", "0", "not null", "description");
|
||||
}
|
||||
|
||||
if ($oldversion < 2004042703) {
|
||||
set_config("enablerssfeeds",0);
|
||||
if ($oldversion < 2004043001) { /// Add hiddentopics field to control hidden topics behaviour
|
||||
table_column("course", "", "hiddensections", "integer", "2", "unsigned", "0", "not null", "visible");
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
@@ -29,7 +29,7 @@ CREATE TABLE prefix_course (
|
||||
maxbytes integer NOT NULL default '0',
|
||||
showreports integer NOT NULL default '0',
|
||||
visible integer NOT NULL default '1',
|
||||
hiddentopics integer NOT NULL default '0',
|
||||
hiddensections integer NOT NULL default '0',
|
||||
groupmode integer NOT NULL default '0',
|
||||
groupmodeforce integer NOT NULL default '0',
|
||||
lang varchar(10) NOT NULL default '',
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
// database to determine whether upgrades should
|
||||
// be performed (see lib/db/*.php)
|
||||
|
||||
$version = 2004042900; // The current version is a date (YYYYMMDDXX)
|
||||
$version = 2004043001; // The current version is a date (YYYYMMDDXX)
|
||||
|
||||
$release = "1.3 development"; // User-friendly version number
|
||||
|
||||
|
||||
Reference in New Issue
Block a user