2218 Commits

Author SHA1 Message Date
moodler
f9ce68ee7f Using multiple indexes for slightly increased performance 2003-04-27 02:58:26 +00:00
stronk7
c0605295bd Changed to dimm non-visible grades (mods). Bug #378.
Done a bit more:
  - Show dimmed entire column.
  - Difference html (for web) and text (for .xls and .txt export) in
    many variables.
  - Using the dimmed_text style to dimm.
2003-04-26 19:35:27 +00:00
stronk7
85093cf4f9 Added the dimmed_text css style to show normal text dimmed (gray #AAAAAA) 2003-04-26 18:54:37 +00:00
stronk7
0830bae4d7 Changed to hide non-visible grades (mods). Bug #378. 2003-04-26 18:16:36 +00:00
moodler
1ba3960285 Working much better with indexes - update the schema 2003-04-26 15:26:51 +00:00
moodler
6459f225b8 Update to add new indexes to MySQL tables. Speeds up the log access. 2003-04-26 15:24:04 +00:00
moodler
1b5910c4a5 Trying a different tack for recent_activity since the old way was
still producing too much data and overflowing PHP memory on busier
sites (eg moodle.org).

Now, there are more database queries, which is unfortunate, but the
data is much more specific, and no sorting needs to be done, so
this is a performance boost.

I don't know how these will cancel out ... my guess is that very
small sites may be very slightly slower on the course page, but
that large sites will be much faster.

Let's see.
2003-04-26 15:08:34 +00:00
moodler
a54b8dd3af Need course module stuff 2003-04-26 14:21:42 +00:00
moodler
667ab3252b Get less logs from the database 2003-04-26 14:12:12 +00:00
moodler
b1992e65cf Trying an experiment on moodle.org 2003-04-26 13:49:13 +00:00
moodler
10a95b432c Fix for use of COURSE_MAX_RECENT_PERIOD 2003-04-26 13:41:31 +00:00
moodler
ad08fdc277 Performance improvements
- better checking of data before processing
  - used logs are removed to avoid re-processing by other modules
2003-04-26 12:59:41 +00:00
moodler
38e5dbf319 No changes, just rearranges 2003-04-26 12:38:53 +00:00
moodler
ec2a28a607 Extended number of select fields allowed for get_field() and set_field() from 1 to 3 2003-04-26 12:38:04 +00:00
moodler
278a229c25 Slight fix to teacheronly coloring 2003-04-26 12:22:52 +00:00
moodler
3d89198946 Cleaned up definition of constant COURSE_* values in course/lib.php
Moved COURSE_TEACHER_COLOR out to style sheets where it belongs (.teacheronly)

Added some efficiency when printing recent activity

 - don't print more than one weeks worth of updates
  - don't keep re-parsing logs once they've been used
2003-04-26 12:17:30 +00:00
moodler
78e0146055 Argh! Excess quotes in CSS 2003-04-26 12:12:30 +00:00
moodler
6eb6cd8753 New style for teacher-only colour (eg when showing teacher posts in recent activity) 2003-04-26 12:07:14 +00:00
stronk7
fbca88e692 Show activity log only from visible surveys. Bug #367. 2003-04-26 11:04:46 +00:00
stronk7
2953d5e865 Show activity log only from visible journals. Bug #367. 2003-04-26 10:14:54 +00:00
stronk7
86e6076b3b Modified the instance_is_visible function. It has a bug, having
the "forum" table harcoded. Simplify a bit. Now seems to work
fine with every mod.
2003-04-26 09:34:11 +00:00
moodler
c3357723de FAQ in full is too long - offends my eye :-) 2003-04-26 06:05:24 +00:00
moodler
09368e3938 Moved most-asked question to the top 2003-04-26 06:02:58 +00:00
moodler
a95ae47bdf Imprved intro 2003-04-26 05:55:39 +00:00
moodler
50d673157b Long form of FAQ 2003-04-26 05:44:42 +00:00
moodler
65eed52ded Style for question links 2003-04-26 05:42:51 +00:00
moodler
d1db7bee92 More cleanup 2003-04-26 05:40:24 +00:00
moodler
39b5b3fa2a more clean up 2003-04-26 05:30:00 +00:00
moodler
e317d04919 Cleaned up, with additions 2003-04-26 05:24:07 +00:00
stronk7
dff0db9ad5 Show activity log only from visible forums. Bug #367. 2003-04-26 00:17:42 +00:00
stronk7
746546a8f8 Show activity log only from visible assignments. Bug #367. 2003-04-25 23:49:35 +00:00
stronk7
b3cc742cf9 Avoid showing course updates (add, update, delete) about hidden mods. Bug #367 2003-04-25 23:17:53 +00:00
paca70
c4c575979e Allow caseinsensitive search for postgesql 2003-04-25 19:32:38 +00:00
paca70
3399a22c9f Show adduser only when adding new user from moodle is posible. 2003-04-25 17:18:40 +00:00
paca70
4dd0497164 Dont allow edit username when external authentication is active. 2003-04-25 16:42:07 +00:00
moodler
826293c75b Allowed - and . during signup by email 2003-04-25 12:35:17 +00:00
moodler
5a9126f75a Renamed signup_form.php to signup_form.html (this part of the code is really old) 2003-04-25 12:32:26 +00:00
moodler
a2f1ef3067 Some default values for variables 2003-04-25 12:29:52 +00:00
moodler
266cc04fe7 Footers use new styles for links 2003-04-25 09:25:25 +00:00
moodler
b328523cc1 Style for "You are logged in as xxx" and the link to the course home page. 2003-04-25 09:23:08 +00:00
moodler
a5c411d4c2 Smaller font 2003-04-25 09:01:01 +00:00
moodler
583a7283e9 Edit my profile link goes straight to the edit screen 2003-04-25 08:59:10 +00:00
moodler
fc613dff69 Directories are now made using make_upload_directory from moodlelib 2003-04-25 08:39:11 +00:00
moodler
4d4267739c Some minor visual improvements - firstname/lastname separated, initialised some variables 2003-04-25 07:15:12 +00:00
moodler
a282d0ffda Adding user's name at the top of the course page.
Just experimenting with it there for a while ... feedback welcome
2003-04-25 06:40:30 +00:00
paca70
87b490dfc6 Hide password field when password change is not supported by auth-module. 2003-04-25 06:01:59 +00:00
moodler
580f2fbc07 New function to detect visibility of a single module, and
use of this function when displaying list of forums
2003-04-25 05:24:29 +00:00
moodler
047d30d1eb MySQL code (etc) to convert all usernames to lowercase ... does a lot more
checking than it really needs to, since MySQL is not case sensitive
2003-04-25 03:54:21 +00:00
paca70
1e22bc9c04 Conver usernames to lowercase for internal use. This prevent duplicate users
when using external authentication and posgresql.
2003-04-24 20:06:40 +00:00
paca70
e40488f80c routines to convert postgeruser to lowercase. 2003-04-24 18:48:09 +00:00