Select an album automatic for every Upload

daru

New Member
Reservo User
Reservo Supporter
May 21, 2018
8
1
3
31
#1
Hi,
I want to set a permissions, when a user upload a new picture –should be selected automatic a specific album (for Example "My Uploads" - which was created for every User (i have set some alums in the "Admin Area - Site Configuration - File Manager")). where can i edit the Source code- (which File) to select automatic an album, without the user have to change it manuell?
Thank you in advance & greetings from germany
 

daru

New Member
Reservo User
Reservo Supporter
May 21, 2018
8
1
3
31
#2
I found a solution. I have added an If-query in "_uploader.inc.php" to catch a Folder-ID by "Album-Name". Than i have added a selected option with the catched value to the <select> Element.

PHP:
if (COUNT($folderArr)) {
    foreach ($folderArr AS $id => $folderLabel) {
    if ($folderLabel == 'Pictures') 
        {$fselect2 = $id;}
PHP:
     <option selected value="<?php echo($fselect2);?>"><?php echo t("index_default", "- default -"); ?></option>