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]   Go Down

Author Topic: Custom album image  (Read 1475 times)

0 Members and 1 Guest are viewing this topic.

FrA1l3

  • Translator
  • Coppermine regular visitor
  • **
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 50
Custom album image
« on: September 18, 2018, 05:54:56 pm »

Hello,

Would it be possible to add an album image that is not a file from the album itself?

Let me explain, I have a gallery with world banknotes, I would like to put as an album image the flag of each country, but evidently when entering I only want the coins and bills to appear, not the file as such of the flag.
Right now the only option available is to change the generic file thumb_nopic.png but it applies to all.

If you have good to take it into account please, I appreciate it.
thank you!
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15587
Re: Custom album image
« Reply #1 on: September 25, 2018, 05:01:43 pm »

That's possible if the picture resides in another Coppermine album with one of the following workarounds:

1. With a tool like phpMyAdmin, open the "albums" table, search for the correct album and set "thumb" to the picture ID of your desired album picture

2. Use the album keyword feature to temporary add the desired picture to the album, set it as album picture and then remove the album keyword.
How-to:
- In Coppermine, open the album properties and set a album keyword, let's say "tmpkeyword"
- Edit the file information of the desired picture and add the same keyword as above to that picture (i.e. tmpkeyword)
- Now, the picture should be part of the album and you can set it as album picture
- To remove the album picture from the album, just remove the temporary keyword from the album, the picture or both.
Logged

FrA1l3

  • Translator
  • Coppermine regular visitor
  • **
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 50
Re: Custom album image
« Reply #2 on: November 12, 2018, 05:48:33 pm »

Sorry for the late reply. Thank you André, that's nice solution for me  :D

best regards!
Logged
Pages: [1]   Go Up
 

Page created in 0.013 seconds with 20 queries.