additional picture information additional picture information
 

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

additional picture information

Started by stwief, July 30, 2005, 07:44:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

stwief

I've got a question once again:

I want to store some additional information for each photograph, namely which persons are visible on each picture. This information is stored in  the field "user1" in the table "cpg133_pictures".

Now what I want to do:
right below the coments (in displayimage.php), the names of the people that are visible should be shown. They should appear in a textbox, because all users should be able to adjust the information..
I know how to place a textfield there, I only don't know how to show the right information in it..

does anybody of you guys know how I can do this?
many thanks!

Joachim Müller

#1
changing the way this bit of information is sent to the ouput is easy, but you'd also need some mechanism to actually let the users save the changes they make to the database, which requires additional code. Not that easy to implement, and not recommended.

stwief

in this phase, it's einough for me to just send the information to the output. Maybe in a later phase I can implement the option for users to make changes..

could you already explain me how to show the needed information?
thanks!

Joachim Müller

Not sure what you mean. The info is already in the output if you have defined the custom field in the config and you have filled in the data for the individual pic. You can toggle the pic info section on and off using the "i" button in the navigation, and you can toggle the default mode (display it by default or not) in the config page. What else do you need?

stwief

What I would like to do is to display the additional information of who is on the picture outside of the "file information-box", because this information is quite important in this gallery. Also, in this case the information is allways visible for all users...