Project

General

Profile

Bug #6740

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

Added by Yannick Warnier almost 7 years ago. Updated about 6 years ago.

Status:
Assigned
Priority:
Normal
Assignee:
Category:
Forum
Target version:
Start date:
03/10/2013
Due date:
% Done:

10%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

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).

History

#1

Updated by Julio Montoya about 6 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:

https://github.com/chamilo/chamilo-lms/blob/1.9.x/main/forum/forumfunction.inc.php#L2569

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()

#2

Updated by Yannick Warnier about 6 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