Refresh "Main Page Automatically"

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
DanielWalters6
Posts: 12
Joined: Wed May 14, 2008 12:46 pm

Refresh "Main Page Automatically"

Post 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.
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
DanielWalters6
Posts: 12
Joined: Wed May 14, 2008 12:46 pm

Placing a variable within adminmain...

Post 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 :-)
DanielWalters6
Posts: 12
Joined: Wed May 14, 2008 12:46 pm

PERFECT!!!!!!

Post by DanielWalters6 »

Took me just 1minute to implement and works a complete treat!!!!!

THANK YOU
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Re: Refresh "Main Page Automatically"

Post 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!
- Lisa
DanielWalters6
Posts: 12
Joined: Wed May 14, 2008 12:46 pm

Re: Refresh "Main Page Automatically"

Post 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)
snifty
Posts: 40
Joined: Thu Aug 26, 2010 2:21 pm

Re: Refresh "Main Page Automatically"

Post 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!
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: Refresh "Main Page Automatically"

Post by Klemen »

Noted, although I give no promises :roll: :wink:
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply