forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: cyrus6 on July 09, 2008, 05:13:30 pm
-
Okay so here's the deal -
I was wondering if it was possible to have a default/central album or category. What I want is to expedite the upload process for the user. So when a user uploads a photo to my gallery they don't have to 'select an album'. I basically want all photos to go to the same place. I've set up a single category and album and disabled 'personal galleries' but I'd rather have this part just be invisible to the user when they are uploading pics.
If this needs more clarification let me know.
Thanks in advance,
cyrus
-
Are you using single or multiple file upload?
You may hit performance issues if you have more than a few thousand pics in the same album.
-
I was planning on using only single uploads. I was also thinking about 'emptying' the album each month and starting again.
-
Edit upload.php
find
array($lang_upload_php['album'], 'album', 2),
Change to
array('album', 1, 4),
Where 1 is the album number you want uploads to go into.
-
Hey,
Thanks for your help. This should do the trick. I guess there is no way around having to select an album though? Maybe I did something wrong - I replaced the code and changed the album number - which creates a more direct upload interface but the user still has to select an album which is what I was trying to avoid if possible.
Either way thanks for your help and quick response,
cyrus
-
That change is supposed to hide the album selection box. It works on my gallery. Can you post a link to yours plus an account if required?
-
http://www.blueridgeoutdoors.com/YourPIC/coppermine/index.php
u: testerNibbs
p: test123
Just a thought - should I do away with the category and album I have set up now?
-
No. Just make sure you made the change and uploaded the changed file properly. That code appears twice in the file, so make sure you change the first (or both).
-
GOT IT! THANKS A TON!
cyrus
-
Would there be also way how to pre-select default album? I'm in the situation that 90% of photos are going to the same Album, but occasionally, let's say for thematic competition I'd like user to have a choice to use different album. Is there a way hot to pre-select some specific album to be default one in the dropdown?
thx,
mahdi
-
$sel_album = isset($_GET['album']) ? $_GET['album'] : 0;
Change to 0 to the id of the album you want to be default.
-
Great, thanks!