Bug #6740

Forum in sessions: make course's form category, forum and thread first message visible in session

Added by Yannick Warnier about 8 years ago. Updated over 7 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Spent time:
SCRUM pts - complexity:


When creating a forum in the base course and making the forum visible (so it is visible in sessions), the first 3 levels should be "shared" to the sessions:
  • forum category
  • forum itself
  • forum thread (only the first message)

It goes in the same direction as what we have developed for the forum copies (backup tool).

Basically, this allows the main teacher to prepare a larger number of resources for use through the sessions.

In the background, the availability of these should be made through a copy of the base course's resources, the first time you enter the course forum through the session: if there is no content there, replicate the course contents (up to the first message of each thread) so we can then modify it locally (and possibly remove it if we don't like it).



Updated by Julio Montoya over 7 years ago

  • Status changed from Assigned to Needs more info
  • Assignee changed from Julio Montoya to Yannick Warnier

I reviewed the code, and is possible to do that (show forum category, forum itself, and 1 first thread) but is not possible to make a difference between the posts in a session and posts in a course, because there's any api_item_property_update() for the posts.

In fact there's a api_item_property_update() but it updates the forum, it doesn't create an entry for every posts.

Here's the api_item_property_update() when creating a new post:

So I think there'are 2 possible solutions:

1. Add a session_id in the c_forum_post and update the value.
2. For every add/edit post create a new entry in c_item_property using api_item_property_update()


Updated by Yannick Warnier over 7 years ago

  • Status changed from Needs more info to Assigned
  • Assignee changed from Yannick Warnier to Julio Montoya
  • Target version changed from 1.9.8 to 2.0
  • % Done changed from 0 to 10

Go ahead (in master branch) with solution number 1

Also available in: Atom PDF