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: additional picture information  (Read 3114 times)

0 Members and 1 Guest are viewing this topic.

stwief

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
additional picture information
« 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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: additional picture information
« Reply #1 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.
« Last Edit: July 31, 2005, 10:17:19 pm by GauGau »
Logged

stwief

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: additional picture information
« Reply #2 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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: additional picture information
« Reply #3 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?
Logged

stwief

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: additional picture information
« Reply #4 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...
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.