138 Commits

Author SHA1 Message Date
mjollnir_
1ecea97679 Granular backup & restore:
This patch allows the much requested selection of individual instances of modules within a course to backup and restore.
It needs A LOT of testing and probably some prettyifying too.
2006-01-13 03:45:31 +00:00
toyomoyo
c8ee027b0e added 2 fields in xml, addindex and dropindex, and bug fixes 2006-01-11 01:46:22 +00:00
toyomoyo
1e4d9ff6dc utf8 migration support scripts 2006-01-09 06:06:49 +00:00
stronk7
2bc0b7a0c4 Now ewiki should work pretty fine under any charset. UTF-8 included,
of course!

Merged from MOODLE_16_UTF8. Abandoning the branch.
2006-01-05 16:53:03 +00:00
toyomoyo
fc7fc3c005 merged, wrong param type for $page 2005-12-21 03:26:19 +00:00
toyomoyo
c07a004c40 merged, fixed a bug that student can't remove wiki pages in group mode 2005-12-16 07:19:59 +00:00
mjollnir_
dcfb30bb16 Merged from MOODLE_15_STABLE: Fixing a fatal error in updating a wiki (lib.php included twice ) 2005-12-11 21:29:56 +00:00
moodler
aa8139414e Replaced optional_var with optional_param 2005-12-07 06:21:58 +00:00
moodler
fa22fd5fff BIG FEATURE - MULTIPLE GROUPS
Users can now be assigned to multiple groups.  Thanks Yu!
Break out the Bob Marley!!

Otherwise groups work more or less like they did before.

This has been pretty well tested by Yu and myself, but since Yu started
uncovering lots of existing groups bugs it's possible there may be still
a few corner cases still lurking here and there.

Please help test this thoroughly for 1.6!!
2005-11-08 07:19:27 +00:00
skodak
4c19b6ec04 fixed input validation in admin and formating+cleaning in diff and editing SC#160; merged from MOODLE_15_STABLE 2005-11-03 23:47:28 +00:00
stronk7
713efedc31 Changed one call to gethostbyaddr() to use numeric
ip instead. Such information is only stored in DB
(page->author) and not critical at all. Suggested
by Derry in http://moodle.org/mod/forum/discuss.php?d=32171
because it was causing important delays when clients
weren't DNS-registered.

Merged from MOODLE_15_STABLE
2005-11-01 17:47:20 +00:00
stronk7
3043912d9b Commiting some old unmerged changes. 2005-10-15 10:30:15 +00:00
mjollnir_
f3221af9e5 Initial checkin of stats (from processing the log table).
I will write up some information about it for the developers wiki.
2005-09-01 04:14:31 +00:00
stronk7
ad6bf17871 Added the $Id$ tag
Merged from MOODLE_15_STABLE
2005-07-24 10:29:23 +00:00
stronk7
0d1b48960a Now paging of older versions is showed and working properly. It was
really buggy! One string added to wiki lang file too. Bug 3750.
(http://moodle.org/bugs/bug.php?op=show&bugid=3750)

Merged from MOODLE_15_STABLE
2005-07-21 23:40:27 +00:00
moodler
f5e1319ec3 Merged SC139 from stable 2005-07-12 08:00:51 +00:00
stronk7
a118d51709 The hardcoded limit of 1000 was breaking long pages display in Moodle.
I've changed it to a variable limit depending of the page lenght. Bug 3039.
(http://moodle.org/bugs/bug.php?op=show&bugid=3039)

Merged from MOODLE_15_STABLE
2005-07-09 16:41:58 +00:00
skodak
dd5de88921 fixed comments - SC #61; merged from MOODLE_15_STABLE 2005-07-05 08:29:07 +00:00
skodak
4c2740fc5c fixed searching - SC #61; merged from MOODLE_15_STABLE 2005-07-05 08:18:38 +00:00
stronk7
25ef0370d5 Improved automatic relinking in backup and restore. Credits go to skodak.
Complete refactoring of the system that was really awful (my fault!).
Now everything is in its place and working like a charm, making things really
easier to be implemented and amplied. Bug 3678
(http://moodle.org/bugs/bug.php?op=show&bugid=3678)
(http://moodle.org/mod/forum/discuss.php?d=26530)

Note: Everything is merged from stable but the quiz module because it has
other changes not merged for now. I've skyped a message to Gustav about it.

Merged from MOODLE_15_STABLE
2005-07-04 18:56:03 +00:00
stronk7
26ccd11c60 New lightspeed wiki filter (using the static and nothingtodo technologies now) 2005-05-06 17:57:08 +00:00
moodler
7328a56c81 Fix for the jumpy flickering HTML editor! 2005-05-04 10:45:39 +00:00
moodler
b8a11dfff9 Only add a Wiki edit log entry when we have submitted changes. (SE) 2005-04-29 23:24:25 +00:00
stronk7
c3cc897b83 Deleted one debug message and added one minor change. 2005-04-10 16:47:03 +00:00
stronk7
973ec7b671 Now wiki->name supports $CFG->filterall
(specifying a multilang name allows to have different start pages too!)

I've found some bad XHTML in this module and some inconsistencies
with different cased page-names. Are wikipages different if their name case is
different? If no, we should fix it.
2005-04-10 15:30:04 +00:00
moodler
43070bc1a3 Replace HTTP_POST_VARS and HTTP_GET_VARS with _POST and _GET 2005-04-02 11:54:46 +00:00
moodler
41682d287c Now uses the new tab structure (SE) 2005-03-15 09:58:14 +00:00
moodler
d38577e226 Simplify autolink styles to "modulename autolink" 2005-03-15 08:38:27 +00:00
moodler
b9dc937d01 Removed some redundant wrappers 2005-03-13 16:25:30 +00:00
moodler
b846ac39ff Standardise the intro box using an ID 2005-03-13 16:17:55 +00:00
moodler
69ad0d6928 Better logging and recent activity 2005-03-10 14:11:07 +00:00
moodler
8f7dc7f1c7 Variety of small fixes, but mostly related to how the recent activity
block is constructed.  A new function exists to pump these notes out
in a standard way :  print_recent_activity_note.

Module dependencies also updated because of this.
2005-03-10 13:30:57 +00:00
paca70
2b92c040c8 Merged postgresql fixes from MOODLE_14_STABLE(Revision 1.2.4.1) to HEAD. 2005-03-09 15:14:27 +00:00
moodler
b7ac9c8c75 Fixed a bug that was using all versions of each page in the filter process.
Now only one instance of each page is used. (SE)
2005-03-08 07:47:10 +00:00
moodler
8a0556be8c Fixed four more references to mimetypes.php (bug 2690) Thanks, Gustav! 2005-03-07 15:11:43 +00:00
moodler
ffa1447181 Minor formatting changes ... put a table around the htmleditor area to
rein it in.
2005-03-07 06:32:54 +00:00
moodler
c305e24e94 Merged fix from stable for dates 2005-03-07 06:00:04 +00:00
mchurch
1fb5d4b081 Added the 'get_recent_activity' function (see bug 1897). 2005-03-05 04:14:51 +00:00
moodler
facc743aa2 Rewritten to use the new generic filter function. (SE) 2005-03-04 10:12:44 +00:00
stronk7
d0b95287c5 Some $ME are now out!
Merged from MOODLE_14_STABLE
2005-02-27 02:13:18 +00:00
stronk7
2231b98040 Avoid some notices breaking image display and correct redirects. Bug 2638.
(http://moodle.org/bugs/bug.php?op=show&bugid=2638)

Merged from MOODLE_14_STABLE
2005-02-25 00:11:49 +00:00
stronk7
472a28cab4 Now the get_participants() standard function is working inside wiki module
Merged from MOODLE_14_STABLE
2005-02-24 23:50:24 +00:00
stronk7
029db9ee2d When any URL is going to be used in a Location header or
in a meta-refresh, both Safari and Firefox, seems to fail
using & as parameter separator. Bug 2620.
(http://moodle.org/bugs/bug.php?op=show&bugid=2620)
2005-02-22 23:37:14 +00:00
stronk7
ac3f72c899 Major rework of the wiki backup/restore.
It wasn' working fine because the wiki_pages table hadn't an id (primary key) field.

I've created, in the upgrade process, a temporary table to copy all the wiki_pages
records and then, drop and create again the table.

Tested under MySQL. Need to be tested (both creation and upgrade) under PostgreSQL!!!

Minor modifications to ewikimoodlelib.php to work with this new id field too. Seems to work
although deeper tests will be welcome (attachements, binary contents...)

Cross your fingers! ;-)
2005-02-21 17:55:54 +00:00
mchurch
f0195f0295 Fixed help button layout in accordance with standard modules (bug 2556). 2005-02-18 18:18:00 +00:00
gustav_delius
1ee55c41d9 Give groupmode selection to mod.html for all modules that use groupmode. Also fix bug 2576 2005-02-17 19:19:21 +00:00
gustav_delius
ec81373f50 In order to ensure that when a teacher hides a resource or an activity that students really can't get at it, even if they know the direct links to its pages, I have given an optional third argument $cm to the functions require_login() and require_course_login(). Pages showing information about a particular course module now pass the course module object in this third argument. The login functions will then test if either the course module is visible or the user is a teacher. If neither is the case then the user is redirected to the course homepage after being shown a message "Sorry, this activity is currently hidden".
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
2005-02-16 10:40:48 +00:00
gustav_delius
48e535bc35 Activities can now be hidden/shown from the activity editing page. Also for modules that know about groups the groupmode can be set from there. See bug 2533. This required adding to the mod.html files calls to new functions print_visible_setting() and print_groupmode_setting() which are combined in print_standard_coursemodule_settings().
The visibility of coursemodules is now always set through the function set_coursemodule_visible() in order to make sure that the associated events get updated in the calendar appropriately.

If moving a coursemodule to a hidden section then the module is set to hidden as well and its events are hidden in the calendar.

If deleting a coursemodule its events are deleted from the calendar.

The function choose_from_menu() has an extra optional argument $disabled which, when set to true, will disable the menu.

For the sake of consistency the function set_groupmode_for_module has been renamed to set_coursemodule_groupmode and the functions show_course_module() and hide_course_module() have been combined to set_coursemodule_visible().
2005-02-12 21:41:22 +00:00
moodler
f1c1d2f166 Removing the THEME variable and adding in classes where appropriate 2005-02-10 10:41:22 +00:00
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00