1583 Commits

Author SHA1 Message Date
mjollnir_
ffed6bf316 Better fix for 2479. This time I'm 99.999999% positive it's fixed ;) 2005-02-07 09:32:24 +00:00
mjollnir_
835c8061b6 Removing db ids (found their way in from copying sql - bad) from last patch 2005-02-07 09:27:03 +00:00
mjollnir_
178ccd11c0 Fixing bug 2479. Can't figure out a way to do it with a left join at this stage but the query doesn't look too bad. Anyone who thinks they can figure out a more elegant way for it is welcome\! 2005-02-07 09:22:07 +00:00
moodler
106137d877 Fixed PARAM_ALPHA 2005-02-07 02:13:18 +00:00
gustav_delius
2ce17a0d5a The html editor was inserting a paragraph with just a space in it which clearly created problems for fields that the user wanted to leave empty.
There was also a problem when switching to text mode and back again: the status bar showed Path: Path:. I have taken out the second one.
2005-02-06 21:04:10 +00:00
skodak
3abd61254c this file should be gone long ago, removing now 2005-02-06 19:46:09 +00:00
skodak
b463ce3cae fixed pclzip import 2005-02-06 19:40:01 +00:00
skodak
54318b0462 typo in comment 2005-02-06 19:23:32 +00:00
urs_hunkler
c24a1ccd08 I added all code to handle the cookies and the sideblock content, the icon and the patches for hiding/showing the content of the sideblocks.
How it works:
_ within the "sideblockheading" a DIV with class="hide-show" holds a link calling the JS containerDisplaySwitching(). To the user it's represented by the icon "switch.gif" (a plus in a square) at the right end side of the header.
_ all content of the sideblock is surounded by a new <div class="blockcontent" id="'.$attributes['id']."_cont\">"
_ a call of the JS containerDisplaySwitching() changes the state of the appropriate DIV with the content to "display:none/inline" and writes this state into a cookie.
_ at the end of every block I added a call to the JS "containerDisplaySet()". This reads the block's state and hides the content or leaves it visible with every page load.
_ in the stylesheet I added the positioning of the icon:
.sideblockheading .hide-show {
    float:right;
}
.sideblockheading a img.hide-show-image {
    padding-top:0.25em;
}
2005-02-05 21:37:53 +00:00
fiedorow
9ca3b4f313 Bypass enrolment if guest shortcut for courses that allow guests. 2005-02-05 16:40:38 +00:00
mjollnir_
ee1bef900a Fixing bug 2480 - meta course enrolment 2005-02-05 05:15:16 +00:00
defacer
756e182362 Enforcing the "email type" (text/HTML) user setting at core library level.
With well-written client code this should not be needed, but after getting
burned once I think it's a good idea to make it "smart".
2005-02-05 01:36:55 +00:00
defacer
246c206420 Fix for bug 2492: Notices thrown by pagelib.php.
It was an oversight on my part. Thanks Gustav!
2005-02-04 20:27:54 +00:00
skodak
01accf3efa PARAM_ALPHA now converts to lowercase; merged from MOODLE_14_STABLE 2005-02-03 22:53:49 +00:00
skodak
60ecca3a09 incorrect use of preg_quote(), add '/' to list of quoted chars - see man page; merged from MOODLE_14_STABLE 2005-02-03 19:37:11 +00:00
skodak
f24148ef0f new parameter cleaning PARAM_BOOL and PARAM_ALPHANUM, merged from MOODLE_14_STABLE 2005-02-03 18:14:45 +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
7c6c051326 Utilizing page_id_and_class(), make a factory function page_create_instance()
that does not need the page type as an argument (autodetects from the URL).
2005-02-02 02:32:40 +00:00
defacer
68d5f00ae8 Isolating this in a function because it's quite useful
to access from elsewhere, too.
2005-02-02 02:25:50 +00:00
defacer
1319096389 Adding a useful mathematical shortcut. 2005-02-02 02:22:56 +00:00
mjollnir_
e5cf5750cf Modification for datalib (modify_database) to ignore lines that start with -- as well as # (postgres) 2005-02-01 20:45:46 +00:00
moodler
18b9d66439 Moved theme changing to after SESSION exists 2005-02-01 08:00:58 +00:00
defacer
c6a2a401ed Making the "Add block..." menu list alphabetically sorted ;-) 2005-02-01 07:59:09 +00:00
defacer
8bd3fad303 I need those constants a bit more easily accessible. 2005-02-01 07:39:21 +00:00
defacer
7221d319be Fixing all the details in the block instance configuration screen.
That wasn't so hard!
2005-02-01 07:34:17 +00:00
defacer
cadc69c64c Added a new class page_quiz, modelling the behavior of a quiz view page.
Not everything is quite right now, a few details (e.g. correct breadcrumbs)
have been ignored but most of the functionality is there.

Blocks in quizzes, here we come!
2005-02-01 07:12:39 +00:00
defacer
3edc57e189 Even more automation: now blocks_execute_url_action() checks if the user
has sufficient rights to execute the action automatically. It's therefore
safe to call without ANY checks being done first.
2005-02-01 06:55:02 +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_
bf60471bc8 Fix for metacourses. Courses with course->metacourse shouldn't be offered in the courses to add dropdown 2005-02-01 04:51:28 +00:00
mjollnir_
8a4e77ae1b Another fix for metacourses (lost auto_increment). This will preserve data. 2005-02-01 04:47:04 +00:00
martinlanghoff
4c3911f934 Merged from MOODLE_14_HEAD - Better behaviour of fix_course_sortorder() -- related to bug #2334 -- includes version bump to clear out recalcitrant sortorders 2005-02-01 01:47:45 +00:00
martinlanghoff
94afadb360 Merged from MOODLE_14_HEAD - Better behaviour of fix_course_sortorder() -- related to bug #2334 2005-02-01 01:37:14 +00:00
mjollnir_
d20f58e7e8 Fixing column_type for postgres (WHERE 0 is not valid so using LIMIT 0 instead) 2005-02-01 00:28:02 +00:00
defacer
7c81cc29b9 Added a new function, column_type(), based on ADOdb's MetaType().
Attempting to make ALTER TABLE for Postgres really smart... this is
the solution to bug 2460 if it works correctly.
2005-01-31 23:24:43 +00:00
julmis
713126cd43 Remove last space from attribute list in cleanAttributes2 function. 2005-01-31 20:09:17 +00:00
stronk7
6bdd02e40b Avoid some probles when returning to the original user after using the loginas feature.
(sesskey not set)
2005-01-31 18:10:50 +00:00
moodler
792a590da7 New libraries to support lexer-based searching. From Tony Hursh - thanks! 2005-01-31 07:39:03 +00:00
moodler
cdf3925518 Messaging can now be completely disabled using $CFG->messaging 2005-01-31 07:11:42 +00:00
moodler
d74d4f2053 Some changes in the way theme setup is achieved, there is now a function
for it called theme_setup
2005-01-31 05:59:13 +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
fddbcf9c68 Fixing my buggy implementation of isteacherinanycourse().
This fixes bugs 2455, 2456 and maybe some others Eagle Eyes didn't have
the time to find. ;-)
2005-01-31 00:48:23 +00:00
moodler
1e92ee743b A SESSION->theme can be set (only with sesskey) 2005-01-30 19:28:27 +00:00
moodler
c3f5569273 Added support for parent themes
Added support for user, course, session themes
2005-01-30 18:23:06 +00:00
julmis
55760c9a05 Added title attribute. 2005-01-30 18:13:25 +00:00
stronk7
90ccfd190f Added one missing key too. 2005-01-30 10:05:36 +00:00
moodler
13706b5263 Added 'enrol' field to new user_students tables 2005-01-30 09:18:21 +00:00
moodler
92318548ce "enrol" field in user_students defaults to $CFG->enrol 2005-01-30 09:14:41 +00:00
moodler
19505667d4 Add c0,c1,c2,c3,c4 classes for columns in tables
Add r0,r1,r0,r1,r0 classes for rows in tables
2005-01-30 05:21:25 +00:00
defacer
31686aea4c Merged from STABLE:
Stopgap measure for the wrong behavior discussed in SC#87.
I believe this ensures the required behavior, but we may still change
it because it can be confusing...
2005-01-30 04:39:55 +00:00
julmis
3bb0e0ce9f Adding nolink feature which uses <span class="nolink"> tag. 2005-01-29 20:03:07 +00:00