forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: Paver on February 03, 2006, 09:05:28 pm

Title: Filter & Sort File Information Fields on Image Display Page
Post by: Paver on February 03, 2006, 09:05:28 pm
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 (http://forum.coppermine-gallery.net/index.php?topic=27407.msg179215#msg179215)


[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]
Title: Re: Filter File Information Fields on Image Display Page
Post by: Paver on June 18, 2006, 02:54:26 pm
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.
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: pcbill on July 03, 2006, 07:01:39 am
Is it possible for one to add fields to this that are not there?
Such as City, State, Country, etc.

Bill
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: Siberiantiger on August 04, 2006, 08:05:13 pm
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.
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: Paver on November 01, 2006, 04:56:06 am
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:
Code: [Select]
if ($plugin_displayfields_params['plugin_displayfields_adminshowall'] == '1') { and replace it with this line:
Code: [Select]
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.
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: Hein Traag on November 15, 2006, 11:38:25 am
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
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: su_ict on May 02, 2007, 12:41:49 pm
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 ?
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: blackRock on July 28, 2007, 08:48:00 pm
Great plugin!

Here is the Greek translation  ;)
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: nointerest on January 10, 2008, 10:55:47 pm
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.
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: dotcom22 on April 27, 2008, 12:49:26 am
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...
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: belgirl on July 26, 2008, 05:54:28 pm
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!
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: belgirl on July 26, 2008, 06:04:24 pm
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
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: belgirl on July 26, 2008, 06:07:10 pm
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...
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: augustin on November 03, 2008, 06:34:37 pm
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
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: Nibbler on November 03, 2008, 07:38:39 pm
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.
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: ginz111 on January 22, 2010, 01:58:23 am
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.
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: ginz111 on January 22, 2010, 02:15:21 am
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.
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: gldickens3 on July 03, 2010, 03:26:18 pm
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
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: Joachim Müller on July 05, 2010, 08:03:11 am
Don't ask for other versions (http://forum.coppermine-gallery.net/index.php/topic,24540.0.html)
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: hlabout on September 07, 2010, 04:33:54 pm
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
Title: Re: Filter & Sort File Information Fields on Image Display Page
Post by: shomam on May 08, 2011, 07:12:12 am
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! http://methoo.com (http://methoo.com)