Windows Share access (AKA Network Drive Access, SMB Web Client)

Blocks ::: block_smb_web_client
Maintained by Guy Thomas
Access windows shares via a Moodle web interface.
Latest release:
32 sites
16 downloads
4 fans
Current versions available: 1

Access windows shares via a Moodle web interface.

Configuring shares is done by adding them to a text area field (easier to edit, etc). This text area field is progressively enhanced in to a YUI3 table as per the following screen shot.

admin page for windows share access block

picture of windows share access block and share folders and files being displayed

Screenshots

Screenshot #0

Contributors

Guy Thomas (Lead maintainer): Main Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Guy Thomas
    Mon, 21 Nov 2016, 5:27 PM
    @Peter - thanks for the update - I'm glad it's usable for you again. I think the login screen is a system dialog so I'm not sure I can do anything about it.
  • Peter de Groot
    Fri, 8 Sept 2017, 3:51 PM
    Sadly ... a problem has seemed to come up with 3.3.1

    The fixed shares seem to come up fine... but when I try to access my Home directory (presumably dynamic) .. it comes up with this error

    Coding error detected, it must be fixed by a programmer: print_header() can not be used any more. Please use $PAGE methods instead.

    More information about this error
  • Colin Wheelhouse
    Tue, 19 Sept 2017, 10:24 PM
    Hi folks, I have uploaded the latest Master version from GitHub and it has now allowed access to the shares again, however the home directory is not accessible by students or staff even though as before the field is populated in AD. I should say that all was working fine before we upgraded to 3.3.1 on Ubuntu 16.04 at the beginning of the summer.

    When accessing the home directory this message appears.

    Sorry, you cannot view your homedirectory online

    Error Message: No home directory specified in ldap for this user

    Any ideas?

    Cheers

    Colin
  • Colin Wheelhouse
    Thu, 21 Sept 2017, 7:49 PM
    Update, with debugging turned on this error message appears,
    Notice: Undefined index: homeDirectory in /var/www/html/blocks/smb_web_client/class_smbwebclient_moodle.php on line 164

    Colin
  • Guy Thomas
    Wed, 27 Sept 2017, 4:22 PM
    Hi Colin / Peter. Thanks for reporting these recent bugs. I'm sorry I haven't been unable to replicate it or fix it as I haven't had the time to set up an LDAP server + shares. I'll do this as soon as I get some time.
  • Colin Wheelhouse
    Sun, 15 Oct 2017, 2:54 PM
    Hi Guy,
    Have you had any opportunity to take a look at this issue. I know you are extremely busy and appreciate that this is not your full time. job.

    I have staff and students really desperate to access their files from home.

    Hope you are well.

    Colin
  • Guy Thomas
    Sat, 18 Nov 2017, 10:26 PM
    I've fixed windows share web client with 3.3: You can download it from: https://github.com/gthomas2/moodle-block_smb_web_client

    Sadly, to make the plugin pass all Moodle's coding style checks I'd have to do some significant rewriting which is why you can only get it from github.
  • Colin Wheelhouse
    Wed, 29 Nov 2017, 6:29 AM
    Thanks Guy, much appreciated. Best regards, Colin
  • Peter de Groot
    Wed, 29 Nov 2017, 10:42 AM

    All good here too... many thanks
  • Lukasz Grochowicz
    Tue, 14 Aug 2018, 2:00 AM
    I just wonder if you can help. On Moodle 3.5 with PHP 7.1we are getting the following error: Coding error detected, it must be fixed by a programmer: print_header() can not be used any more. Please use $PAGE methods instead.
  • Guy Thomas
    Wed, 15 Aug 2018, 4:30 AM
    @Lukasz - I haven't had time to do a Moodle 35 version yet, sorry
  • Peter de Groot
    Wed, 24 July 2019, 12:13 PM
    Guy,

    Sorry to be a pain.. but I have just upgraded to Moodle version 3.7.1 on Ubuntu 18.04, and more importantly, PHP 7.2.
    When I try to use the block I get this error .................

    Warning: session_name(): Cannot change session name when session is active in /mnt/d2/moodle/blocks/smb_web_client/class_smbwebclient.php on line 267

    This appears to be a known problem with PHP 7.2 as other people are complaining as well..
    For instance https://bugs.php.net/bug.php?id=76358

    Would you have a moment to have a look... ?

    Yours in hope
    Peter
  • Peter de Groot
    Wed, 8 Apr 2020, 1:20 PM
    Think I have fixed it.. PHP 7.2
    It was related to changing the session name when it had been previously defined.

    After a look around, the session name has already been defined in the include file... so this is redundant ?? Cannot see anywhere to change it on the config page..

    So I just commented out this line of code in the routine and it seems to work fine..

  • Guy Thomas
    Mon, 20 Apr 2020, 6:43 PM
    @Peter - thanks for fixing it. Would you like me to make you a maintainer of this project?
  • Peter de Groot
    Tue, 21 Apr 2020, 10:14 AM
    @Guy ... cheers for the kudos.... sadly it was more a matter of good luck, rather than skill. My php skillset is way below what is required for this sort of work.

    But tx again for compliment...
1 2 3 4 5 6 7 8 9
Please login to post comments