Page 1 of 1

Browser sometimes open incorrect interface

Posted: Fri Nov 02, 2012 3:53 am
by DrJohnZoidberg
I have set up my TimeTrex ini file to make the flex interface the default, however it sometimes still opens the standard interface (specifically when opening it up in multiple tabs) unless I tell it to go to timetrex.address/interface/flex

This was confusing the hell out of some of our staff as it they had never seen the other interface before.

I did however find a quick fix that should prevent this from happening. If you only want the flex interface, make a backup of the file

{your_timetrex_folder}/interface/index.php

then edit this file and make sure that this is the only text in that file:

Code: Select all

<?php
   header( 'Location: flex/' ) ;
?>
This will force a redirect to the flex interface every time.

Hope this helps somebody else. Also if anybody sees any issues with this method, please let me know.

Re: Browser sometimes open incorrect interface

Posted: Fri Nov 02, 2012 8:35 am
by shaunw
Please download the latest version of TimeTrex (v5.1), as this is already handled for you.

Re: Browser sometimes open incorrect interface

Posted: Sun Nov 04, 2012 11:36 pm
by DrJohnZoidberg
shaunw wrote:Please download the latest version of TimeTrex (v5.1), as this is already handled for you.
Hi shaunw, thanks for the reply.

I however did upgrade before doing this, it was still happening after the update. I am running v5.1.0.

No worries though as the redirect hack I put in seems to work just fine.

Re: Browser sometimes open incorrect interface

Posted: Mon Nov 05, 2012 9:13 am
by shaunw
If you upgraded from an older version of TimeTrex, you can add:

default_interface = flex

below the [other] section of your timetrex.ini.php file to force the new interface by default, and across upgrades.