860 Commits

Author SHA1 Message Date
mjollnir_
61e1af73ff Apparently I forgot to commit this new file when committing the import course content stuff. Here it is! 2005-01-31 04:26:22 +00:00
defacer
7542a4e574 Dropping the use of MOODLE_PAGE_COURSE <gasp>!
The new constant is PAGE_COURSE_VIEW, and it's more streamlined with the
new CSS-related ids for 1.5. There are great possibilities for the future
here, so we 're getting ready.

On the other hand, this has to be the ugliest hack I 've ever inflicted
on any program (look at pagelib.php). Thankfully it will only stay for just
a little while.
2005-01-31 02:18:15 +00:00
urs_hunkler
dcf10978ca this is a course format for pdas. I changed the three column layout to a three row layout - the content is shown in one long row.
* first the content of the left column
* beyond the courses
* at last the content of the right column

It hasn't got a name to select in the language pack yet, so please selct it by [[formatpda]].
2005-01-30 23:09:35 +00:00
moodler
d0388ebe95 Added links to unread notices on course-view and forum-index 2005-01-30 04:47:09 +00:00
moodler
aa040665f8 Don't cache that string. :-) 2005-01-29 10:03:00 +00:00
moodler
546699899a FIxed the wording of the unread post notices on the course page 2005-01-29 09:56:42 +00:00
moodler
f37da85054 MAJOR NEW FEATURE: Tracking of read/unread posts
Many thanks to Mike Churchward for his work on this and persevering
with sending updated versions to me.  :-)

Shane and I have polished it up, rewritten a few parts (display-related)
and here it is, finally in CVS!

I think there will still need to be some optimisation for the SQL,
since it's still pretty intensive. Perhaps some sort of caching in
the session that gets modified along with the database whenever
something gets read.

However if there are problems the whole thing can be switched off
in the forum module config so this is not crucially urgent.
2005-01-29 09:49:42 +00:00
defacer
2335781f1c Fixing incorrect use of optional_param. 2005-01-28 00:02:33 +00:00
urs_hunkler
ee4dc51eec changed the name of the special course div to "course-contend" 2005-01-25 15:54:00 +00:00
moodler
554cec9f27 Removed a lot of THEMES and some other clean up
A LOT of clean up and speed-up is still possible in these
important files by converting all "strings" to 'strings'
2005-01-25 14:18:51 +00:00
moodler
810393c804 Removed THEME from many course files 2005-01-25 14:03:43 +00:00
martinlanghoff
acba70d2db Merged from MOODLE_14_STABLE - Ensuring correct sortorder at the beginning of the category when creating courses. 2005-01-25 05:03:43 +00:00
mjollnir_
5f37b628ae Update for meta courses. New table renamed from meta_course to course_meta (and upgrade script provided in mysql.php and postgres7.php) and new field in course table renamed from meta_course to metacourse. Associated changes in code. Please test me! 2005-01-25 04:33:02 +00:00
mjollnir_
be4f36a3a7 New files for meta courses 2005-01-24 22:23:01 +00:00
mjollnir_
b61efafba5 Initial checkin for new meta courses feature. Please test!
See http://moodle.org/mod/forum/discuss.php?d=17269 for description.
2005-01-24 22:21:28 +00:00
stronk7
1082105205 Modify sesskey behaviour. SC#73 2005-01-22 18:53:44 +00:00
gustav_delius
446d87651b fixed my own stupid single/double quote mistake 2005-01-22 15:22:06 +00:00
martinlanghoff
e069b3e2fe Merged from MOODLE_14_STABLE - Closing SC#66 - more 2005-01-22 09:06:51 +00:00
martinlanghoff
1ad9d071c9 Merged from MOODLE_14_STABLE - Closing SC#66 2005-01-22 09:00:42 +00:00
urs_hunkler
5c0f8cab97 table ID was written behind the closing tag of the table - corrected. 2005-01-18 19:53:56 +00:00
urs_hunkler
dc140b6cc0 _ added ids for the layout table 2005-01-18 11:11:26 +00:00
urs_hunkler
daa27ce409 _ added the div framework 2005-01-18 11:08:58 +00:00
martinlanghoff
d3e6cd798a Merged from MOODLE_14_STABLE - Added an early session_write_close() to loglive.php and log.php pages 2005-01-17 05:42:27 +00:00
gustav_delius
798b70a12f If the focus is on the section that is being moved then move the focus along. Fixes bug 2026 2005-01-16 17:54:34 +00:00
gustav_delius
181b888e16 ugly hack to fix bug 1824 about wrong fullname format in log info. 2005-01-16 17:27:40 +00:00
mjollnir_
6c4e8471cd Merged from MOODLE_14_STABLE: Fixing warning about invalid argument for foreach in course/lib.php in log selector form 2005-01-13 03:56:34 +00:00
moodler
32503db1c6 FIxes for bug 2379 (merged from stable) 2005-01-13 03:02:23 +00:00
moodler
15cf5d2174 Don't show "No courses in this category" if there are sub-categories 2005-01-11 08:00:26 +00:00
moodler
e05bcf2fae 1. On category listing, don't print category count at all if it's zero anyway
2.  Cleaned up some complex code to use 'strings' instead of "parsed strings".
2005-01-11 07:56:45 +00:00
moodler
1040374833 Add categories editing even with one category 2005-01-11 07:01:04 +00:00
stronk7
41f3270dab Typo. Bug 2351.
Merged from MOODLE_14_STABLE
2005-01-08 10:49:38 +00:00
martinlanghoff
559027a76c Merged from MOODLE_14_STABLE
Fixes bug 2334 http://moodle.org/bugs/bug.php?op=show&bugid=2334

Courses will sometimes fail to be moved across categories if there are collisions in the sortorder field, due to a combined unique index.

With this fix, the 'category move' logic is aware of sortorder and will do The Right Thing(tm) putting the course at the beginning of the category: MIN(sortorder)-1 WHERE category=$destcategory->id .

Also added further cleanup patches.
2005-01-04 22:52:29 +00:00
gustav_delius
15939a2fc9 Introduced the language string 'editingteachershort' and set it to 'Editor'. Also fixed a typo. This closes bug 1949 2005-01-02 07:42:24 +00:00
gustav_delius
34283aa87d The teacher now can choose whether to see the advanced quiz
options or not. This is handled as in the resource module. The
"Show advanced options" button is only shown if the admin has
chosen to declare some of the options as advanced.

There are now 4 review options as suggested by Martin in
http://moodle.org/mod/forum/discuss.php?d=16709

Provides separate buttons "Update this quiz" and "Edit questions",
see http://moodle.org/mod/forum/discuss.php?d=16708. To make this
possible edit.php can now be called with a quiz id and it saves
its data itself rather than relying on mod.php.

mod.html now has a "Save changes" and a "Save changes and edit questions" button.

"Attempt quiz now" button gets a different language string for
re-attempts. This is currently set to "Re-attempt quiz".

After viewing the feedback for an attempt the "Continue" button
leads back to the course homepage, as requested in bugs 1224 and
1976. If there is no feedback the user is brought straight to quiz/view.php.
2005-01-02 07:15:19 +00:00
moodler
c3dd541003 More links for other non-activity modules 2004-12-28 07:26:18 +00:00
moodler
0f06e85abb Merged course listing fix from stable 2004-12-15 13:33:40 +00:00
moodler
dad3f933fb Allow groups to have enrolment keys in addition to the course enrolment key.
If a user enrols with a group key they will be added to the course and to
the group.
2004-12-14 08:12:12 +00:00
mjollnir_
bf35eb157c Small bug fix in sql in log page for site errors (infected file uploads & login errors) 2004-12-09 21:35:20 +00:00
ikawhero
9a1eb4997f Changes for XHTML and accessibility compatibility 2004-12-09 08:01:25 +00:00
ikawhero
85d25fd70d Minor change to enlarge the textarea for topic summary editing.
Was too small for summaries that included large headings or images.
2004-12-07 23:49:51 +00:00
gustav_delius
cb0d44c59f fixed warning when realuser is not set. 2004-12-07 08:33:52 +00:00
gustav_delius
a36a1759cf course.guest was not loaded from database but used in code. 2004-12-07 07:27:02 +00:00
moodler
e3f30ef2d6 Restore sessionIP when returning from loginas mode 2004-11-29 06:22:39 +00:00
moodler
861a9cfa28 Set sessionIP when logging-in as a user 2004-11-29 05:45:01 +00:00
defacer
9b12850043 Fix for bug 2241:
I hope this time I got everything changed to the new Page interface! I 'm
really sorry for messing up and breaking new installations... :(

Also moved the only two functions of the API outside the page_base class.
2004-11-29 04:19:05 +00:00
defacer
db019d9358 Ummm... more changes due to the renaming. 2004-11-25 17:35:25 +00:00
mjollnir_
76feee3f86 Merged from MOODLE_14_STABLE: Fix for invalid sql in postgres - don't query log table for what was in log display if log->info is not set 2004-11-23 23:27:18 +00:00
mjollnir_
8b19b04085 Bug fix for patch related to forcing searching in course/student.(html|php) if too many users, and bump to MAX_USERS_PER_PAGE to 5000 2004-11-23 00:39:29 +00:00
mjollnir_
60fdc71463 Slight change to log page so that for > 5000 courses or users we don't straight off load the huge drop down menus but instead default to whatever is normally selected, with an option for 'More' to display the full drop down for either. Also includes an Martin L patch for sql query that brought postgres to it's knees (Martin L patch is destined for MOODLE_14_STABLE as well) 2004-11-23 00:16:24 +00:00
mjollnir_
6a6f25af85 Merged from MOODLE_14_STABLE: Fix for bug #2207 - sortorder now honored in front page listing 2004-11-22 21:30:26 +00:00