coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: Hammerhe@rt on August 05, 2004, 10:00:37 AM

Title: preselect album for upload?
Post by: Hammerhe@rt on August 05, 2004, 10:00:37 AM
i got many album's on my gallery so if i upload 10 Pics i have to choose the album after each pic in the drop down list.....
why doesnt take the last choosen album (of the first pic) or why doenst take the drop down list the album value if i sellect upload if im in a specified album....also the value album=x in the url doenst go....

where is the error

the code in upload.ph seems here
/ Check to see if an album has been preselected by URL addition. If so, make $sel_album the album number. Otherwise, make $sel_album 0.
    $sel_album = isset($HTTP_GET_VARS['album']) ? $HTTP_GET_VARS['album'] : 0;
Title: Re: preselect album for upload?
Post by: Hammerhe@rt on August 06, 2004, 08:26:40 AM
is there a problem or is it my fault?

can nobody help me?

do you understand the problem that i have?

mfG
Hammerhe@rt
Title: Re: preselect album for upload?
Post by: Joachim Müller on August 07, 2004, 09:04:38 AM
there's no album preselection in coppermine, you'll have to code this if you need this feature - wishfull thinking alone won't help.

GauGau
Title: Re: preselect album for upload?
Post by: Hammerhe@rt on August 07, 2004, 09:23:40 AM
and whats about the code in the upload.php ???

/ Check to see if an album has been preselected by URL addition. If so, make $sel_album the album number. Otherwise, make $sel_album 0.
$sel_album = isset($HTTP_GET_VARS['album']) ? $HTTP_GET_VARS['album'] : 0;

its also in the option build form the album selection in the upload.php but doesnt fit
Title: Re: preselect album for upload?
Post by: Joachim Müller on August 07, 2004, 09:27:17 AM
applies to adding files by URL.

GauGau
Title: Re: preselect album for upload?
Post by: Hammerhe@rt on August 07, 2004, 09:29:31 AM
or in other words....if i upload 10 pics then i got the album selection box (album1 selected) -> select my album 5 and then go to pic 2
but the album selection box is again at album 1 not at album 5 !!!!

and i tried to ad the album in the url....?album=5

but after the upload and selection the album there is no value in the url and the album list is again at album 1
Title: Re: preselect album for upload?
Post by: Joachim Müller on August 07, 2004, 09:51:39 AM
OK, I repeat: the functionality you're looking for is not built-into coppermine. If you need it, you will have to code it. If you can't code it, you will have to live with the way it currently is.

GauGau
Title: Re: preselect album for upload?
Post by: Hammerhe@rt on August 07, 2004, 10:49:32 AM
k i will do this and i i got it i will post it here