coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: guygar on April 06, 2011, 01:36:16 PM

Title: Recent Pictures List
Post by: guygar on April 06, 2011, 01:36:16 PM
Hello,

I was wondering how to modify coppermine 1.5.12 so the 'last additions' lists all the images uploaded in chronological order.

It would list 20 thumbnails per page and a page count at the bottom, like you see in http://www.usefilm.com/recent/ (http://www.usefilm.com/recent/) or http://www.photosig.com/go/photos (http://www.photosig.com/go/photos).

Do I need to modify the coppermine code or is this feature available and I am just not noticing it?

Thanks!
Title: Re: Recent Pictures List
Post by: Αndré on April 06, 2011, 01:42:03 PM
Quote from: guygar on April 06, 2011, 01:36:16 PM
modify coppermine 1.5.12 so the 'last additions' lists all the images uploaded in chronological order.
That's how the 'lastup' meta album works, so you don't have to modify anything. Please post a link to your gallery if you need further support.
Title: Re: Recent Pictures List
Post by: guygar on April 06, 2011, 01:45:02 PM
sorry i forgot to include my site address: www.coppermine.guygar.com (http://www.coppermine.guygar.com)

thank you for your response but it is not working that way!  ???

It shows the most recent 8 thumbnails on the main page but has no means of advancing through the full image listing.

Hope I am being clear, please advise.

Thanks.
Title: Re: Recent Pictures List
Post by: Αndré on April 06, 2011, 01:46:16 PM
You have to use this link: http://www.coppermine.guygar.com/thumbnails.php?album=lastup
Title: Re: Recent Pictures List
Post by: guygar on April 06, 2011, 01:50:21 PM
how many thumbnails will be shown per page using this please?

Title: Re: Recent Pictures List
Post by: Αndré on April 06, 2011, 01:51:47 PM
As much as you've set in the config. The settings for 'regular' albums also apply to meta albums like 'lastup'.
Title: Re: Recent Pictures List
Post by: guygar on April 06, 2011, 01:57:45 PM
That works! Thank you  :)

But going back to the original issue (I am a bit confused)... How do I enable such behaviour on the main page (homepage).

i.e. instead of static 12 thumbnails .. implement 'last uploads' instead?

Thank you again.

Title: Re: Recent Pictures List
Post by: guygar on April 06, 2011, 02:06:55 PM
Ok I got it!  ;D

Just changed the homepage url on the general settings!

Thank you so much!
Title: Re: Recent Pictures List
Post by: Αndré on April 06, 2011, 02:13:58 PM
Additionally, you should add a rewrite rule like
RewriteEngine on
RewriteBase /
RewriteRule ^$ thumbnails.php?album=lastup [NC]

so first time visitors will see the same page.
Title: Re: Recent Pictures List
Post by: guygar on April 06, 2011, 02:15:13 PM
Thank you, you are so right! I have failed.

Please advise how to rewrite this rule please?
Title: Re: Recent Pictures List
Post by: Αndré on April 06, 2011, 02:25:58 PM
Quote from: guygar on April 06, 2011, 02:15:13 PM
Please advise how to rewrite this rule please?
It should work as is. If you're unfamiliar with rewrite rules, please use Google to get more information.
Title: Re: Recent Pictures List
Post by: guygar on April 06, 2011, 02:29:53 PM
Thank you for not telling all.

I created a .htaccess file in the coppermine root and it seems to work.  :)