900 Commits

Author SHA1 Message Date
moodler
9df665e7bf When updating we don't always want to change visibility and groupmode bug 2561 2005-02-16 03:11:52 +00:00
moodler
ee350ee9a3 FIxed a string name 2005-02-14 16:06:50 +00:00
moodler
6cba878db8 Bring weekly into line with topics 2005-02-14 16:02:32 +00:00
moodler
c4bff2fb73 Missed a spot there 2005-02-14 16:01:45 +00:00
moodler
549f7213e4 Tiny cleanups to bring into line with "weeks" format 2005-02-14 15:59:34 +00:00
moodler
06959cfca2 New shorted class names, better nested 2005-02-14 15:36:46 +00:00
gustav_delius
be495e2097 Only course creators can move courses to a different category. This fixes bug 2065. 2005-02-13 22:52:20 +00:00
gustav_delius
8dc93b9445 Invisible sections are no longer shown in jump menu, see bug 2085 2005-02-13 22:23:45 +00:00
gustav_delius
8a6e783ff0 small fix 2005-02-13 21:43:43 +00:00
gustav_delius
db837a6645 Fixed behaviour of groups.php in the case of an empty group, see bug 2346 2005-02-13 19:38:10 +00:00
gustav_delius
f1cc0382a2 Clicking on the icons controlling a section brings you back to the same section, see bug 2433 2005-02-13 15:22:04 +00:00
moodler
c46f27a34f A large clean up of the topics format to
- remove most of the table properties
   - add new classes where necessary to let CSS in
   - rewrote all the PHP strings using '' for speed.
2005-02-13 14:38:59 +00:00
gustav_delius
a10464d6cd Moved visibility code to make sure that activities added in hidden sections are hidden. 2005-02-13 09:35:40 +00:00
moodler
5ebb746b91 $course is now optional for new mod.html functions 2005-02-13 06:31:01 +00:00
moodler
99349afc9a Fixed logic for new course modules 2005-02-13 06:24:21 +00:00
moodler
1f15db9dee Changed the wording again .. should be easier to scan I hope 2005-02-13 06:15:12 +00:00
moodler
da2224f83d Change the string for the hide/show ... showimmediately makes sense
on a new creation but not when editing an activity
2005-02-13 06:07:06 +00:00
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
defacer
a3f24f7cc5 Improvements in how incoming parameters are handled, how $editing is handled.
More consistency across course formats for editing stuff, using $PAGE.

Also a "bugfix": when turning editing off, cancel moving an activity if you
were in the middle of doing so.
2005-02-12 13:09:18 +00:00
defacer
ff0c7de0b0 Removed dead code. 2005-02-12 12:49:46 +00:00
defacer
446390fb47 Lots of improvements in markup and styles for courses.
Finalized and correctly distributed the calendar styles.
2005-02-12 12:40:04 +00:00
defacer
e96ba29d6f Vastly improved styles, lots of inline styles removed, markup improved. 2005-02-12 11:37:09 +00:00
moodler
32e2b30209 This more or less completes the PHP side of the 1.5 themes
Added $user->theme and $course->theme choices, controlled by admin
variables on the main config variables page.

By default this is all turned off, since multiple themes can be
a little disorienting.

A hidden feature is session themes ... you can change the theme
on any page by passing theme=xxxx as a parameter.  By default this
requires sesskey (so that people don't change theme on each other),
but this security can be switched off using a hidden variable
$CFG->allowthemechangeonurl = true;   Good for quick tests.
2005-02-10 10:28:27 +00:00
moodler
816acb46d3 Support course idnumber as a way to call courses
http://moodle.org/mod/forum/discuss.php?d=18442
2005-02-09 13:20:24 +00:00
moodler
9f7bf72393 Zap old file 2005-02-09 03:46:44 +00:00
moodler
19221c7e06 Removed old script 2005-02-09 03:45:17 +00:00
stronk7
fff86611a2 Small typo (bug 2512)
(http://moodle.org/bugs/bug.php?op=show&bugid=2512)

Merged from MOODLE_14_STABLE
2005-02-08 01:07:45 +00:00
defacer
685416485b This is now automatically done, no need to do it twice. 2005-02-08 00:12:11 +00:00
mjollnir_
a45ee54ee1 Removing PHP notice in metacourse assign courses page (bug 2479) 2005-02-07 21:10:25 +00:00
mjollnir_
832e87dfd8 Fixing formatting problem (extraneous <p>) 2005-02-07 21:04:53 +00:00
mjollnir_
a5849937b4 More bug fixing - #2479 2005-02-07 01:00:57 +00:00
gustav_delius
0e2851b998 Avoid using <p> tags because different browsers treat them differently (e.g in firefox if a table cell starts with a <p> it will start with an empty line, in IE it will not). Use <div> instead. 2005-02-06 18:18:44 +00:00
fiedorow
cb4501f401 Remove moodle_set_cookie call 2005-02-05 16:47:50 +00:00
fiedorow
508d0b3c61 Implements log in as guest for courses that allow guests. 2005-02-05 16:46:26 +00:00
mjollnir_
2276693799 Better attempt at fixing 2479 2005-02-03 22:34:42 +00:00
mjollnir_
6036cae854 Reverting last patch for bug 2479 2005-02-03 22:30:46 +00:00
mjollnir_
6cc75c99f4 Fixing bug #2479 (parent courses showing in meta course search) 2005-02-03 22:21:30 +00:00
stronk7
9da0673aba Now actions for meta-courses (add, delete...) are using sesskey. 2005-02-02 19:13:24 +00:00
defacer
c1d8705fd2 Change the semantics of blocks_print_adminblock() to make life easier to
developers who use pages. Conversely simplified the code a bit in courses.
2005-02-02 02:41:56 +00:00
defacer
da71112bed Refining the way that blocks work: now you don't have to know anything
about what editing the blocks adds to your URL. blocklib will take care
of that internally.
2005-02-01 06:24:28 +00:00
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