View Full Version : Style change at given time
NuclioN
02-15-2004, 02:51 PM
Maybe i've overlooked a similar request but is it possible to make an automatic stylechange at a certain time a day?
Natch
02-15-2004, 08:27 PM
Maybe i've overlooked a similar request but is it possible to make an automatic stylechange at a certain time a day?
Only by creating a PHP script to make the Style change (via an SQL query) then run that script via a cron job.
assassingod
02-15-2004, 08:29 PM
For every user? If so, it can be quite simple
NuclioN
02-15-2004, 08:36 PM
Yes for every user. :) They now are having the choice of two styles...one dark and one light. They can't choose wich they want to have as the default style so the idea came up to swich them on a specific time if possible.
inciarco
01-27-2008, 01:26 PM
Yerterday I also had this same need; I have two Styles and need to switch them in the Default Style of the vBulletin Options (vBulletin Options -> Style & Language Settings -> Default Style), (for all Visitiors), every x Hour (at x1 hour of night change to Style 1 and at x2 hour of day change to Style 2).
I know it requires two Cron PHP Files (one to each change of Style), and to Set Two Scheduled Tasks for each Change of Style at a determinate hour of the day, each day.
Has anybody developed this Code??
If so, could you please Upload the PHP File to have it as reference to Custom it for my need?? :confused:
Or perhaps Copy/Paste the Code of the PHP File for me to Create it?? :confused:
I appreciate that Very Much!! :up:
My Best Regards!! ;)
:)
--------------- Added 1201459095 at 1201459095 ---------------
I Share With You the Link to a Thread that Solves This Need!! :up:
Assign Style based on Viewer's Time of Day (https://vborg.vbsupport.ru/showthread.php?t=121392)
Inside the Winzip File there's a 3.5 and a 3.6 Version of the Mod.
I tried it on vB 3.6.7 PL1 and works OK!! :up:
My Best Regards!! ;)
:)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.