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: "Sort my pictures" Select Album list  (Read 4083 times)

0 Members and 1 Guest are viewing this topic.

calibertolls

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 10
    • Caliber Tollers
"Sort my pictures" Select Album list
« on: December 21, 2005, 04:10:48 am »

Hi there, I am having a beast of a time trying to get my pictures sorted properly.  I have them all set on custom sort order in config.  Is there a way I can change the size of the list box in the sort my pictures screen?  I am running at 1024x768 and it doesn't fit on my screen.  Currently I have to scroll the browser window to go from the top of the select box down to the arrow buttons.  This is a real PITA when I am trying to move a lot of pictures around.  I have to continuously scroll the browser window up to see where in the order my file is, and then scroll back down to click the button a few times. 

Edit:  On second thought, it would be WAY cooler if I could "drag and drop" my files into position instead of having to use the buttons at all. You can put that on my wish list.  :)

Thanks,
Latisha
« Last Edit: February 11, 2006, 11:07:06 am by GauGau »
Logged
There is a very fine line between "hobby" and "mental illness". -- Dave Barry

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: "Sort my pictures" Select Album list
« Reply #1 on: December 21, 2005, 08:29:48 am »

DHTML controls have been considered, but dropped for compability reasons. Therefore, there currently is no workaround.
Logged

calibertolls

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 10
    • Caliber Tollers
Re: "Sort my pictures" Select Album list
« Reply #2 on: December 21, 2005, 05:34:10 pm »


Ok, I understand that.  But, what about the original request?  How can I change the size of the list box so it fits on my screen? 

Latisha
Logged
There is a very fine line between "hobby" and "mental illness". -- Dave Barry

Nibbler

  • Guest
Re: "Sort my pictures" Select Album list
« Reply #3 on: December 21, 2005, 05:50:09 pm »

The size of the box is being determined here in picmgr.php

Code: [Select]
<select id="to" name="to[]" size="<?php echo min(max(count ($rowset)+3,15), 40?>" multiple onChange="Picture_Select(this.selectedIndex);" class="listbox" style="width: 300px">

Set the size to whatever you prefer.
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: "Sort my pictures" Select Album list
« Reply #4 on: December 21, 2005, 08:44:59 pm »

Latisha,

Is there any reason why you can't simply add a numeric prefix to all of your filenames to get them to sort the way you want?

ie... 0010_potatobuds.jpg
      0020_tomatoseeds.jpg
      0030_alfalfasprouts.jpg


Start with tens, so that you can insert up to 9 more files between each number in the future. Although, something like  0010a_, 0010b_, would work just as well.

Dennis

Logged
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

photographicon

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 4
    • Photographicon
Re: "Sort my pictures" Select Album list
« Reply #5 on: January 03, 2006, 08:42:58 pm »

As a follow on to the original question, has anyone written a mod that allows a custom sort order to be uploaded in the form of a text file (eg to take the order from a list of image filenames, one per line)? 

If not, then I'll probably roll one myself.  From a quick read through the code (picmgr.php & delete.php), I assume that the order in which images are displayed is controlled by the 'position' field of the '$CONFIG[TABLE_PICTURES]' table, showing lowest value first...
Logged
LITL.W/L
Dominic.

calibertolls

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 10
    • Caliber Tollers
Re: "Sort my pictures" Select Album list
« Reply #6 on: January 25, 2006, 04:06:44 am »

Sorry, have been busy lately and not much to time to play with the gallery.

Thanks Nibbler, I will try that.

Dennis, I am moving a couple hundred photo files off a paid hosting account into my Coppermine install.  I don't really want to rename every file.  :) 

Latisha


Logged
There is a very fine line between "hobby" and "mental illness". -- Dave Barry

calibertolls

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 10
    • Caliber Tollers
Re: "Sort my pictures" Select Album list
« Reply #7 on: February 11, 2006, 04:51:40 am »

The size of the box is being determined here in picmgr.php

Code: [Select]
<select id="to" name="to[]" size="<?php echo min(max(count ($rowset)+3,15), 40?>" multiple onChange="Picture_Select(this.selectedIndex);" class="listbox" style="width: 300px">

Set the size to whatever you prefer.

Just wanted to follow-up on this.  My problem was in the number of records returned in the list box.  40 was too many to fit on my screen and caused me to scroll constantly.  I shortened it to 20
Code: [Select]
size="<?php echo min(max(count ($rowset)+3,15), 20?> and it worked like a charm.

Thanks Nibbler.
Latisha
Logged
There is a very fine line between "hobby" and "mental illness". -- Dave Barry
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.