Here is a basic file to do the swap... I tested it a few times...
You can either set it to run the times you need to swap back and forth (twice a day I guess) if you are using it as a cron job in your cpanel.
If you want to use it as a scheduled task you'll probably have to add some more code so it tests the time of day and decides if it should run because I don't think you can set it to twice a day from vBulletin itself.
You need to edit the file and set the styleid of your "other style" (since the default style is always id 1)
and also a tempid, I have it set to 99, just make sure you don't have another style already with that same id.
EDIT- You know maybe it won't work from your cpanel anyway now that I think about it since it doesn't contain any of the database login info- it has to be run from vBulletin I think.
You can manually run the task for now to test it... I'll have to think of some way to get it to run twice a day.
|