102 Commits

Author SHA1 Message Date
vyshane
f47e1c1751 Changed to work with new require_js().
Related to MDL-7682 and MDL-8374.
2007-02-02 06:35:59 +00:00
vyshane
a202dfa034 onLoad made lowercase. MDL-7861 related. 2007-01-10 05:49:31 +00:00
moodler
75c3849a9e Merged drag class fixes from stable 2006-10-30 09:41:55 +00:00
skodak
7b9c99798c Turn AJAX off for now at site level MDL-7254; merged from MOODLE_17_STABLE 2006-10-27 20:34:40 +00:00
vyshane
4e86c6d735 Merged from 1.7. 2006-10-26 07:46:22 +00:00
vyshane
f45cc76fb3 Merged from 1.7. 2006-10-24 08:13:13 +00:00
moodler
ac4c51bef5 Make it easier to get out of a switched role in case viewing is not allowed 2006-09-22 01:29:11 +00:00
moodler
3a52e764e4 New "Switch Role" functionality to replace the old "Student view".
It's not well-tested yet and probably doesn't quite work.  I will keep debugging this tonight from home.
2006-09-21 09:16:41 +00:00
moodler
4d2401d524 Removed student view 2006-09-03 08:46:30 +00:00
skodak
f4f0bc84cb Bug #5716 - Impossible to turn off highlighted current topic; merged from MOODLE_16_STABLE 2006-06-03 23:49:15 +00:00
skodak
d2b23346c9 block editing now uses PARAM_BOOL 2006-04-23 20:58:06 +00:00
skodak
0cdae0dcaa general cleanup of xxx_parameter() functions + fixed several register globals problems 2006-04-11 21:41:21 +00:00
moodler
7ea8ea7faa Added some missing optional_params (bug 5125) Thanks Scott Elliott for the fix 2006-04-09 02:06:26 +00:00
stronk7
533229c481 Now courses are viewable by idnumber. Credits to Paolo Oprandi.
(http://moodle.org/mod/forum/discuss.php?d=18442)

Merged from MOODLE_15_STABLE
2005-11-16 23:21:36 +00:00
mjollnir_
1217708363 My moodle sticky block config now generic, can be used for any pagetype.
Currently implemented: course-view (and my moodle, of course)
2005-10-16 22:34:25 +00:00
thepurpleblob
15ffee79b5 Added 'studentview' button to course page. 2005-08-15 12:54:46 +00:00
dhawes
892c082545 converted some double quotes to single quote literals 2005-07-13 01:51:30 +00:00
thepurpleblob
37ef382cbe Added an optional_param() for 'topic' as it was coming from 'register_globals'
land.
2005-07-06 09:51:18 +00:00
defacer
3615b2b259 Simplifying to death using the new blocks_setup() 2005-03-02 05:19:47 +00:00
fiedorow
542a04353b hook for redirecting to externally hosted courses 2005-02-16 13:41:37 +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
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
defacer
685416485b This is now automatically done, no need to do it twice. 2005-02-08 00:12:11 +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
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
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
martinlanghoff
e069b3e2fe Merged from MOODLE_14_STABLE - Closing SC#66 - more 2005-01-22 09:06:51 +00:00
urs_hunkler
daa27ce409 _ added the div framework 2005-01-18 11:08:58 +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
defacer
f032aa7a5f MAJOR CHANGES:
--------------

Brand-new pagelib.php at your disposal! It slices, it dices, it makes your coffee.
It still doesn't understand women... Read the comments in pagelib.php for a first
impression. Feedback highly encouraged!

Blocks code has undergone significant changes to work with Pages. Flexibility is its
middle name, since I think (without having tried it) that adding e.g. a third
placeholder for "center" blocks in courses, with full support for moving around etc,
will now take about 15 lines of new or edited code. If you are not impressed yet, I
suggest watching a documentary on solar physics. :P

MINOR CHANGES:
--------------

Added instance_allow_config() in the blocks class hierarchy to supplement per-instance
configuration options. You can override it to return true and thus get configuration
amenities without allowing multiple instances.

Minor polishing to comments and documentation (whatever caught my eye was game).

Tightened up some code here and there by utilizing all the new features.

BUGFIXES:
---------

A bug in restore_execute.html caused hidden blocks to not be restored at all.
2004-11-08 19:36:07 +00:00
defacer
9b4b78fd6a Da monster-commit of blocks version 2!
Code based on the work of Daryl Hawes for the blog module. Thanks, Daryl!

Please test the hell out of it as it's sure to have issues that need to be
ironed out.
2004-10-19 21:04:28 +00:00
stronk7
5b224948aa course/view.php is using sesskey
(changes in blocks done, please check them)

Merged from MOODLE_14_STABLE
2004-10-09 20:16:05 +00:00
moodler
83f3c62dbe Fixed my recently introduced bug with the redirect bug 2000 2004-09-26 02:42:54 +00:00
moodler
4ebae17119 Merged earlier redirecftion for site course 2004-09-23 17:02:02 +00:00
gustav_delius
24f2b65a4d towards XHTML compliance 2004-09-12 12:21:27 +00:00
defacer
2b0d60ec78 Fix for bug 1662:
Changed the way applicable formats for blocks are handled. The changes are
short codewise, but to grasp all the implications read the forum discussion
at the relevant URL.
2004-08-22 16:54:48 +00:00
moodler
093a4a2437 Fixed link of user name in footer of course page 2004-08-02 19:09:54 +00:00
defacer
08cebf196e Fix all requires() to use absolute paths (Sun boxes have problems with relative
paths, it seems). Also, login is required to view the calendar of any course
other than the site.
2004-06-02 08:13:26 +00:00
moodler
af62781bca FIxed defaulting $SESSION->cal_show_user 2004-05-25 06:35:49 +00:00
defacer
0784eb7ef1 Now we can get a list of the blocks being on display in the course page.
Could be used by one block to detect the existence of another, for example.
2004-05-21 11:06:49 +00:00
defacer
82b181f265 Eloy is probably right, the preferred width calculation should be cached. 2004-04-20 07:32:57 +00:00
stronk7
1eb25080df Detected a display bug when looking for possible causes of
bug 1248. Widhts were only calculated in teacher mode and
they were down to 100px in student mode!!
Perhaps we could make some session caching to avoid some
calculations every time the course is displayed. Seems to
work fine now.
Anyway, if I compare the right column width
in my server (with blocks running) against moodle.org (without
blocks), it seems that the right column is narrower in my test server...
2004-04-19 19:24:42 +00:00
stronk7
0f3fe4b6ad First Official realease of the "Blocks System".
Integrated with Moodle:
    - Install automatically.
    - Update course->blockinfo for each course at installation time.
    - Modified course creation to insert into blockinfo field.
    - Modified restore to insert into blockinfo field.
    - Admin options (hide, show, delete, config) from admin page.
    - Lang strings inserted (en only).
    - Database support to mysql and postgresql (not tested!!).
Moodle, backup and block versions updated to 2004041800.
Tested with mysql: Install fresh and upgrade from previous.
section_activities block renamed to social_activities and created
its own lang file to support name "Social Activities". This can
be changed at any time.

TODO:
=====
Support it really in backup/restore.
????

Enjoy!! Ciao :-)
2004-04-18 23:20:53 +00:00
moodler
196ca3fe59 Fixed a bad bug where the Recent News block wasn't obeying Groups properly. 2004-04-12 09:57:14 +00:00
moodler
0d250ac10e Adding calendars by default --- later we need a course option to control
visibility
2004-03-29 15:33:26 +00:00
moodler
c7609872ca May avoid a cookie issue 2004-01-14 03:47:40 +00:00
moodler
6049fb78f2 Modification of the course format plugin structures so that it
fits in with other plugin formats in Moodle.
2003-12-21 04:52:25 +00:00
moodler
8b68eb7ebc I didn't like it as much as I thought. :-) 2003-11-06 09:11:35 +00:00