forum.coppermine-gallery.net

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Greg_downunder on November 02, 2003, 11:58:38 pm

Title: 'Batch add pictures' option for users...
Post by: Greg_downunder on November 02, 2003, 11:58:38 pm
Is this disabled for security concerns?  If not, how can it be enabled so that users can upload pics via ftp, and then 'batch add' them ?
Title: 'Batch add pictures' option for users...
Post by: Joachim Müller on November 03, 2003, 07:59:40 am
usually you don't give ftp access to users, so nobody thought about the option to batch-add for regular users.
If you want to let your users batch-add you'll have to "tweak" your coppermine install (haven't tested this, just from memory): edit theme.php and put the batch-add stuff
Code: [Select]
<a href="searchnew.php" title="">{SEARCHNEW_LNK}</a>into the user admin section.
Edit searchnew.php and remove the line
Code: [Select]
if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);(better still: replace it with some other authentification scheme).

Be warned: this is not supported, nor recommended! It's totally insecure to give people ftp access - be sure to restrict them to a folder of your choice within albums (not userpics!) and to let them upload only, not rename or delete.
Make them use xp_publish wizard instead!
Don't say we didn't warn you!


GauGau