moodler
16ef5e7812
Some fixes so that navmenus don't jump out of frames any more.
...
The navmenu function now takes a third parameter that specifies
the window to change location of (default 'self', but could be "parent" or "top")
2003-08-26 06:01:13 +00:00
moodler
d9be205e79
Fixed an uninitialised variable
2003-08-25 17:30:26 +00:00
moodler
d6bdd9d5e9
Forum grades can now be numerical as well (like the other modules).
...
If so, grades in the gradebook are printed as proper numbers and
contribute to the total of the course.
2003-08-25 12:47:36 +00:00
moodler
20dc89e50d
Put "Source" label after checkbox ... just in case text pushes
...
the box off screen
2003-08-25 03:48:09 +00:00
moodler
a20c109058
Fixed a bug when displaying menus with a zero in them
2003-08-25 02:32:20 +00:00
stronk7
4545fc3890
Solved one condition that caused some errors in Win32 when extracting.
2003-08-24 22:35:57 +00:00
moodler
757a0abd94
Corrected the stamp I just added and added a separate version field instead
2003-08-23 14:18:44 +00:00
moodler
1ccc73ac3b
Use gmdate instead
2003-08-23 12:25:50 +00:00
moodler
280faf9ff7
Added a new function to make a unique ID code, to be used in quiz
...
questions and elsewhere
It's based on the hostname, time, random string and a supplied version string.
These are packed using '+ separators so they can easily be unpacked if
necessary.
function make_unique_id_code($version=1)
2003-08-23 12:22:27 +00:00
moodler
1a5ab4490f
Improvements to logs when looking at site logs.
...
Also, improvements to get_site_users (slower but it works now!)
2003-08-23 06:19:05 +00:00
moodler
7a7ac154a4
Some small fixes when deleting a category
2003-08-22 12:49:37 +00:00
moodler
0ddf039078
pclzip 2.0 RC2 - hopefully better!
2003-08-22 12:35:43 +00:00
moodler
9b16d1eada
More tweaks to fix on/off button for admins o ncourse listings
2003-08-22 12:26:36 +00:00
moodler
519d369f60
Added full paging to all displays of logs! :-)
2003-08-22 06:07:18 +00:00
moodler
2f3499b70d
Fixed up get_my_courses().
...
It's not a tidy SQL statement any more but it's MUCH MUCH faster
with large data sets.
2003-08-21 17:24:40 +00:00
moodler
f04dc61d72
Ellipsis at start as well
2003-08-21 14:23:31 +00:00
moodler
924cef21d5
Put an ellipsis in paging
2003-08-21 14:22:06 +00:00
moodler
8130b77b40
Split get-courses_page from get-courses so they can specialise
2003-08-21 14:04:04 +00:00
moodler
be20753e7e
Some better paging that now works with any number of pages
2003-08-21 13:47:14 +00:00
moodler
53b67df521
Fixed the SQL for teachers and students
2003-08-21 12:19:09 +00:00
moodler
f68e5995e5
Fix for non-logged-in person
2003-08-21 09:39:07 +00:00
moodler
8ef9cb5618
Some fixes to handle very very big categories.
...
- paging
- more efficient SQL
2003-08-21 09:33:07 +00:00
moodler
356fea4a64
Slightly better
2003-08-21 08:20:20 +00:00
moodler
5640353876
Course search shouldn't find the "site" course.
2003-08-21 08:19:28 +00:00
moodler
3052e775c8
Added an index on courses for the category
2003-08-21 08:14:56 +00:00
moodler
fff79722e5
A new course field called "showgrades" which allows the teacher to
...
turn the display of the grade book on and off.
2003-08-20 07:32:24 +00:00
moodler
9936fe81ea
The number of courses in the categories is now cached in the
...
the category, and only updated when courses are moved/added/deleted etc
or the admin looks at the category listing
2003-08-19 09:26:36 +00:00
moodler
a8b5671697
Improvements to course searching
...
- can search for full words or non words with +word -word
- no longer groups by category, sorts by full name
- prints paging as well as total number
- search help
2003-08-19 05:32:20 +00:00
moodler
e27dbcc8e5
Limit pages to something sensible
2003-08-19 04:37:32 +00:00
moodler
8b9c7aa069
Searching forums now has proper paging.
2003-08-19 03:35:53 +00:00
moodler
42282810f8
Better set_config (give immediate results)
2003-08-18 17:41:06 +00:00
moodler
2f4d324bd7
Trying something different with the admin links ... even I was starting
...
to get a bit lost occasionally.
2003-08-18 16:40:27 +00:00
moodler
1f7deef685
FIxed bug that was not showing custom scales
2003-08-18 11:58:07 +00:00
moodler
62ca135d98
More cleanups and separation of printing the grades menu into a new function
2003-08-18 05:28:30 +00:00
moodler
fdc47ee6c9
New function make_grades_menu() for easily making an array of grades
2003-08-18 05:10:35 +00:00
moodler
12407705af
Check for existence of directory as well to avoid PHP warnings
2003-08-17 14:16:08 +00:00
moodler
487c1711fe
There's no point in printing the notice - if there's no directory
...
there's no files ... pretty simple.
2003-08-17 14:14:12 +00:00
moodler
678d11c921
Upgrading to version 2.0 RC1 - hoping it will fix some Windows problems
...
in the older version.
2003-08-17 12:35:20 +00:00
moodler
3041b0f88a
More robust teacher adding/removing
2003-08-17 08:51:55 +00:00
moodler
6815044f28
Exclude vti_cnf directories if they are found
2003-08-17 05:50:47 +00:00
moodler
4d312bbe0f
Don't enrol student if they are already enrolled.
2003-08-17 05:48:05 +00:00
moodler
94d782eb93
Don't show feedback when running SQL
2003-08-17 01:55:03 +00:00
moodler
64cbb55c2e
Make sure it's THIS course that the student is currently enrolled in
2003-08-17 01:49:15 +00:00
moodler
0a08581d61
New function get_recent_enrolments() to more efficiently get recent enrolments
2003-08-17 01:45:26 +00:00
moodler
b6c1273289
Only editing teachers see controls and things
2003-08-16 06:44:03 +00:00
moodler
21f93862bd
Backed out the new configuration variable "creatornewcourses" as it
...
is no longer wanted or needed
2003-08-16 05:43:26 +00:00
moodler
73047f2f76
OK, this is a new scheme to allow some teachers to edit and others to not
...
that is much better than the proposal to change the role of course creators.
There is a new field in user_teachers called "editall", which is
ON BY DEFAULT, and allows teachers to edit courses. It can be modified
on the teacher editing screen (formerly assign teachers).
The value is cached in the session.
To test for it, there is a new function isteacheredit($course->id)
which works much like isteacher did.
I'm going through now and applying this new function wherever
it is needed.
2003-08-16 05:19:24 +00:00
moodler
5fcd1b52aa
Hold the presses ... I hate doing this but after going into detail
...
changing the course creator account like this is the wrong way to
do this.
Instead, I'm going to be adding new fields to user_teachers
Stay tuned
2003-08-16 03:28:56 +00:00
moodler
48d72fa7c9
*** empty log message ***
2003-08-16 02:45:44 +00:00
moodler
6f4f04df3e
Fixed database upgrade so that forum->scale is created before the
...
get_scale_menu tries to use it.
2003-08-16 02:30:23 +00:00