Advanced search  


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

Pages: [1]   Go Down

Author Topic: Thumbnail data display (ThumbPlus)  (Read 3881 times)

0 Members and 1 Guest are viewing this topic.


  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1772
Thumbnail data display (ThumbPlus)
« on: November 13, 2018, 04:51:33 pm »

A plugin to manage data that are displayed with a thumbnail.

Updated 2018-11-23: Added 'mtime' attribute feature; version to 1.0

This plugin provides the method to have more control over the data that are displayed with a thumbnail.

There are 13 opportunities to control those data:

If you are not sure where those would be applied, here is the method to get some visual clues:
   In the plugin configuration, enable all control scopes (no add/replace text needs to be entered).
   Be logged in as admin and have debug enabled for admin only.
   You'll now see flags injected on your pages like " ==== global " prior to where that control could be applied.
   NOTE: don't generally leave scopes enabled if you are not applying add/replace text

For each scope, you can enter HTML text with substitution codes, such as:
   <span class="thumb_title thumb_title_dimensions">{pwidth} x {pheight}</span>
That text would add the picture width and height attributes to the thumbnail display.

Attributes to be substituted are enclosed in braces: {keywords}

Availabe substitution attributes are:
   aid - numeric album ID
   album - the album title
   caption - picture description
   ctime - date/time added to gallery
   filename - the name of the stored file
   filepath - path to the file relative to the "albums" folder
   filesize - the size of the file
   hits - the number of times the file has been viewed
   keywords - the keywords associated with the file
   mtime - date/time last viewed
   owner_id - numeric ID of owner (uploader)
   owner - the user name associated with the owner_id
   pheight - height of the image in pixels
   pic_rating - the current average rating (in stars) of the file
   pid - numeric picture ID
   pwidth - width of the image in pixels
   title - picture title
   user1:user2:user3:user4 - custom fields recorded with the image
   votes - the total number of votes/ratings made on the file

Additionally, the config defined names for user(1-4) fields can be used.

Use of 'ctime' or 'mtime' can have an optional date/time format.
   {ctime|%B %Y} would display as Month Year

Some attributes may not be available in all scopes.

With each scope, there is the option to first clear any accumulated thumbnail data display.
May be helpful in some circumstances.
« Last Edit: November 23, 2018, 02:18:54 pm by ron4mac »
Pages: [1]   Go Up

Page created in 0.018 seconds with 19 queries.