Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Plugin to add personal data to picture  (Read 4083 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: 15764
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: 15764
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.019 seconds with 20 queries.