coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Farina on December 22, 2006, 01:07:18 PM

Title: A special home page
Post by: Farina on December 22, 2006, 01:07:18 PM
Hi,
I'm using a coppermine gallery in my site and I'm looking for a "mod" for to change the home page, I'd like to put in home page a image (800x600) because every month I make a contest and so I'd like to put in principal page the winner pic.
thanks
Title: Re: A special home page
Post by: Nibbler on December 22, 2006, 01:28:31 PM
Not a feature request. Either modify your theme or use anycontent.php.
Title: Re: A special home page
Post by: Gizmo on December 22, 2006, 02:08:21 PM
Here's an idea for you to consider. If you want to have only the winner's pic on the home page, you could use cpmFetch (http://forum.coppermine-gallery.net/index.php?board=87.0) to display the image and use Photo of the Day/Week, with Archive (http://forum.coppermine-gallery.net/index.php?topic=36916.0) to archive these winners so that you see past winners. In your case, it would be "Photo of the Month" which is no problem.

I'm not sure if there's a way to get cpmFetch to read what file is the current POTD but you can surely edit the main page file to make this happen. If you need more help, post here and I'll lend a hand since this sounds like an interesting project.
Title: Re: A special home page
Post by: Farina on December 27, 2006, 05:10:52 PM
Thanks to all.
I prefered follow the cpmfetch solution, I remake the index.php using a blank page (with header and footer) and so using the cpmfetch library I developed the home page. The month pic for my gallery is every the last one of a special album and so for me was easy to use a function that views the last pic added.
bye and thanks