Disable chat function
Hi All !
I have queries regarding the Homework in the Lesson Planner:
To avoid using up the storage space, I had made the Homework submission to be through Link. The students found a way around, they are clicking pics of the Homework and posting them in the chat. I have already used up 1GB of space in 3 days
Questions:
a) Can I turn off the chat?
b) Can I at least remove the picture adding function in the chat and make it plain text only chat.
c) Where are all these picture files stored?
d) Is there a way to limit the picture size?
e) Is there a way that the chat can be seen only by the teacher. Sometimes they are typing out the answers in the chat and the next guy just has to copy the work on top. (We are in this COVID scenario, so everything is being done online).
Thanks in advance !
Cheers
I have queries regarding the Homework in the Lesson Planner:
To avoid using up the storage space, I had made the Homework submission to be through Link. The students found a way around, they are clicking pics of the Homework and posting them in the chat. I have already used up 1GB of space in 3 days

Questions:
a) Can I turn off the chat?
b) Can I at least remove the picture adding function in the chat and make it plain text only chat.
c) Where are all these picture files stored?
d) Is there a way to limit the picture size?
e) Is there a way that the chat can be seen only by the teacher. Sometimes they are typing out the answers in the chat and the next guy just has to copy the work on top. (We are in this COVID scenario, so everything is being done online).
Thanks in advance !
Cheers
Comments
the picture size the kids are uploading is 7mb max but it is still so much ha ha ha !
b) Yep, you can achieve this by disabling the upload function. Search for the following code: getEditor( [...] , 25, true, true, false). Change the media flag to false.
c) Files are stored in uploads folder
d) Yep, through your php settings. Set same value, e.g. 2M for "upload_max_filesize" and "post_max_size".
e) Similar issue like a). No easy way here.
Store images elsewhere? Should be possible through hacking. Check code in src/Gibbon/FileUploader.php.
<?php echo __('Homework Details') ?> *
<?php
$initiallyHidden = true;
if ($rowMyHomework['homework'] == 'Y') {
$initiallyHidden = false;
}
echo getEditor($guid, true, 'homeworkDetails', $rowMyHomework['homeworkDetails'], 25, true, true, $initiallyHidden)
?>
What next?
Try this:
//$column->addEditor('comment', $guid)->setRows(20)->showMedia();
$column->addEditor('comment', $guid)->setRows(20);
(I really do want to understand what the code reads in normal English)
(a) @meierrom I know I'm asking too much of you, but would you be so kind as to help in this
If the HW submission files are uploaded in a separate folder, I could easily delete that folder after a few months/weeks as required.
a) I haven't done this before. Therefore I wouldn't want to come in. Sorry.
b) I do agree with you to some extent. We currently do this for resources. In your scenario you could however use a different approach, e.g. writing a short script, which parses lesson contents for tags having a local source, redirecting the src to a dummy pic and then deleting the file from the system.