Wikka : MetaRefresh

HomePage :: Categories :: Index :: Changes :: Comments :: Documentation :: Blog :: Login/Register

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


CategoryUserContributions
There are no comments on this page. [Add comment]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1049 seconds