Wiki source for MetaRefresh

Show raw source

=====Meta Refresh Hack=====

Here's a quick hack that causes the HomePage to refresh automatically every 60 seconds. Open your actions/header.php file and add these lines anywhere in the <HEAD> block:

<?php if (($this->GetPageTag() == 'HomePage') && ($this->GetMethod() == 'show')) { ?>
<meta http-equiv="Refresh" content="60" />
<meta http-equiv="Expires" content="0" />
<?php } ?>

You can change the refresh time (in seconds) by changing the Refresh META tag.

If you find this action useful, post a comment and let me know! Also, feel free to comment with requests for feature enhancements. --JasonHuebel

Valid XHTML :: Valid CSS: :: Powered by WikkaWiki