Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2   Go Down

Author Topic: Filter & Sort File Information Fields on Image Display Page  (Read 47727 times)

0 Members and 1 Guest are viewing this topic.

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Paul Van Rompay
Filter & Sort File Information Fields on Image Display Page
« 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


[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]
« Last Edit: March 03, 2010, 09:55:18 am by Joachim Müller »
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Paul Van Rompay
Re: Filter File Information Fields on Image Display Page
« Reply #1 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.
Logged

pcbill

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #2 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
Logged

Siberiantiger

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 96
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #3 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.
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1608
  • Paul Van Rompay
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #4 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.
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #5 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
Logged

su_ict

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #6 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 ?
Logged

blackRock

  • Translator
  • Coppermine novice
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 20
    • DecoClub
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #7 on: July 28, 2007, 08:48:00 pm »

Great plugin!

Here is the Greek translation  ;)
Logged

nointerest

  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 91
    • Karateschule Okinawa (Bayreuth, Kulmbach, Pegnitz, Auerbach)
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #8 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.
Logged

dotcom22

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #9 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...
Logged

belgirl

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #10 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!
Logged

belgirl

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #11 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
Logged

belgirl

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #12 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...
Logged

augustin

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #13 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
Logged

Nibbler

  • Guest
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #14 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.
Logged

ginz111

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #15 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.
Logged

ginz111

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #16 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.
Logged

gldickens3

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #17 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Logged

hlabout

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
Re: Filter & Sort File Information Fields on Image Display Page
« Reply #19 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
Logged
Pages: [1] 2   Go Up
 

Page created in 0.023 seconds with 22 queries.