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: Plugin to add personal data to picture  (Read 3632 times)

0 Members and 1 Guest are viewing this topic.

jimmyg0801

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Plugin to add personal data to picture
« on: April 24, 2012, 11:36:12 pm »

My pictures are of people (i.e. models). The people (models) in the pictures have important information (i.e. name, address, telephone, email .. etc). Note that models are not users. They are subjects in the picture with information. I would like to create a plugin that adds a "Model_ID" to the pictures table which is a key to "Model_Info" table. Is this a resonable thing to do with a plugin? I use the Coppermine database (read-only) in my custom website and the Coppermine theme for populating/editing the database.

Sorry if this is the wrong place to post this.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Plugin to add personal data to picture
« Reply #1 on: April 24, 2012, 11:39:24 pm »

What's your actual question? You can add the model ID to any default or custom field and then use that value to load the model's information.
Logged

jimmyg0801

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Plugin to add personal data to picture
« Reply #2 on: April 24, 2012, 11:53:33 pm »

I see "owner_id" which would be me (the photogapher) and "user1-4" which I'm not sure what they're used for. To me, adding an addition field "model_id" as an index to a model table is very clean. I can do this manually I assume and not interfere with the Coppermine application at all. I just thought a plugin to create the extra field and the additional database table would be cleaner in the long run.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15765
Re: Plugin to add personal data to picture
« Reply #3 on: April 25, 2012, 06:26:18 am »

Default fields are:
- title
- description
- keywords

Custom user fields are
- user1
- user2
- user3
- user4

Not sure why you want to add even one more column to the database, as the user fields do exactly what you're asking for. You can enable them in the config.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.