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    


Favicon.ico for Cacti Installations

 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 711
Location: Psychic Amish Network Administrator

PostPosted: Thu Dec 07, 2006 9:44 am    Post subject: Favicon.ico for Cacti Installations Reply with quote

Just to make your installation a little more custom I converted the Cacti cactus from the main cacti website into a favicon.ico and figured out what needed to be done to have cacti serve it up. I'm not exactly sure if all the steps below are actually needed since I'm not really that well versed in *nix, but it's what I had to do to make it work under the CactiEZ installation.

Step 1: Download and unzip the Attached favicon.zip file and put the favicon.ico in the root of your cacti installation. For me that's: /var/www/html

Step 2: chown -R apache:apache favicon.ico

Step 3: chmod 644 favicon.ico

Step 4: Edit your httpd.conf file with this line: AddType image/x-icon .ico

Step 5: Edit the top_header.php and the top_graph_header.php right below the <head> tag with the following line:

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

This is now working for me under all my plugins, except for Mactrack, I don't know why that one isn't working.



Cacti-Icon.gif
 Description:
 Filesize:  3.24 KB
 Viewed:  9828 Time(s)

Cacti-Icon.gif



favicon.zip
 Description:

Download
 Filename:  favicon.zip
 Filesize:  2.25 KB
 Downloaded:  960 Time(s)



Last edited by streaker69 on Thu Dec 07, 2006 11:10 am; edited 5 times in total
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5676
Location: Michigan, USA

PostPosted: Thu Dec 07, 2006 9:49 am    Post subject: Reply with quote

Step 3 is not needed.... And not suggest making anything executable that does not need to be executable.
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 711
Location: Psychic Amish Network Administrator

PostPosted: Thu Dec 07, 2006 9:56 am    Post subject: Reply with quote

rony wrote:
Step 3 is not needed.... And not suggest making anything executable that does not need to be executable.


I was following instructions from another site on how to make this work. They suggested it.

Maybe you can help out. I edited my original post because I found that the top_header.php wasn't working across all the tabs, only the console. Can you think of what needs to be done to make it work across all the tabs?
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5676
Location: Michigan, USA

PostPosted: Thu Dec 07, 2006 10:03 am    Post subject: Reply with quote

I would change step 3 to "chmod 644 favicon.ico".

Also, you need to edit top_header.php and top_graph_header.php.
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 711
Location: Psychic Amish Network Administrator

PostPosted: Thu Dec 07, 2006 10:07 am    Post subject: Reply with quote

rony wrote:
I would change step 3 to "chmod 644 favicon.ico".

Also, you need to edit top_header.php and top_graph_header.php.


I did it to both, and I started to get errors.

Code:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/include/top_graph_header.php:2) in /var/www/html/include/top_graph_header.php on line 56


Plus, it then only works when you're on the console tab. Any other tabs, the icon goes away. So there must be something else that needs to be done.
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 711
Location: Psychic Amish Network Administrator

PostPosted: Thu Dec 07, 2006 10:52 am    Post subject: Reply with quote

I think I've resolved most of the issues. Revised instructions posted in the original post.
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 711
Location: Psychic Amish Network Administrator

PostPosted: Thu Dec 07, 2006 11:01 am    Post subject: Reply with quote

If you're using MacTrack, you'll need to edit the top_mactrack_header.php file located in /plugins/macktrack/include right below the <head> tag with this line:

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
Back to top
bdiez



Joined: 08 Sep 2005
Posts: 11
Location: Spain

PostPosted: Sun Feb 11, 2007 3:25 pm    Post subject: Cacti icon - Minor changes Reply with quote

Hello.

I just performed some minor art to add transparency to the cacti icon borders. Tested under Apache on MS, IIS on MS and Apache on Ubuntu linux, works ok for me using Firefox or IExplorer browsers.

I suggest you to also add the line to the "auth_login.php" file in the main cacti directory (always inside the <head> section).

P.S. My icon is named "cacti.ico" so rename in to "favicon.ico" if preferred. Favicon.ico is a generic name for the "main icon" of a web site, so using it may make unnecessary to edit the auth_login.php file.


Regards,
Bernardo.



cacti-icon.zip
 Description:

Download
 Filename:  cacti-icon.zip
 Filesize:  531 Bytes
 Downloaded:  563 Time(s)

Back to top
N3NCY
Cacti User


Joined: 22 Sep 2005
Posts: 242
Location: Landenberg, PA

PostPosted: Sun Nov 04, 2007 3:01 pm    Post subject: Reply with quote

I see Fav Icon is now built in to 0.8.7
Nice work everyone!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group