Page 1 of 1

Refresh "Main Page Automatically"

Posted: Wed May 14, 2008 1:04 pm
by DanielWalters6
Hi, Sorry cannot provide public url's to the files that are normally required. - My solution is hosted on an intranet, which as far as I'm aware cannot be accessed from the www.

If technical details about the server ARE required, I can get and respost in the next few days.

I am running version: 0.94.1 @ October 25, 2007

What terms did you try when SEARCHING for a solution:
Google; hesk helpdesk refresh
http://www.tips-tricks.com/automa.asp

Write your message below:

I tried to edit some of the main html to automatically refresh the page, by placing a time within the head meta tags.
http://www.tips-tricks.com/automa.asp

However I found that this refreshes all the pages (as it should, because it's loaded on all pages!)

Is anyone aware of a solution I can implement which will only refresh the page if it's on the MAIN page - ie displaying a list of incoming support requests.

Thank you.

Posted: Wed May 14, 2008 1:36 pm
by Klemen
You can try something like this:

1. in admin_main.php add

Code: Select all

define('MAIN_PAGE',1);
just below

Code: Select all

define('IN_SCRIPT',1);
2. in inc/header.inc.php add

Code: Select all

<?php
if (defined('MAIN_PAGE'))
{
?>
<meta http-equiv="refresh" content="30">
<?php
}
?>
just below

Code: Select all

<head>
Haven't tested it though.

Placing a variable within adminmain...

Posted: Wed May 14, 2008 1:47 pm
by DanielWalters6
I haven't thought about placing a variable, and then testing it!

Good thinking!

I will let you know if/when it works :-)

PERFECT!!!!!!

Posted: Thu May 15, 2008 12:23 pm
by DanielWalters6
Took me just 1minute to implement and works a complete treat!!!!!

THANK YOU

Re: Refresh "Main Page Automatically"

Posted: Thu Oct 13, 2011 1:38 pm
by Lisaweb
My users were begging for this! Found it searching here and it works great!

My only question - will auto-refreshing the page prevent users from being logged out when they are inactive? If so, is there any easy work-around to that?

Thanks much!

Re: Refresh "Main Page Automatically"

Posted: Thu Oct 13, 2011 2:53 pm
by DanielWalters6
Yes. I assume it would stop the auto logout proceedure as the browser is refreshing the page. (there wouldn't be a way for the code to know if this request was automatic or user driven)

Re: Refresh "Main Page Automatically"

Posted: Wed Jan 21, 2015 12:41 pm
by snifty
Old thread but my colleagues love it and it works like a charm.
So I don't have to refresh my browser manually every minute.

May be it can be implementet in the upcoming Version?
Either to disable or set the content-variable in the admin settings.

That would be great!
Thank you!

Re: Refresh "Main Page Automatically"

Posted: Thu Jan 22, 2015 9:52 am
by Klemen
Noted, although I give no promises :roll: :wink: