13-Aug-2013, 03:56 PM
Is there a way to refresh the comments in a time period for example 60seconds?
Thank you
Thank you
<?php if ($_GET['page'] == "report_viewers" && cmtx_setting('viewers_refresh_enabled')) { ?>
<meta http-equiv="refresh" content="<?php echo cmtx_setting('viewers_refresh_time'); ?>">
<?php } ?>
<?php if ($_GET['page'] == "manage_comments") { ?>
<meta http-equiv="refresh" content="60">
<?php } ?>
(14-Aug-2013, 12:19 PM)Steven Wrote: You can add a bit of code to refresh the page, similar to the 'Reports -> Viewers' page.
Find the following code in /comments/admin/index.php
PHP Code:<?php if ($_GET['page'] == "report_viewers" && cmtx_setting('viewers_refresh_enabled')) { ?>
<meta http-equiv="refresh" content="<?php echo cmtx_setting('viewers_refresh_time'); ?>">
<?php } ?>
<?php if ($_GET['page'] == "manage_comments") { ?>
<meta http-equiv="refresh" content="60">
<?php } ?>