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

Comments

  • I found answers to (c). I want to modify the question to, how to direct the website to store the uploaded images else where, say google drive or Flickr or anywhere else?
    the picture size the kids are uploading is 7mb max but it is still so much ha ha ha !
  • a) There's no easy way to achieve this currently I believe. Have a look at modules/Planner/planner_view_full.php. Maybe you can achieve this with some few "commenting out".

    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.
    flygye12
  • Thank you @meierrom Lots to research here. I'll get back to you ! :)
    meierrom said:

    a) There's no easy way to achieve this currently I believe. Have a look at modules/Planner/planner_view_full.php. Maybe you can achieve this with some few "commenting out".

    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.

  • @meierrom which, do I change the "true" written after 25 to "false"? I couldn't find any "media flag":






    <?php echo __('Homework Details') ?> *
    <?php
    $initiallyHidden = true;
    if ($rowMyHomework['homework'] == 'Y') {
    $initiallyHidden = false;
    }
    echo getEditor($guid, true, 'homeworkDetails', $rowMyHomework['homeworkDetails'], 25, true, true, $initiallyHidden)
    ?>



  • It's the one next to '25'. Let me know if this doesn't work. :)
  • @meierrom nope, it did not work. I edited the above at modules/Planner/planner_view_full.php :'(

    What next?
  • Ooops, wrong file: modules/Planner/planner_view_full_post.php ;)
  • @meierrom I have reached the correct place it seems, but I'm not getting the correct change required.


  • Yep, this code has been refactored.

    Try this:
    //$column->addEditor('comment', $guid)->setRows(20)->showMedia();
    $column->addEditor('comment', $guid)->setRows(20);

    :)
  • Thank You So Much !!!!!!! That did the trick !!! This is brilliant o:)

    (I really do want to understand what the code reads in normal English)
    meierrom

  • (a) @meierrom I know I'm asking too much of you, but would you be so kind as to help in this :#.
    meierrom said:



    Store images elsewhere? Should be possible through hacking. Check code in src/Gibbon/FileUploader.php.

    (b) I found that ALL the files from ALL the uploads everywhere are stored in the same folder month wise. Shouldn't the files from say teachers/resources be stored somewhere else?

    If the HW submission files are uploaded in a separate folder, I could easily delete that folder after a few months/weeks as required.

  • Currently all files are stored by month, regardless of their type. Their filenames are also obfuscated with random characters, with the idea being that you want to prevent anyone from guessing and downloading a file based on it's url. For example, if all files were stored by purpose, it could be a security issue if someone found and downloaded a whole folder called "passports" or "homework". We have discussed plans to implement some better ways to track and cleanup files though, as currently the file references aren't stored in a database and it can be easy for orphaned files to fill up the filesystem.
    adminflygye12
  • @flygye12
    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.
Sign In or Register to comment.