79 Commits

Author SHA1 Message Date
defacer
4c7d113714 Nit-picking corrections... behavior doesn't change at all. 2004-09-18 16:14:54 +00:00
defacer
c3d3b6d48b Fixing the logic errors my previous commit introduced. Notice how easily writing
"cute" code (courseid > 1, both checking for non-zero and non-courseid value)
can lead to mistakes later. And it's my own code, even...

Also removed one obsolete function.
2004-09-16 10:30:40 +00:00
defacer
9064751bc3 Fixed all hard-coded SITEID references. Thanks to Eloy for pointing it out!
(In the end there were more than we thought; I just searched for all "1"s)
2004-09-16 10:14:44 +00:00
defacer
deaa884234 Full XHTML 1.0 compliance. I hope I didn't miss anything. 2004-09-09 10:41:23 +00:00
defacer
e749554efa Merged from MOODLE_14_STABLE 2004-08-30 11:46:08 +00:00
defacer
09d36284d1 Importing fixes from MOODLE_14_STABLE 2004-08-26 10:52:00 +00:00
defacer
8f89658261 Fix for bug 1494:
Calendar events in day view now show their start and end times. The only thing
I 'm not satisfied with is that they also show the full start and end dates,
even if it's not really needed (e.g. for a 15:00 -> 17:00 event). Still, it's
loads better than only showing the start time.
2004-08-22 17:19:24 +00:00
moodler
fd5594a00b Fixed some PHP 5 notices 2004-08-12 07:42:52 +00:00
moodler
91a0974597 Default calendar to 21 days 2004-08-05 09:28:44 +00:00
defacer
9c81fc35a9 Fix a couple of notices that I just... noticed :-) 2004-08-03 07:34:03 +00:00
moodler
2eb68e6f6b Various cleanups of the installation process 2004-07-29 18:01:32 +00:00
defacer
ef618501bb Fix for bug 1624:
Events that span more than one month now have their duration shown correctly in
each day of all subsequent months. For some reason I didn't quite figure out,
this happened till now only on events that spanned at least THREE months. Whatever...

Also, removed a small unused part of a global statement in view.php.
2004-07-09 13:39:34 +00:00
defacer
7b38bfa6fd More changes to time calculations. Now they are done as indeed the prophet Martin
foresaw that they could be, that is simple and elegant. The previous solution did the
job I guess, but it was based on a naive approach...
2004-06-02 11:21:14 +00:00
defacer
9d567178e2 Fixed a bug: up till now, day boundaries were calculated modulo 86400, which
is correct only for GMT+0 timezones. Fixed it in upcoming events displays to
separate days as they are in the user's timezone, will continue to pursue this.
2004-06-02 09:15:07 +00:00
defacer
f52f741334 Fix for bug 1503:
Things are now easier for visitors and guests. We should do some regression
testing though: if you are a visitor or a guest and then you login (either
after browsing the site or immediately by typing a Moodle URL in the location
bar, without having a Moodle session at all), do user events always get shown
correctly? Does anything abnormal happen to the courses filter?
2004-06-01 14:12:26 +00:00
defacer
61ddaf3bce Removed useless stuff 2004-06-01 12:02:13 +00:00
defacer
9cb8879b6b Minor changes, Martin's fix for bugs 1502, 1184 (duplicated) confirmed. 2004-06-01 10:40:20 +00:00
moodler
c9b05b32fa Some fixes to HTML quoting in calendar popups.
Fixes bug 1502.
2004-05-31 05:11:22 +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
7bd1677c72 Fix for bug 1462:
Warnings removed.
2004-05-26 11:03:27 +00:00
moodler
c3f463caca Filters now work on "month" page! 2004-05-25 02:00:26 +00:00
defacer
d56d4e230f Some speed improvements for the calendar month blocks. 2004-05-24 14:45:02 +00:00
defacer
eb15f829b6 The filters are back with a vengeance in event.php! Coupled with the breadcrumb
course mirroring, everything works like a charm now! :-)
2004-05-24 12:12:41 +00:00
defacer
2ef75eee2f Fixed a couple of warnings which happened if you accessed a course while
not being logged in, during the redirection to login screen.
2004-05-24 11:10:00 +00:00
defacer
c635dcda6c Fix for bug 1451:
Now when moving to a calendar screen (technically, view.php) from a course
block, the course drop down list defaults to that course. The implementation
is OK, but I may change it (there is a faster way).
2004-05-24 10:35:43 +00:00
defacer
227bc46b51 Preliminary fix for bug 1451 (needs some more work).
Also a couple of notices removed.
2004-05-24 09:20:01 +00:00
moodler
cd6469cb4d More aligned calendar controls on courses without groups 2004-05-24 05:13:34 +00:00
moodler
41d30a8e52 Fixes to icons in upcoming events and popups 2004-05-24 03:39:05 +00:00
moodler
8c165fe91a Fix for bug 1449
Hidden events are now never shown.

There is a new parameter in calendar_sql_where which can show them if necessary.
2004-05-24 01:44:48 +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
moodler
421b0337b6 Fix to allow ordinary users to edit events. :-) 2004-05-23 16:21:40 +00:00
moodler
9958a08cfa Calendar fixes (this was the last thing I wanted to fix for 1.3).
- events are now shown in a consistent way
  - upcoming events and days are calculated with the same function
  - it's now not possible to edit module events directly
  - various tidying up
2004-05-23 11:05:45 +00:00
moodler
552064d391 Some improvements in display
I'm not finished yet, just checking in to continue on another server
2004-05-22 07:14:49 +00:00
defacer
f10f1b7bdc * Removed one obsolete function
* Changed the expired events' color to dimmed
* Added "new event" button in upcoming events screen
* Small improvement (more robust) in redirection from set.php to upcoming events
2004-05-21 13:51:02 +00:00
defacer
f434283f4f Bye bye event details view... 2004-05-21 11:24:22 +00:00
defacer
34bf3ad4f3 Lots of usability improvements and some bugfixes:
Fixed wrong redirection after changing filters for all calendar screens
Fixed course selection menu to work without javascript
Moved course selection menu to the header, and added it to all screens
All screens now conform to the selected course in the menu
Small improvements in the way guests are handled
2004-05-21 10:54:46 +00:00
moodler
14fcda781a Tiny fix to improve display of date ranges 2004-05-21 05:49:37 +00:00
moodler
d8bb005603 Removed referer for site events ($site is not a valid global anyway) 2004-05-21 05:35:54 +00:00
moodler
1b1e79f55c Use the new images in pixpath 2004-05-20 17:30:20 +00:00
defacer
9a2ba13e51 One more bugfix introduced just now: enabling course events shouldn't
enable site events, too.
2004-05-20 15:36:20 +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
250712fd7f Minor modification to the way the course event filter works
(same functionality but more robust now).
2004-05-20 09:58:14 +00:00
defacer
4e17c6f39e Fix for bug 1416:
Now the module icon is shown before the event name in the mini-month tooltips.
Maybe this would be better with the module name instead, but I don't know.
Comment in the bugtracker if this isn't what we want.
2004-05-18 07:51:46 +00:00
moodler
1c3abdb092 SHow event name in upcoming events (not activity name) bug 1415 2004-05-17 14:29:55 +00:00
defacer
b1bcd540f0 Fix for bug 1323:
When the admin is logged in as a different user, user events are shown
correctly in the calendar.

Also, fixed a very-recently-introduced bug which appears to have escaped
notice so far.
2004-05-17 09:07:05 +00:00
defacer
8c54cec650 Month view: NOW it's working as I wanted it to. But is that as it should work? 2004-05-14 13:39:29 +00:00
defacer
9ff136e503 Behavior change, according to Gustav's remarks on the forums. Events from
courses other than the one you are browsing are not displayed in the month
views or as upcoming events, except only if you explicitly do it in the
full month view. However, if you manually go to a day with such an event and
get a day view, you will see the event. Should I find a way to hide that too?
2004-05-14 12:48:50 +00:00
defacer
1bb9d624c4 Fix for bug 1354:
(REAL fix this time! ;-)

Thanks for the report, Eloy. I now know what I was doing wrong. Because on my
dev site I have the same TZ as the server, sometimes I can make mistakes and
"get away with them". :-/
2004-05-14 07:34:10 +00:00
defacer
ef3ae69ebd Martin pointed out that only editing teachers get to see all the groups. 2004-05-14 07:11:48 +00:00
defacer
6c9584d1e5 Addressing bug 1384:
Now if you are a teacher in a course, you now see ALL group events in that course.
As a result, admins see group events for all courses.

Maybe it needs more work than this, though.
2004-05-13 10:32:12 +00:00