Log in

View Full Version : Change banner based on time


thenashy
09-23-2013, 07:28 PM
Hi guys,

This might be something really simple using JS, but when it comes to web code, I'm a complete noob.

I'm wonderinf if it is possible to change the banner image on vBulletin based on what time it is in the day?

Any help would be greatly appreciated.

ozzy47
09-23-2013, 07:37 PM
What banner are you referring to?

thenashy
09-23-2013, 08:02 PM
The main banner at the top of the forum. Or even just the logo. I can adapt whatever code I need, but just don't have a clue how to do it.

ozzy47
09-23-2013, 08:06 PM
This may accomplish what you want, https://vborg.vbsupport.ru/showthread.php?t=286101

thenashy
09-23-2013, 08:48 PM
Looks promising, but it seems to only be based on a daily banner, where I would like 3 a day.

ozzy47
09-23-2013, 08:57 PM
Maybe this one, https://vborg.vbsupport.ru/showthread.php?t=298035

This one will change the logo on page refresh, https://vborg.vbsupport.ru/showthread.php?t=228130

thenashy
09-23-2013, 09:36 PM
They also don't seem to be time based.

ozzy47
09-23-2013, 09:39 PM
Then you may have to wait till one of those developers adds support for that, as I don't think their is any others out there that are already compatible.

thenashy
09-23-2013, 09:47 PM
Based on what I'm reading, someone who knows JS would know a code to do this easily, and then I would do template edits to add it to VB.

ozzy47
09-23-2013, 09:52 PM
You could try posting your request in the Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112) forum.

If you don't get no one to do it in there, you could try the Requests for Paid Services (https://vborg.vbsupport.ru/forumdisplay.php?f=30) forum.