This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Refresh comments time interval
#1

Is there a way to refresh the comments in a time period for example 60seconds?

Thank you
Reply
#2

Are you talking about the Manage -> Comments page?

Have you completed the interview?
Reply
#3

(13-Aug-2013, 05:59 PM)Steven Wrote:  Are you talking about the Manage -> Comments page?
exactly...

I want to have an auto update about the comments page.
Reply
#4

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 } ?>

And add this just below it:

PHP Code:
<?php if ($_GET['page'] == "manage_comments") { ?>
<meta http-equiv="refresh" content="60">
<?php } ?>

Have you completed the interview?
Reply
#5

(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 } ?>

And add this just below it:

PHP Code:
<?php if ($_GET['page'] == "manage_comments") { ?>
<meta http-equiv="refresh" content="60">
<?php } ?>
sorry, you missunderstood me... i dont want to refresh the comments page but only comments(posts) in the example.php
is there any way to do it?
Reply
#6

No that's not possible.

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
23-Nov-2022, 11:01 AM
Last Post by Steven
10-Jan-2017, 12:56 PM
Last Post by Steven
17-Nov-2016, 09:32 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)