due_date_warning_levels

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
amphetamine
Posts: 73
Joined: Jun 04, 2019 7:17 pm

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: 7759
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: due_date_warning_levels

Post by atrol »

amphetamine wrote:
Mar 20, 2020 9:04 am

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: 73
Joined: Jun 04, 2019 7:17 pm

Re: due_date_warning_levels

Post by amphetamine »

Thank you! :D

amphetamine
Posts: 73
Joined: Jun 04, 2019 7:17 pm

Re: due_date_warning_levels

Post by amphetamine »

how to change green color to yellow?

atrol
Site Admin
Posts: 7759
Joined: Mar 26, 2008 4:37 pm
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