[Solved]: default category/album? [Solved]: default category/album?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: default category/album?

Started by cyrus6, July 09, 2008, 05:13:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cyrus6

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

Nibbler

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.

cyrus6

I was planning on using only single uploads. I was also thinking about 'emptying' the album each month and starting again.

Nibbler

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.

cyrus6

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

Nibbler

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?

cyrus6

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?

Nibbler

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).

cyrus6


mahdi1234

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

Nibbler

$sel_album = isset($_GET['album']) ? $_GET['album'] : 0;

Change to 0 to the id of the album you want to be default.

mahdi1234