Filter & Sort File Information Fields on Image Display Page Filter & Sort File Information Fields on Image Display Page
 

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

Main Menu

Filter & Sort File Information Fields on Image Display Page

Started by Paver, February 03, 2006, 09:05:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Paver

This plugin lets you choose which non-EXIF fields you want to display in the "File Information" box under photos/files.

It also adds the album description to the list of fields since that is not included in the Coppermine core.

You can choose whether the admin sees all the fields always or not.  If you set this to "yes", you can still check to see what users see by going to "User Mode" while logged in as Admin (and then switch back to "Admin Mode" when you are done posing as a user).

To do: add BBcode evaluation to album description field, and allow customization of the order of the fields.

v1.01 added bb_decode to album description
v1.02 added manual sorting of fields using a configuration option in codebase.php
v1.02 has a bug whose fix is noted here


[Edit GauGau 2010-03-03]
This plugin has been added to the subversion repository: http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.4.x/plugins/display_fields

It has been updated as well to reflect the version checking routines in the plugin manager that are meant to make sure that galleries don't break because of plugins installed that aren't meant for that particular version of the gallery.

Download: https://sourceforge.net/projects/coppermine/files/Plugins/1.4.x/cpg1.4.x_plugin_display-fields_v1.3.zip/download
[/Edit]

Paver

I added version 1.02 above.  It allows you to manually sort the fields - including EXIF & IPTC fields - by setting configuration options in codebase.php.  There is no web-based configuration panel for this (yet); you need to change the settings yourself in codebase.php.  Read README.txt and the comments before the options in codebase.php.

You only need to put the fields you want sorted in the setting.  The rest of the displayed fields will be added onto the end. 

The code could probably be more efficient but since this is for one image and there aren't that many fields, the difference in time for more-efficient code would probably be negligible.

pcbill

Is it possible for one to add fields to this that are not there?
Such as City, State, Country, etc.

Bill

Siberiantiger

Hi!
I think you missed out 2 kinds of fields here because the *Rating" button is still there.. (and it's not in this plugins list) Could someone add this option?!

And i wish for an option to remove the "who uploaded the file" in the "album name field" Just now ALBUM NAME is showing ADMIN/JANUARY (instead of just JANUARY)

Hope these can be fixed.

Paver

I found a bug in version 1.02.  On the plugin config page, the "show all fields for admin" dropdown menu doesn't accurately show the current value of this config setting.  The config setting is correctly set and used, for whichever option you choose, but the config page doesn't show the current setting.  It always shows "No".

Here's the fix.  Look for this line in plugin_config.php:
if ($plugin_displayfields_params['plugin_displayfields_adminshowall'] == '1') {
and replace it with this line:
if ($CONFIG['plugin_displayfields_adminshowall'] == '1') {

I'll include this fix in the next version, but I'm not sure when that will be since I want to include other features but need to find time to fully implement them and test them out.  So apply the fix as stated above.

Hein Traag

Not using yet, did install it as a test and it worked nicely along with the rest of the plugins.

Attached dutch.php and a dutch version of the configuration page. The plugin manager now has a dutch description of what the plugin actually does. I hope you don't mind.

Cheers!
Hein

su_ict

Ok, using this plugin and works as a charm  ;) (Hein, thx for the Dutch translation).

One question though - it is possible to extend this plugin to display / not display custom fields ?

blackRock

Great plugin!

Here is the Greek translation  ;)

nointerest

I use this as well and it works great. Thank you very much.

I attach
"German" and "German_sie" to this post.

I have double-checked to save it as UTF-8 - document, but as I am new in using the UTF-8-capable editor it would be great if somebody would check out that the files are indeed utf-8.

dotcom22

Hi

I have install this plugin and appear work well when I use Firefox (english) but not IE (french). In other terms it appear work when Coppermine are displayed in english but not when using french browser... My goal is to display only file name and favorite link....This work without problem in english but in french I get always almost all other informations...

Any suggestions ? Thanks in advance....

PS: If somebody need I have put a french translation...

belgirl

Hi--When I install this plugin, it says its installed, but when I press 'Done', I get this message:

"There was an error while processing a database query"

I can't do anything else within the admin error without getting fatal errors.  Once I delete the plugin, all is fine again.  I am using the latest version of Coppermine.  Can anyone help?  Thanks!

belgirl

And here is my debugging information for the error:

While executing query "insert into cpg_plugins (name, path,priority)  values ("Display Fields","display_fields",2);" on 0

mySQL error: Duplicate entry 'Display Fields' for key 2

include/functions.inc.php - Line: 249

belgirl

Solved it--for anyone else having this problem, I just went into MYSQL and deleted "display_fields" from the plugins table.  I feel like a dork...oh well...

augustin

There is no option to display/not to display the "Direct Link: Play the file in your standard application"
How do we remove this?

Thanks

Nibbler

You'd need to adjust whatever mod you've applied to get that link there in the first place. It's not a standard feature.

ginz111

Forgive me for being stupid but are there any install instructions on this plug in?  Any help would be appreciated.  I did not see any instructions with the files.

ginz111

sorry ignore my last post.  I figured I was going to have to cut and paste code.  I figured it out.
sorry for the trouble.

gldickens3

Are their any plans to adapt this plugin for Coppermine Version 1.5.x? I am working to port my gallery from 1.4.x to 1.5.x but I need the functionality in this plugin.  Alternatively, is their another way that can I modify the Information Fields that are displayed without this plugin on version 1.5.x?

Thanks,

Gordon

Joachim Müller


hlabout

Paver,

Thanks for this great plugin.
Was looking for a way to de-activate the ad to favorites link for guests.
Working fine on my gallery www.haraldlabout.nl

Added dutch lang file.

Harald