Auto refresh every 15 sec (General)

by Guest @, Tuesday, August 09, 2011, 18:53 (4663 days ago)

Hi, I would like to refresh the front page in "real time".

Is there any good AJAX way to display new message?

I could use a meta refresh, right? Say every 15 seconds the front page gets refreshed. (if it is not too hard on the server...:D )

Auto refresh every 15 sec

by arye, Wednesday, August 10, 2011, 07:33 (4662 days ago) @ Guest

yes,

<META http-equiv=REFRESH content=900>

Put it on main.tpl
But it's not just the main page:-(

Auto refresh every 15 sec

by Guest, Wednesday, August 10, 2011, 14:49 (4662 days ago) @ arye

Thanks. It shouldn't be too hard to put this inside a <?php if block so that only the front page refreshes.

It would be very annoying for the users if threads were refreshed while they were reading.

If anyone knows how to implement AJAX, then even better :-)

Auto refresh every 15 sec

by arye, Thursday, August 11, 2011, 17:30 (4661 days ago) @ Guest

also try this:

{if $mode=='index'}

RSS Feed of thread