29 Commits

Author SHA1 Message Date
moodler
1a2ea6f488 Merged $course -> $COURSE fixes from 1.6 stable 2006-05-29 08:17:57 +00:00
defacer
13f64465e1 Removing some code which looks _very_ dead to me (traced its origins back
to when the Blocks2 stuff was first committed).

Unless I have forgotten something important and this breaks stuff horribly
somewhere, then it should be taken out from many other standard blocks as well!
2005-11-23 23:40:26 +00:00
mjollnir_
0d6b9d4f4d MyMoodle: new /my/ page, contains course overview (module based, forum done). User defined blocks on /my/ page, admin defined stickyblocks. Needs lots of testing. Held off bumping version.php for blocks because of the postgres upgrade fixes Patrick is putting in. 2005-08-16 00:25:39 +00:00
thepurpleblob
e0de1be592 Fixed all instanced of optional_variable(), require_variable(), $_GET, $_POST etc
..all replaced with appropriate secure versions.
2005-06-10 10:05:30 +00:00
defacer
21d04cedfa Somehow this stopped working correctly when the styles got moved. Fixed. 2005-03-26 14:04:13 +00:00
moodler
01454bd0c8 Styles updates 2005-03-25 16:41:05 +00:00
mjollnir_
900416ed8e Fixing warning (postgres does not like where id = '') 2005-03-03 23:11:13 +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
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
gustav_delius
adfefeb12a $this->course was used but not defined. 2004-12-07 07:32:16 +00:00
defacer
e89d741af3 New naming conventions for class names to bring them in line with the
rest of Moodle. The convention for blocks is now:

class block_something extends block_base { ... }

HOWTO updated accordingly, plus some more minor polishing. More to come.
2004-11-23 18:53:34 +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
defacer
02ce384808 Merging fix for bug 1957 from MOODLE_14_STABLE. 2004-09-19 22:25:21 +00:00
moodler
23f160464a Merged changes from stable to fix bug 1957 2004-09-18 13:17:23 +00:00
defacer
de79ec4550 Merging patch for improved calendar block behavior from MOODLE_14_STABLE. 2004-09-07 10:31:18 +00:00
defacer
9ed66e56b5 Switching to using the new SITEID constant. 2004-08-30 06:47:45 +00:00
paca70
fbb869e97e Use get_site() to get site's course number.
Site course  could be different from course '1' in older installations.
2004-08-30 06:03:29 +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
9fb216e8b6 Fixed some version numbers on three blocks 2004-08-12 04:44:14 +00:00
moodler
675dbdd9f5 FIxed some notices when installing Moodle fresh 2004-08-11 09:00:53 +00:00
defacer
89adb17442 Merging the changes from 1.4 dev branch (site index blocks + various bugfixes) 2004-05-28 10:53:54 +00:00
defacer
a2e1ee6d92 Bump 2004-05-24 10:38:16 +00:00
moodler
3cb9ee3949 Fix for bug 1442
- notices
   - course is now properly passed to calendar_filter_controls from block
2004-05-24 01:28:28 +00:00
defacer
43c3ffbe22 Major calendar overhaul:
1. Much better and more intuitive handling of filters.
2. Simplified user interface for guests.
3. Feature request implemented: bug #1431
4. A number of significant bugfixes
2004-05-20 15:16:42 +00:00
defacer
e1ce345e40 Fix for bugs 1423, 1424 (duplicated):
Now hiding/showing course events in the course view works once more.
Ready for a release, it seems....
2004-05-20 10:02:49 +00:00
defacer
51f8a12f28 Fix for bug 1321:
When clicking the month name from the month view block and go to detailed
month view, only events from the course you where in are shown by default.
2004-05-07 10:39:30 +00:00
defacer
bd1195678c Fix for bug 1320:
Upcoming events were not displayed before calendar_session_vars() was called
at least once. The upcoming events block did not do that, because once upon a
time it was displayed below the month view, which was known to do it :)

Solution: calendar_session_vars() is now called directly from lib.php.
2004-05-07 10:15:10 +00:00
paca70
a595c0b6ea Files for postgresql 2004-04-19 04:30:55 +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