Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Thu May 23, 2019 4:10 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: After the update 0.8.8c, not displayed color in graph thold
PostPosted: Tue Nov 25, 2014 4:54 am 
Offline

Joined: Tue Aug 14, 2012 9:00 am
Posts: 8
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{


Top
 Profile  
 
 Post subject: Re: After the update 0.8.8c, not displayed color in graph th
PostPosted: Wed Nov 26, 2014 1:17 am 
Offline
Cacti User

Joined: Mon May 03, 2010 11:48 am
Posts: 72
Thanks for the solutions !!

:-)

_________________
_________________
Cacti - 0.8.8c
Poller Type - SPINE 0.8.7i
Server Info - Linux 2.6.31.14 - Opensuse 11
Web Server - Apache/2.2.13 PHP 5.3.3
MySQL - 5.1.49 ;RRDTool - 1.3.7 ;SNMP - 5.4.2.1


Top
 Profile  
 
 Post subject: Re: After the update 0.8.8c, not displayed color in graph th
PostPosted: Tue Dec 23, 2014 6:18 am 
Offline

Joined: Thu Mar 21, 2013 1:41 am
Posts: 8
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?


Top
 Profile  
 
 Post subject: Re: After the update 0.8.8c, not displayed color in graph th
PostPosted: Sat Jan 24, 2015 1:08 pm 
Offline

Joined: Sat Jan 24, 2015 1:05 pm
Posts: 1
Hi bros,

Line #3 should be:
Code:
print "<tr id='$row_id' bgcolor='#$current_color'>\n";


Top
 Profile  
 
 Post subject: Re: After the update 0.8.8c, not displayed color in graph th
PostPosted: Thu Sep 17, 2015 10:20 am 
Offline
Cacti User

Joined: Thu Apr 10, 2008 6:52 pm
Posts: 141
The color array support was removed on purpose. I wonder why?

http://svn.cacti.net/viewvc/cacti/branc ... 66&r2=7479


Top
 Profile  
 
 Post subject: Re: After the update 0.8.8c, not displayed color in graph th
PostPosted: Thu Sep 17, 2015 10:26 am 
Offline
Cacti User

Joined: Thu Apr 10, 2008 6:52 pm
Posts: 141
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{


Top
 Profile  
 
 Post subject: Re: After the update 0.8.8c, not displayed color in graph th
PostPosted: Mon Mar 14, 2016 12:30 am 
Offline
User avatar

Joined: Tue Sep 10, 2013 10:45 pm
Posts: 16
:wink: work fine, thx.


Top
 Profile  
 
 Post subject: Re: After the update 0.8.8c, not displayed color in graph th
PostPosted: Tue Oct 30, 2018 1:39 pm 
Offline

Joined: Mon Aug 20, 2018 10:10 am
Posts: 3
It works fine for me Arkasha18.

Thanks man !


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google Adsense [Bot] and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group