I’m wanting to make my (mysite.com/index.php) page refresh after so amount of time (1 minute). I placed the code in, but now my whole site refreshes after one minute has gone by. Is there a way to just have the main page refresh?
Try the following:
<?php if(MainController::$activeModule == 'FRONTPAGE')
{ ?>
// Your refresh code
<?php } ?>
Yeah that should stop the header and footer from refreshing. Nice idea.
Thank you Tom, it is now working. If anyone would like the refresh code, here it is
<meta http-equiv="refresh" content="60" >
Just change the 60 to the time you want it to refresh. (Ex. 60= 1 minute)
Do you mean like my index page?
I use jquery and place the code in between a named div, so i can refresh any part of my site that is in the specified div.
I only have it on the main page because I want the flight board (the Eye Candy one) to refresh every minute, but didn’t find an answer from your last post in that thread, so I just did that code. If you have the code to have just that flight board to refresh after so long, instead of the whole page, I’m willing to replace what I have.