Advanced search  

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]

Pages: [1]   Go Down

Author Topic: is it possible to set default album while uploading  (Read 3566 times)

0 Members and 1 Guest are viewing this topic.

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
is it possible to set default album while uploading
« on: May 20, 2006, 10:21:43 am »

hey guys :D
umm is it possible to set a default album while uploading
for example when a user wants to upload a pic, he/she doesnt have to select an album, i want it to be like, upload pic, and it will auto go into the album i want it to be, so i dont want the user to choose what album he/she wants to upload to.

so if you guys can help me ill be happy :)
« Last Edit: May 22, 2006, 06:52:26 am by GauGau »
Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg157.imageshack.us%2Fimg157%2F838%2Frangarang4xn.jpg&hash=48b4c3087515cafe09fc6d3f7ee19dce86328d8e)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: is it possible to set default album while uploading
« Reply #1 on: May 20, 2006, 10:25:25 am »

has been asked and answered before, please use the search.
Logged

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
Re: is it possible to set default album while uploading
« Reply #2 on: May 20, 2006, 01:49:21 pm »

i can't find it, can u please give me the link if u found it  ;D
Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg157.imageshack.us%2Fimg157%2F838%2Frangarang4xn.jpg&hash=48b4c3087515cafe09fc6d3f7ee19dce86328d8e)

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
Re: is it possible to set default album while uploading
« Reply #3 on: May 21, 2006, 04:40:20 pm »

i got it, this is how it works but only if you have 1 album

open upload.php
find
Quote
$listArray[$list_count]['cat'] = $vRes['name'];
        } else {
            $listArray[$list_count]['cat'] = $lang_upload_php['albums_no_category'];
then delete it

then find
Quote
<option value="' . $val['aid'] . '"' . ($val['aid']
and change it to
Quote
<option value="' . $val['aid'] . '"' . ($val['title']
save it and done
Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg157.imageshack.us%2Fimg157%2F838%2Frangarang4xn.jpg&hash=48b4c3087515cafe09fc6d3f7ee19dce86328d8e)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: is it possible to set default album while uploading
« Reply #4 on: May 21, 2006, 08:30:45 pm »

I told you before that you're suppossed to post a link to the thread that explained what you're after instead of repeating the code that was mentioned in the posting that helped you. Please respect this policy, as it keeps the board usable for others as well.
Logged

Vargha

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang
Re: is it possible to set default album while uploading
« Reply #5 on: May 22, 2006, 12:09:25 am »

umm but i didnt get it from anywhere, i came up with it my self hehe
i found bout the codes my self, sorry i just wanted to share, i could not find bout it on the board
Logged
Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fimg157.imageshack.us%2Fimg157%2F838%2Frangarang4xn.jpg&hash=48b4c3087515cafe09fc6d3f7ee19dce86328d8e)
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.