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
-
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?
-
No. You'll have to write one.
-
<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