28 Commits

Author SHA1 Message Date
stronk7
22bb909b57 Now forum_read is included in backup & restore 2005-02-18 19:05:09 +00:00
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00
gustav_delius
8f0cd6ef0f Resolved problems with previous replacement of
& to & and fixed redirect() to entity encode the
inut where needed.
Julian Sedding
2004-09-21 11:41:58 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
41905731b7 fixed capitalization and quoting of attribute values 2004-09-12 16:24:41 +00:00
gustav_delius
a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +00:00
stronk7
5b76e6fc51 Now every link to forums (from resources and forums) and every link
to resources (from resources and forums) are re-encoded in backup/restore.

I could reduce the code size but for now I prefer to have it this looong
form to clarify what it's doing.

Please, test, test and test...
2004-05-08 18:30:30 +00:00
stronk7
3a238a355a Changed the system to recode links to forums. Now it it detect
that the link doesn't belong to the course being restored, then
the original link is mantained.
With this, the backup/restore should be finished. Now some
tests to check everything !!
2004-05-07 23:40:41 +00:00
stronk7
c05e7d7e53 Added support for rsstype and rssarticles in forum's
backup & restore.
2004-05-03 18:18:54 +00:00
stronk7
759a8abbad I suppose that now forum needs current version of Moodle
to work (modified cron system...), isn't it?
2004-05-02 23:14:53 +00:00
stronk7
56eea82e08 First version of inter-activities mantained in backup/restore.
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 :-)
2004-04-24 00:40:45 +00:00
stronk7
744d723c2c Now forum logs are restored. 2004-02-22 12:34:07 +00:00
stronk7
96d6fc8f14 Solved small bug in delete discussion action, where the
info field was storing the post->id rather of the discussion->id field
2004-02-22 11:40:44 +00:00
stronk7
e222ce0944 discussion->usermodified is in backup & restore now. 2004-02-08 19:34:22 +00:00
stronk7
61f95aada5 Now userid and groupid fields are recoded correctly
in the restore process. This should make the backup utility
group-compliant !! (when talking about forums, of course) :-)
2004-01-25 21:00:06 +00:00
moodler
02509fe667 Improvements to forum groups.
New forum_discussions->groupid now stores the group ID for the
discussion.
2004-01-23 12:09:25 +00:00
moodler
d05956ac9f Some improvements in efficiency of Recent Activity.
There is now a new field in forum_discussions which has the userid
of the author in it.  This saves a lookup every time to forum_posts.

There is also some caching and rearrangement of the logic.

It seems to work OK, I'm about to do some speed tests on moodle.org
2004-01-14 11:50:29 +00:00
moodler
3bd98ad4bc New option to allow students to see aggregate ratings on other posts (anonymous) 2004-01-01 04:48:55 +00:00
stronk7
73daab351c When restoring "teacher" forums, if it exists in destinatio course, discussions
are merged mantaining a unique forum (previously, a second "teacher" forum
was created). See bug 880 (http://moodle.org/bugs/bug.php?op=show&bugid=880).
2003-11-16 22:49:11 +00:00
stronk7
4a4f96bd79 Now forum->maxbytes is supported in backup/restore. 2003-10-07 12:02:19 +00:00
stronk7
e02ff1427e Changed comment, sorry 2003-08-25 17:24:44 +00:00
stronk7
cd6232200c Changed to support "negative" values in scale field. 2003-08-25 17:23:31 +00:00
moodler
98914efdbe New mini-feature. When choosing ratings in a forum, one can now
specify a range of dates.  Only posts within this range can be rated.
If the range isn't specified then all posts can be rated.
2003-08-25 07:39:06 +00:00
moodler
5884d4e2fd Fixed some array indices 2003-08-25 02:48:09 +00:00
stronk7
93d7d97fc8 Scales are now supported in forums backup and restore 2003-08-18 00:03:40 +00:00
stronk7
c45f0ee1cc Fixed important bug when recovering assignments or forums
with files and the moddata/courseid didn't exist.
Now force the creation of the courseid dir from the
restorelib in each module.
2003-07-28 22:31:23 +00:00
stronk7
902142c079 Added language support 2003-07-28 19:32:51 +00:00
moodler
60bb26021a Whoops forgot to check these babies in 2003-07-10 08:12:18 +00:00