Solve an important issue about scheduled backups not working properly
when encoding links...
Added support for event->visible in backup & restore.
TODO: Add wwwroot to backup/restore to use it when decoding.
Change the system to encode forum calls.
All the conversion to some pseudo-codes are done at backup time.
In the restore process, every link is decoded to new ids.
For now, this is supported:
- In backup:
-all links to forums are encoded.
- In restore:
- all links to forums are decoded.
- from forums (post->message).
- from resources (resource->alltext).
The process requires a backup made with the same version (because it
has to be properly encoded at backup time). Old backups will work
without conversions at all.
Only tested with some little courses.
It would be perfect to have some "big" course to test it.
Please, test and feedback, ciao :-)
Integrated with Moodle:
- Install automatically.
- Update course->blockinfo for each course at installation time.
- Modified course creation to insert into blockinfo field.
- Modified restore to insert into blockinfo field.
- Admin options (hide, show, delete, config) from admin page.
- Lang strings inserted (en only).
- Database support to mysql and postgresql (not tested!!).
Moodle, backup and block versions updated to 2004041800.
Tested with mysql: Install fresh and upgrade from previous.
section_activities block renamed to social_activities and created
its own lang file to support name "Social Activities". This can
be changed at any time.
TODO:
=====
Support it really in backup/restore.
????
Enjoy!! Ciao :-)
in the backup/restore process in order to have every call to file.php
working in destination courses. Specially useful to contents created
with th HTML editor because it uses this type of URLs to images, smiles...
NOTE: This make 1.3 backups not restorable in 1.2 systems !!
- Now course events are supported in backup & restore.
- in manual backups
- in scheduled backups
- Fixed important bug when restoring groups.
- Added support to the "user change password" action
(with some changes done in login/change_password.php)
Please, test it !!!!
This is a course setting. By default it is off. When on, there
is a new link in the course admin menu for students, and they can
browse the same report that teachers see.
The report icon is temporary.
- Check if (category_id, category_name) exists.
- Check if (category_name) exists.
- Check if category_id = 1 exists.
- Create a new, initially invisible category withe the info in backup-file.
This solves a issue when restoring to a new course and category_id 1
had been removed !!
- Restoring to courses without section 0 (manually deleted).
- Restoring to sections without mods and null values in its sequence field.
Thanks to Janne Mikkonen...
"course users" are selected. This uses the xxxx_get_participants()
function in every module.
This solves an issue about info in modules belonging to
unenrolled users (Bug #692 closed).
Mantain compatibility with old backups (1.1 and 1.1.1).
Updated version to "1.2 development".
Included support to "label" module (by Martin)
that tells us how far to indent the activity when it is displayed.
This gives us some more flexibility on the course outline to
arrange things as we might like them, into subtopics etc
Backup/restore is updated as well.
There is also a bit more robustness in course/mod.php
because it flags errors when in debug mode).
Also, when specifying array values by name use quotes around the name
eg $array['value'] instead of $array[value]
Finally, I changed the way user restoring works (slightly). Before, if a
restored user was found to be a course creator or an admin, then this
status was restored. I don't think this is a good idea - it could lead
to security problems when copying a backup from one site to another,
or if that person's status has changed since the backup was made.
I think it's best to only restore what is actually part of the course,
ie teacher or student.
If this broke anything else let me know!