Browser sometimes open incorrect interface

Topics brought up by the TimeTrex open source community.
Locked
DrJohnZoidberg
Posts: 11
Joined: Fri Sep 14, 2012 12:57 pm

Browser sometimes open incorrect interface

Post 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.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Browser sometimes open incorrect interface

Post by shaunw »

Please download the latest version of TimeTrex (v5.1), as this is already handled for you.
DrJohnZoidberg
Posts: 11
Joined: Fri Sep 14, 2012 12:57 pm

Re: Browser sometimes open incorrect interface

Post 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.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: Browser sometimes open incorrect interface

Post 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.
Locked