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.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Aasif Javed@aasifjaved
Aasif Javed - 0 likes
You must log in to post replies.Is this posible to give download link only selected users?
Through this all the users can not see the download link?