113 Commits

Author SHA1 Message Date
skodak
6bb0816313 MDL-14679 towards course conversion 2008-06-02 08:13:24 +00:00
dongsheng
dbf91d9d63 MDL-14129, fix print_error 2008-04-26 11:02:51 +00:00
skodak
46bd37bfa8 MDL-14556 reset coursepage state after switchrole merged from MOODLE_19_STABLE 2008-04-25 14:10:02 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
skodak
a6af674a99 MDL-13613 added better detection for outdated course modinfo; merged from MOODLE_19_STABLE 2008-02-23 18:42:00 +00:00
skodak
65a00c975e MDL-12945 minor modinfo improvement; merged from MOODLE_19_STABLE 2008-01-25 09:39:32 +00:00
skodak
6d77b23c55 MDL-12735 Make AJAX on by default, add option to disable AJAX course editing by default; merged from MOODLE_19_STABLE 2007-12-26 21:33:34 +00:00
martinlanghoff
d7d4b0e572 course/view: roleswitch checks moved to the course page
Implemented all the relevant checks for role_switch().

accesslib's role_switch() doesn't do any UI-related checks any more,
being a backend lib call. These belong here.
2007-09-19 07:06:44 +00:00
moodler
afc58a289b Merged some fixes for MDL-9402 from stable (causing forum unread counts to break) 2007-04-17 09:29:55 +00:00
moodler
61c1b4b573 Merged changes to use new ajaxenabled for MDL-8417 2007-03-01 02:42:16 +00:00
toyomoyo
217a8ee950 made some changes so that if a user has any roles assigned in context_module or context_block with moodle/site:manageblocks or moodle/course:manageactivities, he will see the "turn editting on" button without needing to have a role assigned at context_course with moodle/course:manageactivies capability. Of course this user would not be able to edit any blocks or modules he/she is not supposed to edit. Ajax for these users with partial editing privilages are locked. Please report bugs asap as we are looking at backporting this change to 1.8. Cheers. 2007-02-16 07:57:19 +00:00
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