Announcement

#1 2012-07-25 13:00:12

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
148

[resolved] What is Personal Plugin?

In Admins/Plugins I see a tab named "Personal Plugin".  What is this & how is it used?

-- Geoff

Offline

 

#2 2012-07-25 13:04:30

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13573

Re: [resolved] What is Personal Plugin?

This is a very advanced feature that let you write your own plugin "live". Use it with heavy caution and be ready to deactivate it in the database in case there is any error in your plugin.

Offline

 

#3 2012-07-25 14:43:15

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
148

Re: [resolved] What is Personal Plugin?

Are there any examples of how this is used?  I have several things that I want to do

1) Insert my own button/link into the upper right-hand menu bar
2) Insert metadata into the <head> section of photo pages

Is this a reasonable way to accomplish this are there better methods?

-- Geoff

Offline

 

#4 2012-07-25 14:45:17

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13573

Re: [resolved] What is Personal Plugin?

Offline

 

#5 2012-07-25 16:06:52

flop25
Piwigo Team
2006-07-06
7037

Re: [resolved] What is Personal Plugin?

geoffschultz wrote:

Are there any examples of how this is used?  I have several things that I want to do

see already existingplugins and tips we have given on that forum

geoffschultz wrote:

1) Insert my own button/link into the upper right-hand menu bar

I recommend to use a prefilter, you know I've told about that ^^

geoffschultz wrote:

2) Insert metadata into the <head> section of photo pages

there is already a plugin for head elements


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#6 2012-07-25 20:04:24

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
148

Re: [resolved] What is Personal Plugin?

flop25 wrote:

geoffschultz wrote:

1) Insert my own button/link into the upper right-hand menu bar

I recommend to use a prefilter, you know I've told about that ^^

I plan to do that, but think that I'll just modify the code in the files beforehand and then use a prefilter to implement them.  I don't want to try/change too many things at once.

As far as inserting my own button/link, I've figured out how to do this for pictures, but not for categories/thumbnails.  I asked this in http://piwigo.org/forum/viewtopic.php?id=20031 but no response.

flop25 wrote:

geoffschultz wrote:

2) Insert metadata into the <head> section of photo pages

there is already a plugin for head elements

This plugin only output static information.  I haven't found any way to make it output variables.

-- Geoff

Offline

 

#7 2012-07-25 21:44:57

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7056

Re: [resolved] What is Personal Plugin?

geoffschultz wrote:

flop25 wrote:

geoffschultz wrote:

2) Insert metadata into the <head> section of photo pages

there is already a plugin for head elements

This plugin only output static information.  I haven't found any way to make it output variables.

If you can says me where is infos I can says you how add !

have you add config IPTC in local config ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#8 2012-07-25 21:49:51

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
148

Re: [resolved] What is Personal Plugin?

ddtddt wrote:

If you can says me where is infos I can says you how add !

have you add config IPTC in local config ?

How do I do that?  And where was I supposed to have found out that I needed to do this?  Note that I'm using Advanced Metadata.

[edit:] I found the info, but I'm still not sure how I was supposed to have known to do this.

Last edited by geoffschultz (2012-07-25 22:10:40)

Offline

 

#9 2012-07-25 22:36:59

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7056

Re: [resolved] What is Personal Plugin?

geoffschultz wrote:

[edit:] I found the info, but I'm still not sure how I was supposed to have known to do this.

and where is info ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#10 2012-07-26 00:07:46

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
148

Re: [resolved] What is Personal Plugin?

ddtddt wrote:

and where is info ?

I searched the forum for "IPTC local config" and found many references to it.  However, I had no idea that I needed to configure this.

Note that I've been painting a bathroom for most of today, so I haven't had a chance to actually try any of what I saw.  That will have to wait until I get up early in the morning and have a few hours of uninterrupted work!

-- Geoff

Last edited by geoffschultz (2012-07-26 12:12:56)

Offline

 

#11 2012-07-26 14:10:03

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
148

Re: [resolved] What is Personal Plugin?

I'm doing the following on a test database until I make sure that I'm doing the correct things:

I added the following to my local config file:

Code:

$conf['use_iptc'] = true;
$conf['use_iptc_mapping'] = array(
  'name'            => '2#005',
  'keywords'        => '2#025',
  'author'          => '2#080',
  'comment'         => '2#120',
  'country_code'    => '2#100',
  'province_state'  => '2#095',
  'country_name'    => '2#101',
  'city'            => '2#090',
  'sublocation'     => '2#092'
  );

and created the corresponding table rows in _images.  I then resynchronized and _images was populated with the correct values.  Based upon that I can see how to generate the <meta> tags that I need.

What confuses me is that Advanced Metadata appears to analyze the images in realtime and somehow provides that information.  Thus it seems that there's no reason to store it in the database.  Is this correct and if so, how do I access the data?

-- Geoff

Offline

 

#12 2012-07-27 08:15:25

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7056

Re: [resolved] What is Personal Plugin?

geoffschultz wrote:

I'm doing the following on a test database until I make sure that I'm doing the correct things:

I added the following to my local config file:

Code:

$conf['use_iptc'] = true;
$conf['use_iptc_mapping'] = array(
  'name'            => '2#005',
  'keywords'        => '2#025',
  'author'          => '2#080',
  'comment'         => '2#120',
  'country_code'    => '2#100',
  'province_state'  => '2#095',
  'country_name'    => '2#101',
  'city'            => '2#090',
  'sublocation'     => '2#092'
  );

and created the corresponding table rows in _images.  I then resynchronized and _images was populated with the correct values.  Based upon that I can see how to generate the <meta> tags that I need.

What confuses me is that Advanced Metadata appears to analyze the images in realtime and somehow provides that information.  Thus it seems that there's no reason to store it in the database.  Is this correct and if so, how do I access the data?

-- Geoff

Can you give me 1 photo by e-mail with this metadata


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#13 2012-07-27 12:42:38

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
148

Re: [resolved] What is Personal Plugin?

Within Personal Plugin, how do I obtain the filename?

-- Geoff

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact