moodler
353d033843
get_course_users now calls get_site_users if the course is a site.
...
There is something wrong with this SQL still though ... it mostly works
but I'm still getting wierd behaviour with small numbers of users.
Need some help here ... for example just look at get_site_users()
on your test site.
It's supposed to return a list of users who are admins, creators,
teachers or students
2003-05-20 09:33:30 +00:00
moodler
bbf9b1624d
Improved get_site_users a bit for efficiency
2003-05-17 06:10:20 +00:00
moodler
a53cef7e80
Removed obsolete get_users_search function
2003-05-14 16:29:26 +00:00
moodler
5a74165523
FIxed up function get_user() which now takes lots of parameters and
...
can be used all over the place.
Also, related fixes to "add admin" (MUCH better performance) and the user listings
More to come for "add teacher" and "add creator"
2003-05-14 15:19:04 +00:00
paca70
a918234e91
Postgres limit fix
2003-05-05 16:13:45 +00:00
paca70
8a230a7d96
Better postgresql support for column creation
2003-05-04 16:03:45 +00:00
moodler
9d6f5d42eb
Only retrieve records that are needed (eg description never is used)
2003-04-29 03:16:32 +00:00
paca70
28ba0d55cc
...And now it works
2003-04-28 15:24:13 +00:00
moodler
b86fc0e2a6
New feature replacing the old zoom function.
...
Now these are saved in a new table called course_display,
each user and each course can have independent settings.
I'm intending to expand this table later for all the other
course display stuff (like hidden topics etc)
2003-04-28 13:29:26 +00:00
paca70
9655b654a5
Now postgres works as it should, returned primarykeys are correct.
2003-04-28 12:51:19 +00:00
paca70
6492992616
I did't test previous change well, have take changes back.
2003-04-28 12:02:29 +00:00
paca70
e9ececbb1e
$db->Insert_ID seems to work with postgresql too
2003-04-27 16:03:01 +00:00
moodler
30f89d6833
New delete_records_select() function
2003-04-27 06:18:03 +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
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
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
stronk7
7cfb83477c
Modified to obtain the visible property too. To use it when showing the list
...
of instances of every mod (bug #364 )
2003-04-24 15:17:43 +00:00
moodler
7acaa63d09
Tidy up a bit
2003-04-23 16:57:35 +00:00
stronk7
00d26a208b
Changed the get_course_mods function to obtain the visible property too.
2003-04-23 16:09:56 +00:00
paca70
cefc7e817e
Fix for postgresql column adding( $oldfield is always '"$oldfield"')
2003-04-18 20:50:42 +00:00
moodler
1acfbce5b6
Hide/show individual activities in any section
...
Code submitted by Eloy Lafuente (thanks!) for 1.0.8 ... I hand-merged it
into 1.0.9.
2003-04-14 15:11:09 +00:00
moodler
2d0b30a028
What was I thinking? This is much cleaner (and no duplicates).
2003-03-29 04:08:51 +00:00
moodler
adaf39283c
Changes to activate the "force subscribe" option on the Site News forum.
...
By default it is OFF, but if it is turned on, then site news is emailed
to ALL enrolled students and ALL current teachers.
2003-03-29 03:39:56 +00:00
moodler
e384fb7b73
Can now count a search of users
2003-03-21 10:10:21 +00:00
moodler
c750592ac4
Added a search form to the "edit users" admin page yay!
2003-03-21 09:42:42 +00:00
paca70
509139373e
Fixed incorrect comparison. Peter Paluch pointed this out.
2003-03-15 18:26:46 +00:00
moodler
9d5b689c8a
Added vim commands at the bottom of the file to try it out
2003-03-14 07:55:22 +00:00
moodler
31ce4b538c
Fixed quotes on column
2003-03-03 17:46:53 +00:00
paca70
1924074c76
Added support for nonadmin course creation.
...
Course creators are managed by /admin/creator.php , same way that admins.
Or if authetication module have 'auth_iscreator'-function (right now only ldap-module have) ,
users are added to creators at login time.
2003-02-24 18:48:55 +00:00
moodler
2b051f1c8e
Changes to modify_database() so it works with string input
2003-02-24 09:36:15 +00:00
moodler
5a4d292bca
Added changes to table_column from Petri Asikainen for Postgresql 7.3
2003-02-18 07:44:26 +00:00
moodler
c2a96d6b32
Fixes for the use of LIMIT in SQL for Postgres 7.3 (from Petri Asikainen)
2003-02-18 03:16:07 +00:00
moodler
9223049919
Fixes to insert_record for inserting null values.
...
Also some unfinished changes to table_column ... not recommended for use right now
2003-01-24 07:51:55 +00:00
moodler
dc8791f367
Undoing recent change to insert_record() because of some problems
2003-01-20 07:10:14 +00:00
moodler
a7e838796a
Rogue tabs
2003-01-19 06:07:05 +00:00
moodler
3c72e2f9c9
Some changes to insert_record to help Postgres 7.3
2003-01-19 05:46:49 +00:00
moodler
1c418003d7
FIxed logic problem when checking has_default variable in the database
...
when inserting new data
2003-01-14 15:36:20 +00:00
moodler
ce78926df0
Small robustness fixes
2003-01-06 13:55:37 +00:00
moodler
a3fb1c450a
New function table_column() to add or alter a column in any database.
2003-01-03 15:31:30 +00:00
moodler
e53b0823ab
More robust checking of returned $rs
2003-01-03 06:44:35 +00:00
moodler
61e96406df
Robustness fixes
2003-01-02 10:35:11 +00:00
moodler
f53af9410c
Better checks during membership checks
2002-12-31 07:16:52 +00:00
moodler
b3fa6684ea
Fixes to insert_record (from Petri) to explicitly use field default
...
values if we know them from ADOdb, to avoid some problems with PostgreSQL 7.2 onwards
2002-12-30 03:25:48 +00:00
moodler
18496c590b
New get_record_select function (for completeness) and a completely
...
revamped update_user_in_db() function
2002-12-29 16:28:09 +00:00
moodler
9d378732e4
More little fixes
2002-12-29 04:17:32 +00:00
moodler
5c63e0c4ee
Some changes to remove warnings about empty variables and cleanup
2002-12-29 04:02:42 +00:00
moodler
97485d0726
More database tweaks and improved access to forum search engine
2002-12-23 15:33:40 +00:00
moodler
99988d1a87
This version installs smoothly for me on PostgreSQL
2002-12-23 14:19:45 +00:00
moodler
31fefa636d
More database tweaking ... looking pretty good with PostgreSQL now
2002-12-23 13:48:31 +00:00
moodler
ebc3bd2b24
Changes throughout Moodle to remove any reserved words from the
...
Moodle tables.
ie user -> userid in many tables, plus in user_students
start -> starttime and end -> endtime
I've just done all this as carefully as I could ... I don't think
I missed anything but it's pretty intensive work and I'd be fooling myself
if I didn't think I'd missed a couple.
Note that this version should pretty much be able to bootstrap itself
using PostgreSQL now ... but this is untested
2002-12-23 09:39:26 +00:00