• Home
  • Shell
    • Emacs
    • Perl
    • screen
    • sed
  • Ubuntu
    • VNC
  • Web Development
    • Javascript
    • Joomla
    • MySQL
    • osTicket
  • Windows
    • Gimp

osTicket> Refresh ticket page every N seconds (1.6RC5)

Aug07
2012
Written by Scott Rowley

Just a simple one today to show you how to get the ticket page to automatically refresh itself every n seconds:

scp/tickets.php
Insert the following just after the requires at the top of the file:

define('MAIN_PAGE',1);
if(defined('MAIN_PAGE') && !isset($_GET['id']) && !isset($_GET['status']) && !isset($_GET['a'])) {
echo "<meta http-equiv='refresh' content='60'>";
}

*60 seconds is my recommendation, you can of course change this number as desired.

Posted in osTicket, Web Development - Tagged content, meta, osTicket, page, refresh, reload, seconds, ticket
« Web Dev> pChart WriteValues text color
» osTicket> Show external ticket ID in browser title.

Corrections? Questions? Comments?

Find an error?
Everything work out great for you?
Have some feedback?
Like to see something added to the article?

PLEASE leave us a comment after the article and let us know how we are doing, or if something needs corrected, improved or clarified.

Thank you!
- The Management

Advertisement

Sudo Bash
By Geeks - For Geeks

Back to Top