232 Commits

Author SHA1 Message Date
moodler
fa966efe7a FIxed some old <p> tags 2005-02-08 18:33:08 +00:00
defacer
8a47e075b3 Changing the way that applicable formats for each block are defined:
The format for each page is now the same as the id attribute of the
BODY tag, which in turn is a simple function of the script's relative path:

The format for e.g. a quiz view page is "mod-quiz-view". The format for the
site index is "site-index". Exception: the format for courses is not just
"course-view", but "course-view-weeks" etc.

Obviously the applicable_formats() override for each block should now take
this into account. The matching rules now are:

* You can specify the full format, e.g. "mod-quiz-view" => true
  will allow the block to be added in quizzes
* Prefixes match the full page format, e.g. "mod" matches ALL activities
* You can use "*" as a wildcard, e.g. "mod-*-view" matches just the view.php
  page of all activities
* These rules interoperate, thus "mod-*" is the same as "mod"
* "all" remains as a catch-all situation
2005-02-08 02:59:44 +00:00
defacer
f6b8182732 This isn't quite ready yet, but get this diff out of my sight... 2005-02-08 02:42:29 +00:00
defacer
52b2223dec Some corrections. 2005-02-07 04:54:04 +00:00
defacer
6573a08f63 Changing !$course->category to $course->id == SITEID 2005-02-05 03:16:44 +00:00
defacer
673c1b2f13 Fixing a serious bug with PHP 5 only, which caused blocks to lose
their configuration data (there is an explanation but I don't think
anyone cares).

Actually it was an optimization and I had to disable it. All is fine now.
2005-02-05 01:32:15 +00:00
defacer
17ed7f8290 Additional notices under PHP5 fixed. 2005-02-04 20:57:16 +00:00
defacer
b959599b51 Allow this in quiz pages, too. 2005-02-01 10:03:54 +00:00
defacer
639276728c Allow quiz_results in quiz pages and allow multiple instances too
(this obviously is only useful in courses).
2005-02-01 10:03:21 +00:00
defacer
1ef61c260d Pull all blocks out of quiz pages. We can see about allowing them later. 2005-02-01 10:02:12 +00:00
defacer
e7c66b1584 Updated to cover the latest API addition and made some minor corrections. 2005-02-01 09:19:31 +00:00
defacer
d9f7e051b9 Perfecting the wording to distinguish between singular and plural. 2005-02-01 08:44:04 +00:00
defacer
e7c15eca42 Since people adding this block to the quiz screen will get an empty display
at first, show them a more friendly message instead.
2005-02-01 07:46:31 +00:00
defacer
0144a0a701 Add a very useful feature to block_base to make instance config even more
convenient to use. And take advantage of it to make the block run faster.
2005-02-01 06:51:00 +00:00
defacer
bf94f836a4 Being slightly more accurate. 2005-02-01 06:49:52 +00:00
defacer
f58a15dee2 That link looks a little silly if we are viewing the quiz... 2005-02-01 06:40:50 +00:00
defacer
e0a80e89f3 I 'm putting together a scheme to allow blocks in mod/quiz/view.php.
This will allow the block to work when displayed there.
2005-02-01 06:38:42 +00:00
dhawes
160888f6cf removed check for guest after guests have already been rejected from page 2005-01-31 11:39:14 +00:00
moodler
cdf3925518 Messaging can now be completely disabled using $CFG->messaging 2005-01-31 07:11:42 +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
moodler
e01c7647a6 Removed a debugging string 2005-01-30 04:55:27 +00:00
dhawes
7501d8a527 looks like I might have finally fixed the darned bug where guest users were able to see the add/edit feeds link 2005-01-29 05:06:43 +00:00
dhawes
cc370f3587 fix bug reported by Martin D. - now when you edit a feed you are returned to a page with the full feed listings rather than just the edited feed. As an added bonus when editing a feed you will see that feed's data on the edit page instead of simply the edit form. 2005-01-29 04:45:57 +00:00
moodler
80317ba569 Make the editing form bigger 2005-01-29 04:04:28 +00:00
moodler
0705dcc035 Removed some $THEME and added some new classes for the blockconfiginstance
and blockconfigglobal boxes
2005-01-29 04:01:15 +00:00
moodler
63689c58b1 Some fixes to avoid notices etc 2005-01-29 03:55:29 +00:00
moodler
86db09ef85 Added Jon's html block from contrib! Thanks, Jon! 2005-01-29 03:48:45 +00:00
dhawes
c20d1fa77f re-enabled new developers debug cache setting for string 2005-01-29 03:08:55 +00:00
dhawes
81574dc5b5 added error output capture back 2005-01-29 03:07:43 +00:00
dhawes
81610483fd new instance config option to display feed's url if present 2005-01-29 03:01:18 +00:00
dhawes
dfedf5fdff more preferredtitle tweaks 2005-01-28 01:21:08 +00:00
dhawes
7eca7e10c5 more preferredtitle tweaks 2005-01-28 01:05:21 +00:00
defacer
cab5d3cd04 If there are no quizzes this block can monitor, print it in bold. 2005-01-27 23:59:12 +00:00
dhawes
956425af6e Now supports new preferredtitle field for custom feed channel titles. Supports new instance config for displaying the channel link at the end of the feed item links. 2005-01-27 22:47:13 +00:00
defacer
b35bc4d8db Block now works as it intuitively should in separate groups mode as well.
For editing teachers, it shows separategroups as visiblegroups.
2005-01-27 17:40:46 +00:00
defacer
9c581405ab More HTML and CSS fun with the new block.
Incidentally, does Mozilla have a bug here? It won't apply the text-align
property to those TDs which have been given a class through a COLGROUP.
IE does it correctly all the way, and Firefox applies the other properties
but seems to take exception at the text-align. Weird.
2005-01-27 04:19:56 +00:00
defacer
3779fd556e Out goes the ORDER BY grade + 0 hack, now that grade is a float.
Also, fixed a logic error with sorting in group mode.
2005-01-27 03:53:20 +00:00
mjollnir_
873bf8758f Initial checkin for import course content functionality (uses backup/restore). Probably needs wording changes and new icon! Please test me *thoroughly*! 2005-01-27 02:35:10 +00:00
dhawes
c4370fbfa4 fixed function name 2005-01-27 01:59:43 +00:00
dhawes
d58a3c8a3d removed excess paren, again - still a type-o 2005-01-27 01:57:30 +00:00
dhawes
2a16ea3a43 removed excess param - type-o 2005-01-27 01:55:02 +00:00
dhawes
b021c82d82 using rss_unhtmlentities for channel and item title as well as for item description 2005-01-27 01:43:29 +00:00
dhawes
319f73c933 Another bug discovered and squashed by Dan Marsden. Reversed logic fixed when editing feeds. 2005-01-27 00:55:13 +00:00
defacer
00a4237f24 Correcting a mistake: hide the block if there are no results for that quiz. 2005-01-26 22:22:55 +00:00
defacer
6b4dc5a31b New: The block now works in group mode too!
Bugfix: Grades were not being displayed correctly as percentages.
2005-01-26 22:14:22 +00:00
defacer
41dafe04ce Provisional fix for the "100% < anything else" bug.
If it's compatible with Postgres, then cool!
2005-01-26 19:59:08 +00:00
dhawes
87178d67fe removed references to 'type' field which was removed from rss table when latest version of magpie was adopted 2005-01-26 00:41:49 +00:00
dhawes
1eb099be3d changed an echo to a print, silly but I prefer print in php files and echo for debug and embedded html :) 2005-01-26 00:40:03 +00:00
dhawes
74d669f14e removed type field and added placeholder preferredtitle field 2005-01-26 00:38:01 +00:00
defacer
98ad7484c8 First commit of the requested quiz_results block. 2005-01-25 23:49:36 +00:00