Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: A special home page  (Read 3111 times)

0 Members and 1 Guest are viewing this topic.

Farina

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
A special home page
« 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
« Last Edit: December 28, 2006, 09:23:20 am by GauGau »
Logged

Nibbler

  • Guest
Re: A special home page
« Reply #1 on: December 22, 2006, 01:28:31 pm »

Not a feature request. Either modify your theme or use anycontent.php.
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: A special home page
« Reply #2 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 to display the image and use Photo of the Day/Week, with Archive 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.
Logged
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Farina

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: A special home page
« Reply #3 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
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.