due_date_warning_levels

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
amphetamine
Posts: 113
Joined: 05 Jun 2019, 00:17

due_date_warning_levels

Post by amphetamine »

* - Array keys 1 and 2 offer two levels of "Due soon": orange and green.
* By default, only the first one is set, to 7 days.
∨ no problem with that

Code: Select all

$g_due_date_warning_levels = array(
	0,
	7 * SECONDS_PER_DAY,
);
how to add array key 2 to show the green light?
∨ not working

Code: Select all

$g_due_date_warning_levels = array(
	0,
	7 * SECONDS_PER_DAY,
	14,
);
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: due_date_warning_levels

Post by atrol »

amphetamine wrote: 20 Mar 2020, 14:04

Code: Select all

$g_due_date_warning_levels = array(
	0,
	7 * SECONDS_PER_DAY,
	14,
);
Didn't try, but this should work

Code: Select all

$g_due_date_warning_levels = array(
	0,
	7 * SECONDS_PER_DAY,
	14 * SECONDS_PER_DAY,
);
Please use Search before posting and read the Manual
amphetamine
Posts: 113
Joined: 05 Jun 2019, 00:17

Re: due_date_warning_levels

Post by amphetamine »

Thank you! :D
amphetamine
Posts: 113
Joined: 05 Jun 2019, 00:17

Re: due_date_warning_levels

Post by amphetamine »

how to change green color to yellow?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: due_date_warning_levels

Post by atrol »

The color is defined in css/default.css

Code: Select all

td.due-2             { background-color: green; color: #ffffff; font-weight: bold; }
You can change it at this place (don't forget to change it agian after upgrades), or use option $g_css_include_file to create your own css file, or write a plugin that changes the style via JavaScript.

After changing the css-file you might have to clear your browser cache to see the change.
Please use Search before posting and read the Manual
Post Reply