chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

Announcements: Add feature to make announcement always visible

Open ywarnier opened this issue 9 years ago • 6 comments

Current behavior / Resultado actual / Résultat actuel

At the moment, if you add an announcement, you always have to choose who you send it to. There is no feature to say "all students can see it, always", so when you create an annoucement for all and then subscribe a new user to the course, the new user cannot see past announcements.

Expected behavior / Resultado esperado / Résultat attendu

When a new user joins a course, he should see announcements that were sent to all students earlier on.

Steps to reproduce / Pasos para reproducir / Étapes pour reproduire

  • Create a course
  • Subscribe 2 students
  • Create an announcement and select all students as destinatories
  • All students can see the announcement in the announcement tool
  • Subscribe 1 new student
  • Log in as the new student
  • Enter the announcements tool: the announcement is not visible

Chamilo Version / Versión de Chamilo / Version de Chamilo

1.11.x

ywarnier avatar Feb 16 '17 03:02 ywarnier

It appears that this already works as requested as long as the announcement is sent to a group or "EVERYONE" (i.e. empty addressee list) and not explicitly to x selected persons.

A message to x distinct people will be stored as x different rows in the property table but a message to 'everyone' is marked as such and a new course member will be able to see those messages.

However, the user interface for selecting "Everyone" is not clear on this. I think a seperate "ALL" group in the addressee select box would be more helpful than the current message to leave this box empty if you mean "everyone".

Steps:

  1. create announcement to everyone by leaving SendTo field empty (ugly UI)
  2. subsribe new student
  3. new student can see all messages to "everyone".

jderriks avatar May 19 '17 21:05 jderriks

Assigne to Nicolas for thorough review of current situation in 2.0 before closing or reassigning.

ywarnier avatar Dec 04 '20 09:12 ywarnier

Hi @christianbeeznest When creating a course announcement the content block in the form (https://testing24.beeznest.com/main/announcements/announcements.php?cid=1&sid=0&gid=0&gradebook=0&origin=&action=add) do not allow to type any text, it does not respond when clicking in the blank part (the menu respond but nothing below).

image

And if the content block is empty then it generates an error when validating the form :

Warning: Array to string conversion
ExceptionLogs 1Stack Trace
ErrorException
in public/main/inc/lib/pear/HTML/QuickForm/Renderer/Default.php (line 382)
                $required,                $error            );            if ($error) {                $element->setAttribute('class', $element->getAttribute('class').' p-invalid ');            }            $this->_html .= str_replace('{element}', $element->toHtml(), $html);        } elseif (!empty($this->_groupElementTemplate)) {            $html = str_replace('{label}', $element->getLabel(), $this->_groupElementTemplate);
HTML_QuickForm_Renderer_Default->renderElement()
in public/main/inc/lib/pear/HTML/QuickForm/element.php (line 463)
HTML_QuickForm_element->accept()
in public/main/inc/lib/pear/HTML/QuickForm.php (line 1610)
HTML_QuickForm->accept()
in public/main/inc/lib/pear/HTML/QuickForm.php (line 1648)
HTML_QuickForm->toHtml()
in public/main/inc/lib/formvalidator/FormValidator.class.php (line 1276)
FormValidator->returnForm()
in public/main/announcements/announcements.php (line 782)

NicoDucou avatar Jun 07 '23 14:06 NicoDucou

For the visualization of announcement it stills works in Chamilo 2 as it was in Chamilo 1.11.x thant is to say that if you do not select any specific user to whom to send the announcement then it will be visible for new student subscribed to the course after the announcement was created.

NicoDucou avatar Jun 07 '23 14:06 NicoDucou

Hi @NicoDucou,

Indeed, it is working the visualization of announcement for new student subscribed, about issue with editor , it needs be upgraded to last version or using vue for this tool. I think should be created other ticket for it.

christianbeeznest avatar Jul 02 '23 14:07 christianbeeznest

Announcement creation is now working since the correction of tinyMCE integration. So I created an announcement and did not assign any users to send it to. Then I subscribed a new student to the course and the student could see the announcement. So all good with this feature.

Closing the task

NicoDucou avatar Aug 31 '23 10:08 NicoDucou