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: Favorites -- listing of images  (Read 2401 times)

0 Members and 1 Guest are viewing this topic.

heavensportal

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 259
    • The Fantasy Attic
Favorites -- listing of images
« on: January 16, 2013, 06:46:06 am »

We use this feature immensely at our gallery and several have asked if:

1. Email notifications can be sent when the "faved" owner uploads a new image

2. If there is a way to set the images to show ascending (newest added first) order.

Thanks for the gallery and improvements and help.

gallery: 1.5.22
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Favorites -- listing of images
« Reply #1 on: January 16, 2013, 04:24:54 pm »

Email notifications can be sent when the "faved" owner uploads a new image
This isn't possible out of the box. However, it should be possible to add this as a plugin or mod. Side note: unfortunately Coppermine stores the users' favorite pictures in a way it's not possible to get the values with a single database query. Instead, you have to decode the user strings and then again query the database.


If there is a way to set the images to show ascending (newest added first) order.
Open include/functions.inc.php, find
Code: [Select]
ORDER BY pid ASCand replace with
Code: [Select]
ORDER BY pid DESC
find
Code: [Select]
            AND pid IN ($favs)
            AND pid < $pid";
and replace with
Code: [Select]
            AND pid IN ($favs)
            AND pid > $pid";
Logged

heavensportal

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 259
    • The Fantasy Attic
Re: Favorites -- listing of images
« Reply #2 on: January 16, 2013, 06:39:35 pm »

Thanks for setting order part and I totally understand about the email part...maybe at some point in time may be added to a future update, if possible.

But for now maybe there is a plugin for it so will go looking.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.