Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[INFO] Black graphs look better than white! :)
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's

Interface skinning?
YES!
80%
 80%  [ 74 ]
No. You're high.
19%
 19%  [ 18 ]
Total Votes : 92

Author Message
Guest






PostPosted: Sun Feb 08, 2004 9:43 am    Post subject: Reply with quote

raX wrote:
I suppose I could create a new tab under "Cacti Settings" that allowed users to specify various global graph options such as color, background image, etc.

What do you think?


I was thinking the skinning functionality would be similar to phpBB, vBulletin, etc, although not nearly that configurable. This would be more for the public/guest account, although I would imagine most users just use the admin.
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2325
Location: Sophia-Antipolis, France

PostPosted: Mon Feb 09, 2004 2:12 am    Post subject: Reply with quote

raX wrote:
I suppose I could create a new tab under "Cacti Settings" that allowed users to specify various global graph options such as color, background image, etc.

What do you think?

Hi Ian

a "user interface" tab would be great. Translation of the entire UI in different languages (I can translate it into french) would be awesome too

Regards,

Frédéric Mangeant
Back to top
hednod



Joined: 20 Jan 2004
Posts: 17

PostPosted: Thu Mar 25, 2004 12:14 am    Post subject: RE: configurable cacti skin/styles (edited) Reply with quote

I vote for having the entire interface, not just the skins, be themable in some manner or another.

I do not care for white backgrounds and so I had to painstakingly
edit many of the php files and stylesheets that came with cacti
in order to make the background color for everything back.

I have not finnished the proccess in it's entirely but most of it is
now completely differant looking, color-wise.

You can take a peak at http://www.probsd.net/noc/
login guest / pw guest

I don't look forward to re-editing all of these files again
every time a new version of cacti comes out, so having
the entire web interface for cacti be skin/themeable
in some way would be highly desirable.


Last edited by hednod on Thu May 13, 2004 5:47 pm; edited 2 times in total
Back to top
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Thu Mar 25, 2004 8:45 am    Post subject: skins Reply with quote

Check out http://phpsysinfo.sourceforge.net/

It is a php based system info program. It is skinable via a pulldown menu which also sets a cookie that remembers the selected skin.

I suck at php coding....well, pretty much any kind of coding, but from looking at the source, it calls the "skins" from a templates directory which contains subdirectories for each skin which then have the images, stylesheet and .tpl files for that skin.

The black backgound is nice in the browser, but not for printing or blackberry
Back to top
Morgan
Cacti User


Joined: 25 Feb 2004
Posts: 187

PostPosted: Thu Mar 25, 2004 10:32 am    Post subject: Re: Graph Skinning Reply with quote

RandomWelshBloke wrote:
Having a global graph option in Cacti Settings that can allow graphs to be skinned is a great idea. By default all graphs would confirn to this, however, it would be cool, if possible, to over-ride this in the graph template section for specific instances.

As well as skinning font / colour, a link to a backgroud image would be great (especialy to give clients that special feeling)

As an aside, adding functionality like this to make it simple for users to contribute (and show off) can only help the community spirit for this exellent app.


this would be awsome.
1 global appaearance policy, and the ability to set background colors etc on a per graph and per graph template.

i'd love that!
Back to top
Morgan
Cacti User


Joined: 25 Feb 2004
Posts: 187

PostPosted: Thu Mar 25, 2004 10:35 am    Post subject: Re: RE: configurable cacti skin/styles Reply with quote

hednod wrote:


You can take a peak at http://www.probsd.net/noc/
login guest / pw guest
[/b]



that looks awsome
Back to top
Guest






PostPosted: Thu Mar 25, 2004 10:39 am    Post subject: Reply with quote

Yeah i agree totally with it.
Settings to customize graph....advices us the soonest possible raX when its ready cause i need it
thks
Back to top
Khan



Joined: 03 Nov 2003
Posts: 47
Location: Madtown, WI

PostPosted: Tue Mar 30, 2004 10:29 am    Post subject: Reply with quote

While we're waiting for the "skinable" option in Cacti and while black graphs are cool looking, it's a little harsh viewing on a light grey background in the "Preview" window that I tend to use. So if any of you php hacks are reading this, where do I change the background colors for both the Tree View and the Preview View? My eyes will thank you
Back to top
hednod



Joined: 20 Jan 2004
Posts: 17

PostPosted: Mon May 10, 2004 6:39 pm    Post subject: Editing of .php files Reply with quote

It's been a long time since I did all that editing. I did not document how I did it because it was so irritating just having to do it in the first place.

You can start by searching through all the .php files for "bgcolor", if I recall
correctly I had to do the most editing the /lib/ dir's .php files.

It's a time consuming proccess of trial and error, change the bg color entry in a file, save, reload the page, nope, undo the edit, save, goto next entry, repeat.
Back to top
hednod



Joined: 20 Jan 2004
Posts: 17

PostPosted: Thu May 13, 2004 5:46 pm    Post subject: RE: hax0ring the colorscheme of the web interface Reply with quote

I've begun editing the .php files again and I have information on the locations of some of the colors.

Essentialy I find this out quickly by taking a screen shot of the part of the interface i want to change, and using the dropper tool in gimp (or photoshop if your in windows) to find the *exact* color.

I found that background colors for the tables in the tree view were "ffffff" and "f9f9f9" so I executed a "grep -R f9f9f9" in the main cacti dir.

The results follow:

lib/tree_view.php: form_alternate_row_color("f9f9f9", "ffffff", $i);

I found that to be in row # 471. (btw this file is from cacti 0.8.5a) These are the alternating background colors of the tables the graphs themselves are placed in.

also in this file, on line # 467 you will find the table color for the
"graph template" table. #a9b7cb is the color you may want to change.

print "<tr bgcolor='#a9b7cb'><td colspan='3' class='textHeaderDark'><strong>Graph Template:</strong> " . $graph_template["name"] . "</td></tr>";


Now that your tables have the colors you want, you'll notice the background of the page that the tables are contained in is obviously still white, this is easily edited in /include/main.css:

body {
background-color: #FFFFFF;
background-repeat: repeat-y;
}


You will find the colors for the "Tree: " table in the main.css as well in the include/config.php under:
$colors["header_panel"] = "6d88ad";

Now open up include/top_graph_header.php and find line # 153

<td valign="top" style="padding: 5px; border-right: #aaaaaa 1px olid;" bgcolor='#efefef' width='200'>

#efefef happens to be the color of the left pane of tree view (thank you again dropper tool in gimp/photoshop) and by changing that you will
have converted yet more of the tree view.

on lines #132 and #135 you will see more #efefef, but the is a background image on these lines linking a .gif which over-rides the background color. I did not care to edit the .gif's so i removed them from the lines and edited the background color to my liking.

and above those on line # 115 you'll find the background color for the area on the page just above that.

With just those few changes you already have a large portion of the work done. I think you should be able to figure your way around from there.


(ps: if you make these changes I *highly* recommend writing down the
locations and steps you took to make these changes so that when you are
forced to over-write these php files to upgrade to the latest version you
don't go bonkers trying to find where all this stuff was in the first place)
Back to top
hednod



Joined: 20 Jan 2004
Posts: 17

PostPosted: Thu Nov 11, 2004 10:07 pm    Post subject: #@$@#$@#$ Reply with quote

If you are not using 0.8.5a then those instructions will be alot less helpfull. alot of things have changed now in 0.8.6b and re-colorizing my interface
was another huge hassle.

Why rax, why? you have configurable color settings in both your css files as well as your config.php, why do you still insist in populating other areas with actual color values so that I have to search through all your files just to change a few background and border colors.

Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9697
Location: MI, USA

PostPosted: Sun Nov 14, 2004 8:50 pm    Post subject: Reply with quote

What a post. I will start diving into this tomrrow (Monday, November 15th). Going to go after templates and language specific coding. Also, I do like the host summary information code utilizing XML. That stuff rocks.

TheWitness
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9697
Location: MI, USA

PostPosted: Sun Nov 14, 2004 8:51 pm    Post subject: Reply with quote

Oh,

Once I get the framework in place. Will need volunteers to develop Templates. Any takers?

TheWitness
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9697
Location: MI, USA

PostPosted: Thu Nov 25, 2004 9:14 am    Post subject: Reply with quote

!!Bump!!

Themes are implemented (alpha) in 0.8.7. Need some creative talent to start making the themes? Any interest??

TheWitness
Back to top
hednod



Joined: 20 Jan 2004
Posts: 17

PostPosted: Sat Nov 27, 2004 2:14 am    Post subject: Reply with quote

I don't think my templates would be... all that popular, due to my taste in dark interfaces, but i'd be willing to give it a try, test it out and give feedback on how well it's working, if anything ends up missing, etc... so it can get into release quicker =)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's All times are GMT - 5 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group