After the update 0.8.8c, not displayed color in graph thold
Moderators: Developers, Moderators
After the update 0.8.8c, not displayed color in graph thold
After the update 0.8.8c, not displayed color in graph thold
cacti/plugins/thold/thold_graph.php
and
cacti/plugins/thold/listthold.php
need patch file lib/html_utility.php
in function form_alternate_row_color
if (strlen ($row_id)) {
// print "< tr class='$class' id='$row_id'>\n“;
print "< tr id='$row_id' bgcolor='#$current_color'>\n»;
}else{
cacti/plugins/thold/thold_graph.php
and
cacti/plugins/thold/listthold.php
need patch file lib/html_utility.php
in function form_alternate_row_color
if (strlen ($row_id)) {
// print "< tr class='$class' id='$row_id'>\n“;
print "< tr id='$row_id' bgcolor='#$current_color'>\n»;
}else{
-
- Cacti User
- Posts: 73
- Joined: Mon May 03, 2010 11:48 am
Re: After the update 0.8.8c, not displayed color in graph th
Thanks for the solutions !!
_________________
Cacti - 1.2.14
Poller Type - SPINE 1.2.14
Devices 3,892
Graphs 21,483
Cacti - 1.2.14
Poller Type - SPINE 1.2.14
Devices 3,892
Graphs 21,483
-
- Posts: 8
- Joined: Thu Mar 21, 2013 1:41 am
Re: After the update 0.8.8c, not displayed color in graph th
I am having the same issue but the fix isn't working for me. Specifically the 3rd line prevents the system from showing anything. Has anyone else gotten this to work?
-
- Cacti User
- Posts: 141
- Joined: Thu Apr 10, 2008 6:52 pm
Re: After the update 0.8.8c, not displayed color in graph th
The color array support was removed on purpose. I wonder why?
http://svn.cacti.net/viewvc/cacti/branc ... 66&r2=7479
http://svn.cacti.net/viewvc/cacti/branc ... 66&r2=7479
-
- Cacti User
- Posts: 141
- Joined: Thu Apr 10, 2008 6:52 pm
Re: After the update 0.8.8c, not displayed color in graph th
Here is my solution using inline CSS instead of the "bgcolor" attribute which is not supported in HTML 5.
if (strlen($row_id)) {
print "<tr class='$class' id='$row_id' style='background-color: #$current_color;'>\n";
}else{
if (strlen($row_id)) {
print "<tr class='$class' id='$row_id' style='background-color: #$current_color;'>\n";
}else{
- blackstrip
- Posts: 16
- Joined: Tue Sep 10, 2013 10:45 pm
Re: After the update 0.8.8c, not displayed color in graph th
work fine, thx.
-
- Posts: 3
- Joined: Mon Aug 20, 2018 10:10 am
Re: After the update 0.8.8c, not displayed color in graph th
It works fine for me Arkasha18.
Thanks man !
Thanks man !
Who is online
Users browsing this forum: No registered users and 3 guests