Album Cover: Most Recent Upload

Y060N

Joined: 2012-10-03
Posts: 4
Posted: Sat, 2012-10-06 19:57

I have setup a gallery on my website and I am quite impressed with it. It took me a long time and some tinkering to get it all setup and looking how I wanted, but there is one thing that is bugging me.

I have 3 main albums for my site, where users can upload pictures of different categories inside. I was wondering if there way a way to display the newest upload as the album cover for these 3 main albums.

I saw a module that you can choose your photo that you want on the album cover, but I was hoping for something that could use the DB and select the newest one.

If anyone could help me out, I'd greatly appreciate it.

Thanks to the developers for creating such a great product and sharing it!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2012-10-07 06:00

I guess you could modify the http://codex.gallery2.org/Gallery3:Modules:random_album_highlight to use the most recent item and not a random item.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Y060N

Joined: 2012-10-03
Posts: 4
Posted: Sun, 2012-10-07 15:14

I'm not really a PHP coder, do you think you could give me an idea on how to do that?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2012-10-07 20:23
 
Y060N

Joined: 2012-10-03
Posts: 4
Posted: Sun, 2012-10-07 20:28

Works perfect, thank you very much!