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: Different Theme Each Day?  (Read 2895 times)

0 Members and 1 Guest are viewing this topic.

MothBox

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 31
  • www.mothbox.co.uk
    • MothBox
Different Theme Each Day?
« on: September 01, 2005, 02:30:49 pm »

I want to set up my gallery so that it displays a different theme each day for everyone. Guests and members.

But, I need to be able to choose the order - not random - so that I can set the forum and other pages to be on the same theme for that day.

Is there a MOD which can do this?

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Different Theme Each Day?
« Reply #1 on: September 01, 2005, 08:03:00 pm »

No.  You'll have to write one.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

snork13

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 260
  • Internet! Is that thing still around?
    • Gallery
Re: Different Theme Each Day?
« Reply #2 on: September 05, 2005, 05:54:40 pm »

Code: [Select]
<script type="text/javascript"><!--

var daycontent=new Array()
daycontent[0]="sunday.htm";
daycontent[1]="monday.htm";
daycontent[2]="tuesday.htm";
daycontent[3]="wednesday.htm";
daycontent[4]="thursday.htm";
daycontent[5]="friday.htm";
daycontent[6]="saturday.htm";

var today=new Date().getDay();

location.replace(daycontent[today]);

//--></script>


this script seems to be working for me, throw it in only one theme, make that theme the default and change the daycontent to equal your themes.

-snork
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.