making one of the user defined fields (for image description) be a drop down box making one of the user defined fields (for image description) be a drop down box
 

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

making one of the user defined fields (for image description) be a drop down box

Started by john00, May 28, 2004, 04:40:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

john00

Id like to be able to do this as I want users to be able to choose a specific name from a list of 10 or so, i dont want them to have to worry if theyre spelling it right.. or by putting the wrong thing.

much like how they select the album theyre uploading it to.. what code do i have to change to accomplish this.. ive tried just using a <select... etc but that doesnt work because the form is in an array.. what to do?

john00

i think it would mean creating a new thing in the mysql database.. but i dont know how to do that.. can ANYONE help.. ive asked at like 4 different boards.

Joachim Müller

would require a lot of code changes. I don't think anyone from the coppermine dev team will come up with a hack to accomplish this (and I won't either, as I don't see a point in this).

GauGau

john00

i honestly dont think it would be that hard.  it would just have to be in the same fashion as how you pick the album.  There is a point in this as it could be whatever you wanted.  for instance, if you wanted people to HAVE to choose something.. and wanted it to be spelled correctly so it was easy to search.  If people have to pick between say... icons or wallpapers.  You could make hte drop down box be those two choices.. and then when you search, you could search icons and only the ones with icons would show up.  The dropdown box makes it so people that cant spell cant screw up (ie ikons, icon, etc)

Joachim Müller

in that case, just replace the <input>-fields with <select><option> statements and you should be fine...

GauGau

john00

i would.. but its in an array?  ill look at it again.. but i couldnt get it to work last time i tried that..