Restrict Remote upload to registered usets

theprogeekftw4717

New Member
Feb 3, 2015
88
0
0
Hey,

I'd like to make the Remote upload feature available only for logged in users only.
What I mean is I want a little alert to show when someone click on the url/remote upload tab on the uploader saying "Please login to use remote upload".

Thanks in advance
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
Something like this?



If so, modify the code as shown below

Open /themes/flow/templates/partial/_uploader.inc.php

Find on line 212:
Code:
<!-- url uploader -->
Add Before:
Code:
<?php if($Auth->loggedIn()): ?>
Find:
Code:
<!-- end url uploader -->
Add After
Code:
<?php else: ?>
<?php echo t("please_login_to_upload", "Please login to upload"); ?>
<?php endif; ?>
Save and upload
 

Attachments