View Full Version : Addon: Custom Fields Addon
klimin_a_s
12-18-2006, 04:55 PM
Custom Fields Addon (Current version 1.3).
Custom Fields Addon (http://www.pixelpost.org/extend/addons/custom-fields/) provide ability to add specific parameters to the images. You can add unlimited amount of fields, disable selected fields, change fields visibility, set fields order or delete them.
Caution!!! Deleted fields cannot be restored!
For example:
Custom field name Possible values
Cropped (Yes, no, a little, etc.)
Image Quality (JPG, RAW, TIFF, etc.)
RAW Converter (Adobe Camera Raw, Nikon Capture, C1 Pro, etc.)
Used software (Adobe Photoshop CS2, Paintbrush, etc.)
Noise (Original, NeatImage, etc.)
Rotation (None, 90, -90, 180, minor rotation, etc.)
Location (Home, work, travel to Africa, travel to Russia, indoor, outddor, etc.)
Event (My birthday, Christmas, etc.)
City (New-York, Paris, London, Moscow, Birsk :-), etc.)
Flash (Not used, Nikon SB800, multiple flashes, etc.)
Genre (Portrait, street photo, landscape, nude, macro, etc.)
Tripod (Hands, tripod, monopod, table, etc.)
Photographer (John Smith, Ivan Susanin, Van Halen, etc.)
Mood ......
Weather ......
Season ......
...and so on.
TAGS
<CUSTOM_FIELDS>
<CUSTOM_FIELD_NAME_ID=NNN>
<CUSTOM_FIELD_VALUE_ID=NNN>
<CUSTOM_FIELD_COUNTER>
<CUSTOM_FIELD_VALUES_COUNTER>
<CUSTOM_FIELD_KEYWORDS_VALUES>
INSTALLATION
Unzip and upload file admin_customfields.php to your Pixelpost /Addon directory.
Go to Admin area, Addons. The database tables will be created automatically.
Add necessary amount of custom fields. Fill Name, Visible and Enable statuses, Default value (optional), change settings as you wish.
Place <CUSTOM_FIELDS> or/and <CUSTOM_FIELD_NAME_ID=NNN>, <CUSTOM_FIELD_VALUE_ID=NNN>, <CUSTOM_FIELD_COUNTER>, <CUSTOM_FIELD_VALUES_COUNTER> tags in your template.
(Optional) Place <CUSTOM_FIELDS_KEYWORDS_VALUES> into the <head></head> section, for example: <meta http-equiv="content-type" name="keywords" content="PhotoBlog,<SITE_TITLE>,<IMAGE_TITLE>,Pixelpost,<CUSTOM_FIELDS_KEYWORDS_VALUES>" /> You can exclude some custom fields from keywords-list by checking "Not a keyword" checkbox in the addon settings.
That's all. Go to the Admin area (New Image, Images) and use this addon.
DOWNLOAD (http://www.pixelpost.org/extend/addons/custom-fields/)
p.s. I need a help of native language Pixelpost user for addon text corrections.
Dkozikowski
12-18-2006, 05:47 PM
Bravo!
I have not installed it yet but looking at the screenshot i can just tell this addon has got to be great.
Great work!
As soon as i give it a test run I'll come back here with some real comments.
Dennis
12-18-2006, 06:04 PM
dwilkinsjr: this is really a great addon, I was fortunately to test drive it.
Dkozikowski
12-18-2006, 06:09 PM
yeah, no kidding. I just tested it. Amazing. Much better than my hack.
I do like my hack for it's simplicity though.
This addon has allot of bells and whistles but I could see myself using them too.
Next time PP has a major upgrade I'm just going to stick with this addon instead of re-hacking the new files.
This addon should be packaged with pixelpost if you ask me.
Good show, great work! If I knew PHP this is how I would have done it too.
klimin_a_s
12-19-2006, 06:16 AM
Thank you very much! Special thanks to Schonhose!
Although a lot of bugs was corrected, I need a help of Pixelpost users to test this addon. Also, please suggest new ideas and feature requests to add to future versions of the addon.
Note: bilingual feature is still in progress. I create necessary table fields to the database, and you can setup alt names, but work not finished yet, you cannot use alt values to show on the front-page. I'm waiting a bilingual release of Pixelpost (1.6?) to finish this feature.
klimin_a_s
12-19-2006, 10:57 AM
I found a unnecessary diagnostic message in the addon (file:admin_customfields.php, line 143):
echo "imgid=" . $theid . "---";
Please, delete or comment this line. Zip-file has been updated at the Pixelpost.org site.
DikkieBurger
12-19-2006, 11:48 AM
Great addon, love it.
It works great on my blog. (http://www.shoqed.nl/)
greentraveler
12-23-2006, 05:33 AM
Another beautiful addition to PP functionality...simple and awesome.
Many thanks!
:D
klimin_a_s
12-28-2006, 03:03 PM
Custom Fields (http://www.pixelpost.org/v1/index.php?x=downloads&details=194) v.0.8 (28 Dec 2006).
What's new?
v.0.8 28 Dec 2006
[+] Now you can sort Custom Fields by ID, by Name or by Order (default) in the admin area.
[-] Fixed small sorting bug.
DOWNLOAD (http://www.pixelpost.org/v1/devfiles/?id=194)
Cameron Hopkins
12-29-2006, 02:37 AM
Help!
I installed the latest plugin and my site will not even load. When I connect to admin, it states:
Parse error: syntax error, unexpected ')' in /home/xxx/addons/admin_customfields.php on line 104
Can someone send me the earlier version?
klimin_a_s
12-29-2006, 02:51 AM
Cameron, it is very strange. I have just downloaded this addon from Pixelpost.org, then made a new installation... I havn't any errors! Just in case, this is a link (http://photoblog.birsk.info/customfields/customfields_v0.7.zip) to the old version 0.7 of Custom Fields. Please, try one more time and write your results in this topic! This is very important for to fix all bugs in this addon.
Cameron Hopkins
12-29-2006, 03:05 AM
Cameron, it is very strange. I have just downloaded this addon from Pixelpost.org, then made a new installation... I havn't any errors! Just in case, this is a link (http://photoblog.birsk.info/customfields/customfields_v0.7.zip) to the old version 0.7 of Custom Fields. Please, try one more time and write your results in this topic! This is very important for to fix all bugs in this addon.
Thank you Klimin. I uploaded the 0.7 version and it works fine now.
I repeated the install of 0.8 and then got the same error. Perhaps this is an isolated incident (to me!).
klimin_a_s
12-29-2006, 03:12 AM
Hmm... I should ask the Pixelpost PHP-guru (Pixelpost Team), what is the problem? Have anybody same error with new version 0.8 of this addon? Please, post results of your testing in this topic.
1000words
12-31-2006, 01:45 PM
Hi Klimin Andrew
Just a short note to thank you for creating this add-on. I found it PERFECT for my project and it has worked like a charm.
Regards
David
fredxeric
01-10-2007, 02:21 AM
Should be great to have a drop down menu for all field if it's possible.
klimin_a_s
01-10-2007, 02:49 AM
fred-eric, do you write about drop down menu for custom fields or its possible values (history of values)?
fredxeric
01-10-2007, 11:01 AM
fred-eric, do you write about drop down menu for custom fields or its possible values (history of values)?
Yes for example I have create a new name "Lens"and would like to have when I post a new image to have the choice of the lens I used. So it would be great to have a drop down menu beside the possible value for every lens I have.
Also, should eb great to have unique TAGS for every entry where you can place it in your template everywhere you wich. Right now you dont have choice to place all TAGS togetter.
This is a very nice addons but some feature should be review.
klimin_a_s
01-10-2007, 12:28 PM
Yes, of course! This is a great idea. I have another ideas, for example, input fields may be not a single line form, but a checkbox, a textarea. I've just write this ideas to my "todo" list.
fredxeric
01-10-2007, 04:28 PM
Yes, of course! This is a great idea. I have another ideas, for example, input fields may be not a single line form, but a checkbox, a textarea. I've just write this ideas to my "todo" list.
Great, like I say it's fantastique addons good of your parts
clickykbd
01-15-2007, 02:37 AM
great and veratile addon... i'll be managing my meta/info for photos shot on film using it until i get off my butt and start embedding that information. I've also been adding a "location" line to all my descriptions... no more!
inophoto
01-15-2007, 09:05 AM
Brilliant. I havn't installed it yet but I was looking for something that would do this a few months ago. Great work!
klimin_a_s
04-02-2007, 03:36 AM
I have just update Custom Fields addon to version 0.9. You can download it at this link (http://www.pixelpost.org/v1/index.php?x=downloads&details=194).
VERSION HISTORY
Whatsnew in version 0.9
0.9 01 Apr 2007
[!] Bilingual feature is fully completed. Required Pixelpost 1.6!
[+] Added tags <CUSTOM_FIELD_NAME_ID=NNN> and <CUSTOM_FIELD_VALUE_ID=NNN>, where NNN is a ID of the custom field. These tags show only name and value of the selected custom field without prefixes and suffixes.
Micha
05-11-2007, 04:17 PM
Great Addon!!
Works perfectly. Only the limited size of the <value> field is a little bit disturbing for my needs.
Does anyone know how I can put more text in the CUSTOM_FIELD_VALUE ??
klimin_a_s
05-11-2007, 04:39 PM
Great Addon!!
Works perfectly. Only the limited size of the <value> field is a little bit disturbing for my needs.
Does anyone know how I can put more text in the CUSTOM_FIELD_VALUE ??
Yes, you can increase the fields length (default length is 121 byte) on your hosting, for example, via PHPMyAdmin or other SQL-software. There are values fields:
Table: PREFIX_customfields
Fields: defaultvalue, alt_defaultvalue
Table: PREFIX_customfieldsvalues
Fields: value, alt_value.
klimin_a_s
05-11-2007, 04:47 PM
Use "ALTER TABLE" SQL statement.
ScarySquirrel
05-28-2007, 08:47 AM
Hello, I am new to pixelpost and I don't understand step 4:
Place <CUSTOM_FIELDS> tag in your template.
How do I do this?
Also, I am going to use this to display EXIF data, can someone tell me if there is a better way to do this? Thanks
klimin_a_s
05-28-2007, 09:37 AM
Hello, I am new to pixelpost and I don't understand step 4. How do I do this?
1. Open /templates/<your template name>/image_template.html.
2. Place tag <CUSTOM_FIELDS>, for example, below <IMAGE_NOTES> tag.
3. That's all.
Also, I am going to use this to display EXIF data, can someone tell me if there is a better way to do this? Thanks
You can use standard methods to show the EXIF-info (see /doc/tags.html).
ScarySquirrel
05-28-2007, 11:43 AM
1. Open /templates/<your template name>/image_template.html.
2. Place tag <CUSTOM_FIELDS>, for example, below <IMAGE_NOTES> tag.
3. That's all.
Thanks, like this?:
<!-- META -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="content-type" name="keywords" content="PhotoBlog,<SITE_TITLE>,<IMAGE_TITLE>,Pixelpost" />
<meta http-equiv="content-type" name="description" content="<SITE_TITLE>-PhotoBlog: <IMAGE_TITLE>, <IMAGE_NOTES_CLEAN>, <CUSTOM_FIELDS>" />
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="templates/suffocate/styles/suffocate.css" />
<!-- SCRIPTS -->
You can use standard methods to show the EXIF-info (see /doc/tags.html).
I don't understand that document, where do I place the tags? For example the one for camera type? Do I do the same as above?
Thanks
klimin_a_s
05-28-2007, 01:12 PM
Thanks, like this?:
<!-- META -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="content-type" name="keywords" content="PhotoBlog,<SITE_TITLE>,<IMAGE_TITLE>,Pixelpost" />
<meta http-equiv="content-type" name="description" content="<SITE_TITLE>-PhotoBlog: <IMAGE_TITLE>, <IMAGE_NOTES_CLEAN>, <CUSTOM_FIELDS>" />
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="templates/suffocate/styles/suffocate.css" />
<!-- SCRIPTS -->
I don't understand that document, where do I place the tags? For example the one for camera type? Do I do the same as above?
No, you modified META-tag only. You should place tag <CUSTOM_FIELDS> between <BODY> and </BODY> tags, for example (template Horizon):
After the <CUSTOM_FIELDS> tag you can place EXIF-tags.
<body>
<div id="image-info" style="display:none">
<div class="inside">
<h2><IMAGE_TITLE> <em><IMAGE_DATE></em> <em><IMAGE_COMMENTS_NUMBER> <IMAGE_COMMENT_TEXT></em> </h2>
<div id="image_notes">
<IMAGE_NOTES>
<CUSTOM_FIELDS>
<EXIF_EXPOSURE_TIME>
<EXIF_APERTURE>
....
ScarySquirrel
05-28-2007, 03:19 PM
Cool thank you, I'll give it a go now :)
pixestential
06-20-2007, 04:28 PM
Hi! Thanks for the awesome addon. One question. I'm using the addon to create a custom field for my internal image number. A few of the images have numbers with leading zeros. For example, all of my images have a five digit number like 54652. However, a few of them are like 00231. My problem is when I enter 00231 into the custom field and save, when I edit the image I see that it has only saved 231.
Is there any way to prevent it from dropping the leading zeros without resorting to enclosing in quotes or putting a space or other character in front of the number?
Thanks!
Lucifer
07-01-2007, 09:24 PM
Caution!!! Deleted fields cannot be restored! :(
Solution method
phpMyAdmin -> Login -> DB
---------------------------------------------
_customfields
_customfieldssettings
_customfieldsvalues
---------------------------------------------
Delete
Reinstallation :)
However, all customfields DB are erased. :p
lauravink
07-07-2007, 09:28 AM
I love this addon! I've used it on my website www.lauravink.nl (http://www.lauravink.nl). The text-colour of the menu and headings on my website is for every photo different depending on the colours of the photo. I insert the colour I want to use in a custom-field and use an internal CSS-style-sheet to show this colour on the page.
Second I've used it to define the place and country where the picture is taken.
And third I've used it to insert a GoogleMap by using GMapEZ (http://n01se.net/chouser/gmapez/) and inserting the coordinatesvalue for the longitude and latitude in the custom-field.
I'm absolutely a fan of this Addon! :D Take a look at my website if you want to see it working: http://www.lauravink.nl
klimin_a_s
07-07-2007, 02:15 PM
I love this addon! I've used it on my website www.lauravink.nl (http://www.lauravink.nl). The text-colour of the menu and headings on my website is for every photo different depending on the colours of the photo. I insert the colour I want to use in a custom-field and use an internal CSS-style-sheet to show this colour on the page.
Second I've used it to define the place and country where the picture is taken.
And third I've used it to insert a GoogleMap by using GMapEZ (http://n01se.net/chouser/gmapez/) and inserting the coordinatesvalue for the longitude and latitude in the custom-field.
I'm absolutely a fan of this Addon! :D Take a look at my website if you want to see it working: http://www.lauravink.nl
Laura, thank you very much! You show excellent ways to using Custom fields addon. Great!
klimin_a_s
07-23-2007, 04:26 AM
I have just upload new version Custom Fields ver.0.9.1 (23 Jul 2007). Changes:
0.9.1 23 Jul 2007
You can insert invisible custom fields with tags <CUSTOM_FIELD_NAME_ID=NNN> and
<CUSTOM_FIELD_VALUE_ID=NNN>. The <CUSTOM_FIELDS> tag doesn't show invisible custom fields.
iHamad
08-22-2007, 09:32 AM
its amazing .. i have applied it and it is working fine ..
i used the
<CUSTOM_FIELD_NAME_ID=NNN>
and
<CUSTOM_FIELD_VALUE_ID=NNN>
thanks for this addon ..
krembo99
11-02-2007, 07:29 PM
thanks !!
This is a really great and usefull addon.. a must for everyone using pixelpost !
I have a small question : is there a way to echo an image instead of the field's name ? is there a wasy to assign an image to a field , and output this imge/icon ??
klimin_a_s
11-03-2007, 06:49 AM
thanks !!
This is a really great and usefull addon.. a must for everyone using pixelpost !
I have a small question : is there a way to echo an image instead of the field's name ? is there a wasy to assign an image to a field , and output this imge/icon ??
Of course! You can place HTML-tag instead the name of the custom field, for example, I have "Vazaar" custom field. I can use text "Vazar" or HTML tag IMG for this field:
<img src="http://photoblog.birsk.info/vazaar_badge01.gif" />
klimin_a_s
11-08-2007, 06:46 AM
I have just upload new version Custom Fields ver.1.0 (08 Nov 2007). Changes:
1.0 08 Nov 2007
[+] Added some statistical tags <CUSTOM_FIELD_COUNTER> and <CUSTOM_FIELD_VALUES_COUNTER> - number of the custom fields and custom fields values.
[+] Added "Check for update" (admin area) feature (via http://versioncheckr.com).
Minor corrections
Versions 0.9, 0.91 and 1.0 works fine with Pixelpost 1.7RC1.
Crossie
04-08-2008, 03:03 PM
First thanks a lot for this great and useful addon. I know this thread is quite old, but I have two questions and I'd be happy if someone may help me out: I'm planning to switch the active css style via two hidden custom fields like this:
<link rel="stylesheet" type="text/css" href="templates/accessible/styles/<CUSTOM_FIELD_VALUE_ID=10>" title="<CUSTOM_FIELD_VALUE_ID=11>"
In the addon section I've created the two fields (ID 10 and 11) ticked the "Visible" checkbox off and entered some default values.
Q1: the fields names and the values are beeing displayed on my page, though I have set the fields to "invisible". They appear unformatted and without a space at the bottom of the page like this:
csslight.css
csstitlelight
where "css" and "csstitle" are the custom fieldnames, and "light.css" and "light" are the values.
Q2: what is the "default" entry for? It would be nice if (well in my case ;)) the default value would automatically be set in case that the fields are empty. Otherwise I have to go thru all of my pictures and alter the values to achieve a valid css entry (ok this should also be doable with a small SQL-script to fill the table, nevertheless I'm wondering about the "default").
Thanks a lot in advance
Uwe
klimin_a_s
04-08-2008, 05:34 PM
Q1: the fields names and the values are beeing displayed on my page, though I have set the fields to "invisible". They appear unformatted and without a space at the bottom of the page like this:
csslight.css
csstitlelight
where "css" and "csstitle" are the custom fieldnames, and "light.css" and "light" are the values.
a) Please, tell me a version of CF addon?
b) Did you use <CUSTOM_FIELDS> tag at your page? You should use only <CUSTOM_FIELD_VALUE_ID=NN> tags. Even you set your custom fields to "invisible", in any case they will be shown.
Q2: what is the "default" entry for? It would be nice if (well in my case ;)) the default value would automatically be set in case that the fields are empty. Otherwise I have to go thru all of my pictures and alter the values to achieve a valid css entry (ok this should also be doable with a small SQL-script to fill the table, nevertheless I'm wondering about the "default").
c) "Default value" (and "Alt default value", if you use bilingual feature) - is an initial value, that is automatically fill in into the "value" field when you upload a new photo to the Pixelpost.
Thanks for using Custom Fields addon. Can you attach a screenshots of the front-page and the CF settings at the admin-area?
Crossie
04-09-2008, 04:45 AM
a) Please, tell me a version of CF addon?
I'm using v. 1.0
b) Did you use <CUSTOM_FIELDS> tag at your page? You should use only <CUSTOM_FIELD_VALUE_ID=NN> tags. Even you set your custom fields to "invisible", in any case they will be shown.
Ah ok. I'm using the <CUSTOM_FIELD_VALUE_ID=NN>, because I only need the values for my css style. I'm using it to set the style.css like this:
<link rel="stylesheet" type="text/css" href="templates/accessible/styles/<CUSTOM_FIELD_VALUE_ID=10>" title="<CUSTOM_FIELD_VALUE_ID=11>"
They are displayed anyways, like the screenshot shows. I have not used the <CUSTOM_FIELDS> tag anywhere esle on the page, only the two tags as shown above.
c) "Default value" (and "Alt default value", if you use bilingual feature) - is an initial value, that is automatically fill in into the "value" field when you upload a new photo to the Pixelpost.
And this answers my 2nd question in a perfect way. Thanks a lot, now the situation is cleared :).
Thanks for using Custom Fields addon. Can you attach a screenshots of the front-page and the CF settings at the admin-area?
Sure, I have attached a screenshot from the admin settings, the setting on the image and the result on the website.
Again thanks for this very useful addon and your helpful answer. There are a lot of things which can be done with it. As someone mentioned above, it should be an initial part of the Pixelpost package :).
Regards
Uwe
http://www.accessible.de/forum/cf.jpg
--------------------
http://www.accessible.de/forum/cf2.jpg
--------------------
http://www.accessible.de/forum/cf3.jpg
Crossie
04-09-2008, 05:52 AM
I stand corrected: silly me had the tag <CUSTOM_FIELDS> in the html code, cause I've only used one costum field until now. I altered it to the value tags and now everything works perfecly!
I think this is a nice idea to switch styles that way for different pictures, cause it's not only possible to switch the background color, but you can switch the style completely simply by using different stylesheets commited thru the custom fields addon.
Regards
Uwe
klimin_a_s
04-09-2008, 07:53 AM
Crossie, your idea with using css-styles with CF addon is great! Thank you!
Have you any other problems with CF-addon now?
Crossie
04-09-2008, 08:21 AM
No Klimin, everything works flawless now. I have implemented the css option on my website already. Only a dark and a light style so far, but as soon as I have some spare time, I'll create some different styles, light grey f.ex. for "fine tuning".
Thanks again!
Regards
Uwe
raulm21
04-19-2008, 09:51 AM
Hi, I've downloaded this addon, activated but not working for me.
I use the focus theme, and I've pasted the <CUSTOM_FIELDS> code to the comment.php file.
You can visit my site here: www.raulm21.com/pixelpost/
Thanks.
Crossie
04-19-2008, 02:42 PM
The Tag goes in your template, not in the core php-files of pixelpost.
Regards
Uwe
raulm21
04-19-2008, 03:26 PM
I changed it on the template file, not th pixelpost core-php file.
Thanks
Crossie
04-19-2008, 04:56 PM
There ain't no such thing like a comment.php in this template, as far as I know. Where exactly did you put the tag in? Maybe you'll post the part out of the HTML file and your settings in the admin interface.
Regards
Uwe
raulm21
04-19-2008, 05:12 PM
_focus_template_addon/config/comment.php
Crossie
04-19-2008, 07:33 PM
Well as I said, that's not the correct place to put the tag in. Put it in the templates html files, like /templates/focus/image_template.html or wherever you want the custom fields to be displayed.
Regards
Uwe
raulm21
04-19-2008, 08:34 PM
Fixed, thanks!
Now it's time to fix the exif data not showing.
eversonl
05-28-2008, 10:38 AM
hi I can not get this plugin working, I have installed the plugin and enabled.
added a custom field (id=1)
and then added the <CUSTOM_FIELD_VALUE_ID=1> to the image_template but nothing displays.... what have I done wrong?
running v1.0 of the plugin and version 1.7.1 of pixelpost
eversonl
05-28-2008, 10:55 AM
Ok ignor me...it works a charm I was silly;-)
just had not gone back and updated the custom field for already existing images.
duh!
tomms
05-28-2008, 05:57 PM
this is a really great addon, thank you
i wonder in future builds if you can filter photos in the browse page by custom field
IE by tripod, handheld etc
klimin_a_s
06-25-2008, 05:55 AM
I have just upload new version Custom Fields (http://www.pixelpost.org/extend/addons/custom-fields/) ver.1.1 (25 Jun 2008). Changes:
Version 1.1 (25 Jun 2008)
[ + ] Added <CUSTOM_FIELDS_KEYWORDS_VALUES> - a list of custom fields values for META Keywords (only alphabetical characters, digits, spaces and hyphens allowed, list separator - comma). Added ability to exclude selected custom fields from keywords-list in the addon settings (checkbox "Not a keyword").
[ + ] Added some sample custom fields for new addon installation.
[ * ] All tags now are case-insensitive.
[ * ] Minor code optimization and corrections.
[ - ] Fixed bug with Visible in non-bilingual mode.
Can anybody help me to correct text of README file and addon texts into the native English language? I think there are a lot of mistakes in these files.
witty
06-25-2008, 05:26 PM
English edits:
*************************************
* Custom Fields addon for Pixelpost *
*************************************
AUTHOR
------
Klimin Andrew
Contact: photoblog@birsk.info
WWW: http://photoblog.birsk.info
License: http://www.gnu.org/copyleft/gpl.html
Addon Homepage: http://www.pixelpost.org/extend/addons/custom-fields/
Addon Discussion: http://www.pixelpost.org/forum/showthread.php?t=5780
VERSION
-------
1.1
LAST UPDATED
-----------
24 Jun 2008
REQUIREMENTS
------------
Pixelpost Version 1.5-1.7.1
Pixelpost Version 1.6-1.7.1 for bilingual feature.
Pixelpost URL: http://www.pixelpost.org/
ABOUT
-----
Custom Fields Addon provides the ability to add additonal parameters or details to your images. You can add an unlimited number of fields, disable selected fields, change a field's visibility, set field order or delete them.
Caution!!! Deleted fields cannot be restored!
For example:
Custom field name Possible values
------------------------------------------------------
Cropped Yes, no, a little, etc.
Image Quality JPG, RAW, TIFF, etc.
RAW Converter Adobe Camera Raw, Nikon Capture, C1 Pro, etc.
Used software Adobe Photoshop CS2, Paintbrush, etc.
Noise Original, NeatImage, etc.
Rotation None, 90, -90, 180, minor rotation, etc.
Place Home, work, travel to Africa, travel to Russia, indoor, outddor, etc.
Event My birthday, Christmas, etc.
City New-York, Paris, London, Moscow, Birsk :-), etc.
Flash Not used, Nikon SB800, multiple flashes, etc.
Genre Portrait, street photo, landscape, nude, macro, etc.
Tripod Hands, tripod, monopod, table, etc.
Photographer John Smith, Ivan Susanin, Van Halen, etc.
Mood ...
Weather ...
Season ...
Now playing ...
GPS Coords ...
Keywords ...
HTML-elements (colors, styles, etc)
...and so on.
TAGS
-----
<CUSTOM_FIELDS>
<CUSTOM_FIELD_NAME_ID=NNN>
<CUSTOM_FIELD_VALUE_ID=NNN>
<CUSTOM_FIELD_COUNTER>
<CUSTOM_FIELD_VALUES_COUNTER>
<CUSTOM_FIELDS_KEYWORDS_VALUES>
VERSION HISTORY
---------------
[!] Important
[+] New
[-] Fixed error
Changes
0.1 12 Dec 2006
[!] Initial Release
0.2 13 Dec 2006
[+] Added fields 'showdisabled', 'showinvisible' to table Pixelpost_CustomFieldsSettings.
[+] Added user settings 'Show disabled fields' and 'Show invisible fields'.
[+] If you delete custom fields, records from pixelpost_customfieldsvalues is deleted too.
[+] Added some statictics (number of custom fields: overall, invisible, disabled).
Minor enhancements.
[-] Fixed problem with Visible in template.
0.3 14 Dec 2006
[!] Fixed some problems with code-security.
[+] Added warning dialog to "Delete" link.
0.4 15 Dec 2006
[!] Added bilingual feature (BETA, for compatibility with Pixelpost 1.6 and higher).
[-] Fixed bug with settings table creating.
[-] Fixed bug with adding new custom field record.
0.5 17 Dec 2006
New installation creates table pixelpost_customfields with one default record.
Tags <b> changed to <strong>.
Addon transformed into one file: admin_customfields.php.
When adding new custom field, Order filled automatically.
Removed information about tables existence.
[+] Added HTML example for prefixes and suffixes.
0.6 18 Dec 2006
[-] Fixed bug with blank custom field saving of editing image.
[-] Fixed bug with custom field saving of new image.
0.7 18 Dec 2006
Small code corrections. First Release.
0.8 28 Dec 2006
[+] Now you can sort Custom Fields by ID, by Name or by Order (default).
[-] Fixed small sorting bug.
0.9 01 Apr 2007
[!] Bilingual feature is fully completed. Required Pixelpost 1.6!
[+] Added tags <CUSTOM_FIELD_NAME_ID=NNN> and <CUSTOM_FIELD_VALUE_ID=NNN>, where NNN is a ID of the
custom field. These tags show only name and values of the selected custom field without prefixes
and suffixes.
0.91 23 Jul 2007
You can insert invisible custom fields with tags <CUSTOM_FIELD_NAME_ID=NNN> and
<CUSTOM_FIELD_VALUE_ID=NNN>. The <CUSTOM_FIELDS> tag doesn't show invisible custom fields.
1.0 08 Nov 2007
[+] Added some statistical tags <CUSTOM_FIELD_COUNTER> and <CUSTOM_FIELD_VALUES_COUNTER> - number
of the custom fields and custom fields values.
[+] Added "Check for update" (admin area) feature (via http://versioncheckr.com).
Minor corrections
1.1 25 Jun 2008
[+] Added <CUSTOM_FIELDS_KEYWORDS_VALUES> - a list of custom fields values for META Keywords
(only alphabetical characters, digits, spaces and hyphens allowed, list separator - comma).
Added ability to exclude selected custom fields from keywords-list in the addon settings
(checkbox "Not a keyword").
[+] Added some sample custom fields for new addon installation.
All tags now are case-insensitive.
Minor code optimization and corrections.
[-] Fixed bug with Visible in non-bilingual mode.
INSTALLATION
------------
1. Unzip and upload the admin_customfields.php file to your /Addon or /addon directory.
2. Login to the admin area and click on Addons. The database tables will be created automatically when you enable Custom Fields.
3. Add your custom fields as needed. Give each custom field a name, choose to make each field Visible (or not), to Enable it (or not), and whether or not it should have a Default value (optional). Change the settings as you wish.
4. Place <CUSTOM_FIELDS> or/and <CUSTOM_FIELD_NAME_ID=NNN>, <CUSTOM_FIELD_VALUE_ID=NNN>,
<CUSTOM_FIELD_COUNTER>, <CUSTOM_FIELD_VALUES_COUNTER> tags in your template.
5. (Optional) Place <CUSTOM_FIELDS_KEYWORDS_VALUES> into the <head></head> section of your template. For example:
<meta http-equiv="content-type" name="keywords"
content="PhotoBlog,<SITE_TITLE>,<IMAGE_TITLE>,Pixelpost,<CUSTOM_FIELDS_KEYWORDS_VALUES>" />
You can exclude certain custom fields from the keywords-list by checking the "Not a keyword" checkbox in the addon settings.
6. That's all. Have fun with Custom Fields!
TODO
----
1) AJAX autocomplete (autosuggest)
Any other suggestions?
SPECIAL THANKS
--------------
All Pixelpost Team
Schonhose, GeoS
http://www.pixelpost.org
Andriy Zolotiy
http://www.x-processed.com
--
Klimin Andrew
http://photoblog.birsk.info
2006-2008
klimin_a_s
06-26-2008, 02:50 AM
Witty, thanks you very much!
witty
06-26-2008, 04:28 PM
Hi,
You're welcome. I didn't make any changes to the "VERSION HISTORY" section, for fear of misrepresenting something important. I made changes to the "INSTALLATION" and "ABOUT" sections.
-Witty
klimin_a_s
07-08-2008, 03:15 AM
I have just upload new version Custom Fields (http://www.pixelpost.org/extend/addons/custom-fields/) ver.1.2 (08 Jul 2008). Changes:
Version 1.2 (08 Jul 2008)
[ - ] All tags now are case-sensitive back (PHP4 compatible function str_replace instead of str_ireplace).
[ * ] Increased increment interval of custom fields order from 1 to 10.
klimin_a_s
08-25-2008, 10:57 AM
Custom Fields ver.1.3 (25 Aug 2008). Changes:
1.3 25 Aug 2008
[ +] Autoreplace URL 'http://<URL>' at the custof field's values to HTML-code, for example, 'http://www.photoblog.xxx/large001.jpg' will be replaced to '<a href="http://www.photoblog.xxx/large001.jpg">http://www.photoblog.com/large001.jpg</a>'
Note: you must fill CF value exactly URL without beginnig of trailing spaces or other characters.
Hi,
I would like to use the custom fields addon to generate a link to a webpage, maybe even another entry in a different pixelpost photoblog. I've tested it out by creating a field, then entering a URL in the image page.
However, it doesn't create a URL you can follow - just displays the web address. What am I doing wrong?
Ideally, I'd like to generate a link based on the field title.
For example, I'm thinking of having supplementary information (behind the scenes) available for certain images on the site - text about the photograph, or a supporting image, and I want this to be stored either on a separate page, or as a separate image (maybe even using a lightbox script or something similar).
Is this possible?
Thanks so much for a great script.
Tom
Nathan
10-16-2008, 10:47 PM
I don't know if I'm missing anything, but is there a way of sorting by custom fields in the pixelpost Archive page?
I'm currently using Custom Fields to specify the artists name, and for region (I'm using PP for a gallery site), and I've just been asked if we're able to arrange the archive by artist or region.
klimin_a_s
10-17-2008, 10:25 AM
Hi,
I would like to use the custom fields addon to generate a link to a webpage, maybe even another entry in a different pixelpost photoblog. I've tested it out by creating a field, then entering a URL in the image page.
However, it doesn't create a URL you can follow - just displays the web address. What am I doing wrong?
Ideally, I'd like to generate a link based on the field title.
For example, I'm thinking of having supplementary information (behind the scenes) available for certain images on the site - text about the photograph, or a supporting image, and I want this to be stored either on a separate page, or as a separate image (maybe even using a lightbox script or something similar).
Tom, I'm sorry for a long answer...
1) You can use HTML-code as a value of custom field.
2) Since ver. 1.3 CF-addon automatically generate HTML-code for values with clean URL like "http://www.google.com" (NB: no spaces at the begin and end of this string).
3) You can use PP-tags like "<SITE_TITLE>" in the custom field values with some modification of CF addon. For example, you have to add code:
$tpl = ereg_replace("<SITE_TITLE>",$pixelpost_site_title,$tpl);
BEFORE
} //if
?>
If you want use other tags, you must add them to the CF addon code like an previous example (I found code for SITE_TITLE at the source of Pixelpost's "index.php").
I don't know if I'm missing anything, but is there a way of sorting by custom fields in the pixelpost Archive page?
I'm currently using Custom Fields to specify the artists name, and for region (I'm using PP for a gallery site), and I've just been asked if we're able to arrange the archive by artist or region.
Nathan, CF addon don't provide Archive page functionality.
Dr.Ozdi
11-14-2008, 07:20 PM
Hi,
I asked for "publish an article" (text page) here:
http://www.pixelpost.org/forum/showthread.php?t=9701
This addon isnīt usable, isnīt it? Fields are just for few words...?
snafu
11-14-2008, 08:43 PM
you can use custom fields for linking to articel pages (if the articel is relatet to this picture) you wrote with the miniCms addon.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.