moodler
976526f8f0
FIxed a notice
2005-03-04 02:22:49 +00:00
mjollnir_
900416ed8e
Fixing warning (postgres does not like where id = '')
2005-03-03 23:11:13 +00:00
defacer
96803c8810
Moved a bunch of inline styles to the stylesheets.
2005-03-02 19:47:04 +00:00
defacer
48f7fa4a60
Small improvement to HTML block; new html blocks have a default title instead of none.
2005-03-02 19:31:11 +00:00
defacer
76a8339a91
Small fix, changing break; to return; now that there's no switch()
2005-03-02 19:29:50 +00:00
defacer
3ef642d96a
Implemented discussion from bug 2547:
...
* Block authors no longer need to set $this->content_type
* If you want to make a "list" block, just derive from block_list
instead of block_base
* All switch() statements gone from library code
* Overloaded method is_empty() added to block classes for convenience
2005-03-02 19:22:26 +00:00
mjollnir_
1e62c63b3f
Fix for bug 2660 - postgres upgrade breaking mdl_block sequence
2005-03-01 23:39:56 +00:00
moodler
e889941458
Just some quotes
2005-02-28 07:10:08 +00:00
defacer
7e571b7670
Clean the block code a bit
2005-02-27 20:31:14 +00:00
moodler
2896553e9d
Added language file (somewhat different to one in forums).
...
Made some major cleanups to the block for efficiency, robustness
and Postgres compat.
It seems to work for me OK but could use some good testing!
2005-02-26 17:21:31 +00:00
moodler
f0b8884d08
Added search help to the small search forms (big search form coming next)
2005-02-26 08:52:03 +00:00
moodler
95c62b56b7
Fixed some notices
2005-02-26 08:11:01 +00:00
dhawes
ec288447d2
removed one excess <br /> tag as noted in Tim's comment here: http://moodle.org/mod/forum/discuss.php?d=18121
2005-02-24 16:23:48 +00:00
defacer
c903f9b076
Fix for bug 2627 (which was real and not a duplicate).
2005-02-24 04:26:33 +00:00
moodler
6f9e100660
A possible fix for bug 2629 and PostgreSQL inflexibility. ;-)
2005-02-24 02:47:18 +00:00
jpuntd
163dc56b3d
changes to block code
2005-02-20 07:23:10 +00:00
defacer
090cf95ae9
Fix for bug 2584:
...
All floatval() calls changed to (float) casts.
2005-02-18 14:42:04 +00:00
defacer
42d364974a
Fixing stuff I broke with my last commit.
2005-02-16 22:04:14 +00:00
defacer
4a1ad69713
Fixing page defined constant, we no longer have access to it.
2005-02-16 21:49:15 +00:00
stronk7
cb10e3d761
Now the block is using quiz->decimalpoints to show the grades
2005-02-14 20:26:11 +00:00
dhawes
e3899eefdd
changed rss image's alt text to title text since this image has no real obvious alt value, refer to http://moodle.org/mod/forum/discuss.php?d=16528 (added back in alt tag contents)
2005-02-14 02:57:15 +00:00
dhawes
86944f037e
changed rss image's alt text to title text since this image has no real obvious alt value, refer to http://moodle.org/mod/forum/discuss.php?d=16528
2005-02-14 02:52:06 +00:00
moodler
d2b059c6c9
FIxed some links for compliance
2005-02-12 03:51:18 +00:00
defacer
3c1348758d
Fixed styles and improved lots of things in calendar. It should work all
...
right and even be a bit cooler than it was before. :)
2005-02-11 15:52:59 +00:00
defacer
d232b8c701
Updating the guide and some comments to be up to date with the latest
...
and greatest inner workings. sigh.
2005-02-11 06:30:50 +00:00
defacer
09fe365237
Fix for bug 2525:
...
Since the page type constants have migrated to local pagelibs, lose them.
2005-02-10 17:32:29 +00:00
defacer
29ba5158ad
Introducing instance ids as id attributes in blocks. This should completely
...
solve the problem where two instances of the same block did confusing things
when you tried to collapse one of them.
Incidentally, moving some styles for quiz_results block to where they belong.
2005-02-10 00:50:08 +00:00
defacer
76d37688fc
Fixing allowed formats.
2005-02-09 15:45:54 +00:00
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