The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Time Based Page Redirection
We have a contact us page with online/open times and other information.
We would like to also have a page that is somewhat different from the online page lets call it offline page. How would one use a php statement based on server time to have it automatically switch between pages? |
#2
|
||||
|
||||
try this:
PHP Code:
so, an example of a page would be: PHP Code:
|
#3
|
||||
|
||||
We want the time to switch between say contacton.html and contactoff.html
|
#4
|
||||
|
||||
what times do you want it to display "contactoff.html"?
then ill just give u the code. |
#5
|
||||
|
||||
http://www.realwebhost.net.contact.php = online
12:00 pm to 6:00 pm http://www.realwebhost.net/contact1.php = offline 6:00pm to 12:00 pm has to be hours and minutes not just hours are there will a hour delay |
#6
|
||||
|
||||
This is what we have in contact.php
PHP Code:
PHP Code:
But it does not work. |
#7
|
||||
|
||||
try this:
contact.php PHP Code:
PHP Code:
|
#8
|
||||
|
||||
Thank you very much, we will try it. We last nite when what we had did not work went with 2 files and 2 perl scripts and run them from cron.But we will try this.
Thank You for your effort. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|