forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: MothBox on September 01, 2005, 02:30:49 pm

Title: Different Theme Each Day?
Post by: MothBox 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?
Title: Re: Different Theme Each Day?
Post by: kegobeer on September 01, 2005, 08:03:00 pm
No.  You'll have to write one.
Title: Re: Different Theme Each Day?
Post by: snork13 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