jwilh Posted November 4, 2006 Share Posted November 4, 2006 I am looking for a tutorial or some help making a script to change a website template monthly without having to worry about it. I did one awhile back for weekly but dont remember how or where i got it. Any suggestions would be great!!! Link to comment https://forums.phpfreaks.com/topic/26124-monthly-theme-changer/ Share on other sites More sharing options...
Stooney Posted November 4, 2006 Share Posted November 4, 2006 well you could have a small mysql tables with the 12 months and a path to a template for each month. then have your website load the template pertaining to which month it is. Link to comment https://forums.phpfreaks.com/topic/26124-monthly-theme-changer/#findComment-119485 Share on other sites More sharing options...
jwilh Posted November 4, 2006 Author Share Posted November 4, 2006 Well that all sounds nice and I wouldnt have a prob doing it that way except I don't know how. I need someone to point me in the right direction on where to learn how to do that. I thought it would be easy until i started trying to do it Link to comment https://forums.phpfreaks.com/topic/26124-monthly-theme-changer/#findComment-119527 Share on other sites More sharing options...
joshi_v Posted November 4, 2006 Share Posted November 4, 2006 Well as chrisdburns told you could use mysql for that.Just store all the template names along with month in a table. before loading the form where you want to place the template, query the mysql with current month.it will gives you the template name for that monthThen include that template in your form.Simple. Link to comment https://forums.phpfreaks.com/topic/26124-monthly-theme-changer/#findComment-119529 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.