Advanced search  

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

Pages: [1]   Go Down

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

0 Members and 1 Guest are viewing this topic.

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
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

Quote
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:
GLOBAL, FAVPICS, LASTALB, LASTCOM, LASTCOMBY, LASTHITS, LASTUP, LASTUPBY, RANDOM, REGULAR, SEARCH, TOPN, TOPRATED

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
See http://php.net/manual/en/function.strftime.php

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 »
Logged

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 227
  • webstar
Re: Thumbnail data display (ThumbPlus)
« Reply #1 on: May 19, 2022, 12:39:21 pm »

Hi. Can I get two more attributes added to this plugin please?

1: Album Description
2. Total amount of pictures/files

Thanks!
Logged

Hanna.

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 227
  • webstar
ThumbPlus - Can we get some new attributes to this plugin please?
« Reply #2 on: May 23, 2022, 12:48:27 am »

ThumbPlus - Can we get some new attributes to this plugin please?

1. Album description
2. Total amount of files in album
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.