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

Title: [Solved]: default category/album?
Post 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
Title: Re: default category/album?
Post by: Nibbler on July 09, 2008, 05:23:19 pm
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.
Title: Re: default category/album?
Post by: cyrus6 on July 09, 2008, 07:35:15 pm
I was planning on using only single uploads. I was also thinking about 'emptying' the album each month and starting again.
Title: Re: default category/album?
Post by: Nibbler on July 10, 2008, 10:10:59 am
Edit upload.php

find

Code: [Select]
array($lang_upload_php['album'], 'album', 2),
Change to

Code: [Select]
array('album', 1, 4),
Where 1 is the album number you want uploads to go into.
Title: Re: default category/album?
Post by: cyrus6 on July 10, 2008, 03:37:58 pm
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
Title: Re: default category/album?
Post by: Nibbler on July 10, 2008, 04:04:17 pm
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?
Title: Re: default category/album?
Post by: cyrus6 on July 10, 2008, 04:49:52 pm
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?
Title: Re: default category/album?
Post by: Nibbler on July 10, 2008, 04:59:42 pm
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).
Title: Re: default category/album?
Post by: cyrus6 on July 10, 2008, 05:52:57 pm
GOT IT! THANKS A TON!

cyrus
Title: Re: [Solved]: default category/album?
Post by: mahdi1234 on July 15, 2008, 11:46:11 pm
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
Title: Re: [Solved]: default category/album?
Post by: Nibbler on July 16, 2008, 10:00:45 am
Code: [Select]
$sel_album = isset($_GET['album']) ? $_GET['album'] : 0;
Change to 0 to the id of the album you want to be default.
Title: Re: [Solved]: default category/album?
Post by: mahdi1234 on July 16, 2008, 06:46:27 pm
Great, thanks!