Connection time selection

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
#1
Hello KeexyBox-Team and users,

do you know if there is a possibility to change the selectable time durations within the time selection drop down?

I did not find any possibility within the admin section, but I don't want to change blindly and wildly any code.

So please can anyone tell me where to define the available time durations in the list and their actual milliseconds for the counter (until the user is closed out) as well?

Thanks a lot,
Vangerdahast
Reply
#1
Hello KeexyBox-Team and users,

do you know if there is a possibility to change the selectable time durations within the time selection drop down?

I did not find any possibility within the admin section, but I don't want to change blindly and wildly any code.

So please can anyone tell me where to define the available time durations in the list and their actual milliseconds for the counter (until the user is closed out) as well?

Thanks a lot,
Vangerdahast
Reply
#2
Hello,

It is not possible to to it from web admin interface. 
You can change the list by editing this file : 

Code:
/opt/keexybox/keexyapp/src/Controller/Component/ConnectionDurationComponent.php

You can put comment // before durations you do not want or add some in the $durations array :

PHP Code:
class ConnectionDurationComponent extends Component
{
public function 
GetDurationList()
{
$durations = [
'15' => __('15 minutes'),
'30' => __('30 minutes'),
'60' => __('1 hour'),
'120' => __('2 hours'),
'240' => __('4 hours'),
'480' => __('8 hours'),
'720' => __('12 hours'),
'1440' => __('1 day'),
'10080' => __('1 week'),
'20160' => __('2 weeks'),
'44640' => __('1 month'),
];
return 
$durations;

}


Reply
#2
Hello,

It is not possible to to it from web admin interface. 
You can change the list by editing this file : 

Code:
/opt/keexybox/keexyapp/src/Controller/Component/ConnectionDurationComponent.php

You can put comment // before durations you do not want or add some in the $durations array :

PHP Code:
class ConnectionDurationComponent extends Component
{
public function 
GetDurationList()
{
$durations = [
'15' => __('15 minutes'),
'30' => __('30 minutes'),
'60' => __('1 hour'),
'120' => __('2 hours'),
'240' => __('4 hours'),
'480' => __('8 hours'),
'720' => __('12 hours'),
'1440' => __('1 day'),
'10080' => __('1 week'),
'20160' => __('2 weeks'),
'44640' => __('1 month'),
];
return 
$durations;

}


Reply
#3
Thanks Paul,

I will try as soon as possible and report back here :-)
Reply
#3
Thanks Paul,

I will try as soon as possible and report back here :-)
Reply
#4
Yes, this was the needed solution, thanks a lot Paul!
   
Reply
#4
Yes, this was the needed solution, thanks a lot Paul!
   
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)