Controlling the "Download" files button..

Greetings Community:   Is there a way to control the "Download" button that appears by default for uploaded files? For the project I'm working on, inviting download is not always desirable.  Sometimes photographers do not want their work downloaded, only reviewed and/or commented on...  It can potentially become a copyright issue for them and other media producers.  Of course someone can still take the image by other means, but this level of control would be a great feature enhancement.

If toggling the "Download" button On/Off is possible with 1.5, at what granular level can it be accomplished?  All users, specific users, single, or all groups, etc?   I know there is file access control built into Elgg, but controlling this level of access should be an option for certain types of projects; no matter what the access level is for the file.  Image theft is a huge problem on the web..

Looking forward to all feedback on this... Thanks in advance!

  • @Dhrup: aye, there are, and there are frequent requests on custom code marketplace type sites for such things, too.

  • ;-)

    I do have my own web-site crawler code..

    but I use it to do good things.

    e.g. my Elgg Docs Wiki Indexer.

  • I disabled my "Download This" button function completely, utilizing:

    /* THIS IS A COMMENT BECAUSE

    (code here)

    */

     

    under mod\file\pages\file\view.php

    starting on line 27 my file now looks like:

    /* THIS IS A COMMENT BECAUSE
    elgg_register_menu_item('title', array(
        'name' => 'download',
        'text' => elgg_echo('file:download'),
        'href' => "mod/file/download.php?file_guid=$file->guid",
        'link_class' => 'elgg-button elgg-button-action',
        
    )); */

     

    instead of:

    elgg_register_menu_item('title', array(
        'name' => 'download',
        'text' => elgg_echo('file:download'),
        'href' => "mod/file/download.php?file_guid=$file->guid",
        'link_class' => 'elgg-button elgg-button-action',
        
    ));

     

    so the users cannot even see the download function.  Should I decide to allow a file download i'll just create a download link to it.  This was my fix until a toggle is created.

     

    Hope this helps someone.