forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: stwief on July 30, 2005, 07:44:47 pm

Title: additional picture information
Post by: stwief on July 30, 2005, 07:44:47 pm
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!
Title: Re: additional picture information
Post by: Joachim Müller on July 31, 2005, 09:53:42 am
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.
Title: Re: additional picture information
Post by: stwief on July 31, 2005, 07:02:58 pm
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!
Title: Re: additional picture information
Post by: Joachim Müller on July 31, 2005, 10:20:29 pm
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?
Title: Re: additional picture information
Post by: stwief on July 31, 2005, 11:12:54 pm
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...