Files order by Album Files order by 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

Files order by Album

Started by _clark_, November 30, 2006, 04:21:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

_clark_

Hi,

when I upload an image I have to select the album where I want to put it.

The albums are included in the respective categories... Is possibile to see only the Album order by name and not the categories?

It would be simpler to insert the photos...

Thank you very much...

Hein Traag

#1
As far as my coding skills go i think it is this section in searchnew.php which needs editing.

// Create the nicely sorted and formatted drop down list
        $alb_cat = '';
        foreach ($listArray as $val) {
            if ($val['cat'] != $alb_cat) {
          if ($alb_cat) $select .= "</optgroup>\n";
                $select .= '<optgroup label="' . $val['cat'] . '">' . "\n";
                $alb_cat = $val['cat'];
            }
            $select .= '<option value="' . $val['aid'] . '"' . ($val['aid'] == $sel_album ? ' selected' : '') . '>   ' . $val['title'] . "</option>\n";
        }
        if ($alb_cat) $select .= "</optgroup>\n";
    }

    return "\n<select name=\"$id\" class=\"listbox\">\n$select</select>\n";
}


Don't have time to try something at this moment. Will try later on.
In the meantime, should you want to try anything yourself.. make a backup of the file first.

Hein

_clark_

Ok... I'll try... the problem is that i'm italian so the search is not so easy... I hope to find it.

thank you...

If you know some discussion that can help me please write here the link...


_clark_

Sorry, I didn't find what i'm looking for...

Anyway, where can i find info that could help me?

Thank you very much...

_clark_


Joachim Müller