Announcement

#1 2012-07-23 18:07:38

Jeroen
Guest

How does the "add 3 new info fields" plugin work

I have problems getting this plugin to work... Im guessing it does what I want it to do (if it would do what it should do)... which is, I want to add 1 more "field" to my picture information on the right side of my picture pages...

you know you have, "created on", "posted on", "author".. etc.. well I want a new one for my pictures...

I installed this addon and well this is the only information I get:

-----------------------------------------------------------------
Lets add 3 information in the pictures

These 3 are noted INFO1 information, INFO2, INFO3

To replace INFO1, INFO2, INFO3
To do this in your local language (with the help of LocalFiles Editor you must add:
$ Lang ['addinfo_info1'] = 'name do you want for infos1';
$ Lang ['addinfo_info2'] = 'name do you want for infos2';
$ Lang ['addinfo_info3'] = 'name do you want for infos3'
-----------------------------------------------------------------

Now I noticed 3 new text fields to add info about a picture on the picture details page... however what I type there doesn't get displayed on the picture page... then I figured I needed to add the line to my picture.tpl file and so I added:

$Lang ['addinfo_info1'] = 'my new field';

This just added that line literally to my right side column instead of "looking up the value I entered on the pic detail page)

I then tried:

$Lang {'addinfo_info1'} = 'my new field';

But that didn't work either.... anyone who uses this plugin knows how to actually use it ? (they should show an example or something on the plugin page.. seems Im just left to try and "figure it out" :( )

 

#2 2012-07-23 19:30:06

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

Re: How does the "add 3 new info fields" plugin work

Hi :-)

1/
Go to Administration -> Configuration -> Options -> tab 'Display'
on bloc 'Photo properties'
Posted on Must be checked

http://piwigo.org/forum/showimage.php?pid=133173&filename=AI1.jpg

2/
Go to Administration -> Plugins -> Manage
active [extension by Piwigo Team] LocalFiles Editor

3/
Go to Administration -> Plugin -> LocalFiles Editor -> Tab local langue
Paste
<?php
$ Lang ['addinfo_info1'] = 'name do you want for infos1';
$ Lang ['addinfo_info2'] = 'name do you want for infos2';
$ Lang ['addinfo_info3'] = 'name do you want for infos3';
?>

4/
Go on page photo
edit
You ca add your 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

 

#3 2012-07-24 10:20:34

Konve
Guest

Re: How does the "add 3 new info fields" plugin work

Can you do that was not dependent on the field "Posted on", but the dependence on the field "Created on"?

 

#4 2012-07-24 11:10:22

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

Re: How does the "add 3 new info fields" plugin work

Konve wrote:

Can you do that was not dependent on the field "Posted on", but the dependence on the field "Created on"?

on file initpicture.php

Remplace line 14 and 35 datepost by datecreate

(in Administration  -> Tools -> Maintenance -> Purge compiled templates)


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

 

#5 2012-07-24 12:10:19

Konve
Translation Team
2012-07-24
58

Re: How does the "add 3 new info fields" plugin work

Excellent!

Thank you!!

Offline

 

#6 2012-07-24 13:06:29

Konve
Translation Team
2012-07-24
58

Re: How does the "add 3 new info fields" plugin work

My situation (simple in russian :) )

http://i037.radikal.ru/1207/8d/9a4ae6345f60.jpg

1) Fields with names INFO and info's data are strayed and shifted to the left

2) names are not a bold

Q: it's my problem only?

Or my theme (Kardon)?

Offline

 

#7 2012-07-24 13:21:25

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

Re: How does the "add 3 new info fields" plugin work

I thinks it's theme;

Can tou give me link (private if you want


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-24 13:29:19

Konve
Translation Team
2012-07-24
58

Re: How does the "add 3 new info fields" plugin work

Offline

 

#9 2012-07-24 13:39:39

Konve
Translation Team
2012-07-24
58

Re: How does the "add 3 new info fields" plugin work

OR
Maybe you personally would be more pleasing to behold this link
:)

http://www.filpersona.ru/picture.php?/359/category/18

French Hero
General Pouyade Pierre

Offline

 

#10 2012-07-24 14:47:08

Jeroen
Guest

Re: How does the "add 3 new info fields" plugin work

Hey

Well my problem is still not fixed :( Im just not getting it to work , what am I doing wrong ?

This is what I did:

1. Download "locafiles editor" from here:
http://piwigo.org/ext/extension_view.php?eid=144

2. Uploaded the content of the zip to my "'plugin" folder on my server
Note: I noticed this version is for 2.3 and not 2.4... I don't see any newer so I guess it works on 2.4...

3. Went to my languages tab, chose my language that I use and added the 3 lines to the (empty) file and saved. I did have to remove the space between the $ and Lang for it to work, otherwise it gave me "syntax error".

4. Enabled the "posted on" field for my pictures

5. Added the info I wanted on the detail information page of the picture into INFO1.

6. Went to the picture in question, it still had an actual date on the "posted on" field... not what I entered...

 

#11 2012-07-24 16:00:48

Jeroen
Guest

Re: How does the "add 3 new info fields" plugin work

If Igive you temp admin access, could you fix it for me ? I really can't get this to work :(

 

#12 2012-07-24 18:33:50

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

Re: How does the "add 3 new info fields" plugin work

Konve wrote:

OR
Maybe you personally would be more pleasing to behold this link
:)

http://www.filpersona.ru/picture.php?/359/category/18

French Hero
General Pouyade Pierre

My Antivirus dont like your site :-(


Can you test with this file -> http://piwigo.org/dev/browser/extension … ?rev=16977


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-24 18:38:14

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

Re: How does the "add 3 new info fields" plugin work

Jeroen wrote:

1. Download "locafiles editor" from here:
http://piwigo.org/ext/extension_view.php?eid=144

Take plugin in piwigo 2.4.1


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

 

#14 2012-07-24 18:39:15

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

Re: How does the "add 3 new info fields" plugin work

Jeroen wrote:

If Igive you temp admin access, could you fix it for me ? I really can't get this to work :(

ok if you want

My e-mail is my login with @piwigo.org


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

 

#15 2012-07-24 19:10:05

Jeroen
Guest

Re: How does the "add 3 new info fields" plugin work

email sent :)

 

Board footer

Powered by FluxBB

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