Administration Menu 5.x-2.8
westsyde - April 24, 2009 - 04:31
I have recently installed the Administration Menu module 5.x-2.8 and it works fine other than the favicon.ico file does not show.
I know that the favicon.ico file is in the directory /files that it appears to reference, so I do not understand why it does not show. Is there a file kb limit or something ??
All replies are much appreciated.

In Administration Menu
Hi,
In that adminstartion menu module,at bottom of code there will be overriding function for favicon.ico. Copy that code and put in your template.php and change path accordingly.
Regards & Thanks,
Madhan Mohan R
http://madhan-drupal.blogspot.com
Thanks,
Madhan Mohan R
Tried copy and paste
I could only find this code in relation to the faviocon.ico
/**
* Render an icon to display in the Administration Menu.
*
* @ingroup themeable
*/
function theme_admin_menu_icon() {
return '';
}
It was at the bottom of the admin_menu.inc file
I tried by copy and paste to the bottom of template.php (which only appears to exist in the garland fixed theme) but it didnt work.
Thought I should ask for further assistance. Does that code look right?
Double D Works Ltd
DoubleDworks.co.nz
Use like this in your template.php
Hi,
put this in your template.php(i.e) if you use, for example garland theme, then use that template.php
function phptemplate_admin_menu_icon() {
return '';
}
Regards & Thanks,
Madhan Mohan R
http://madhan-drupal.blogspot.com
Thanks,
Madhan Mohan R
Did you post more code
Did you post more code, (as I did) which did not show up in your reply?
I tried it with all code including paths etc but still shows no favicon.
Double D Works Ltd
DoubleDworks.co.nz
Working for me fine
Hi,
The reason being "Allowed HTML tags"
And in our post we used "img" tag so its not showing but if u put like "< img" it will show
Regards & Thanks,
Madhan Mohan R
http://madhan-drupal.blogspot.com
Thanks,
Madhan Mohan R
Hi, For me its working
Hi,
For me its working fine.copy image to some other path & Change the path from "misc/favicon.ico" to some other path for example "xx/favico.ico"
function phptemplate_admin_menu_icon() {
return '< img class="admin-menu-icon" src="'. (theme_get_setting('toggle_favicon') ? theme_get_setting('favicon') : base_path() .'xx/favicon.ico') .'" width="16" height="16" alt="'. t('Home') .'" />';
}
Regards & Thanks,
Madhan Mohan R
http://madhan-drupal.blogspot.com
Thanks,
Madhan Mohan R
I did that
Weird,
I did that and it still doesn't appear.
The properties of where the favicon.ico should display references files/favicon.ico not favicon/favicon.ico as I set the directory to in the admin_menu module and the template.php
I dropped the cache and still no go.
If I change my favicon to the default drupal file (and place in files directory) which is a considerably smaller file than my favicon it works.
This requires no mods to the files as previously carried out.
Is there a file size restriction somewhere. I really need to use my favicon (which works for everything else) but is around 360kb so i guess that why for some reason.
Double D Works Ltd
DoubleDworks.co.nz
Size is not issue
No i dont think size is an issue. I tried in my PC its working fine.
Thanks,
Madhan Mohan R
Weird....
Not sure what to do now.. any other ideas ??
It seem weird that using default drupal favicon resolves the issue for me and yet my favicon works for you.... Weird...
Double D Works Ltd
DoubleDworks.co.nz
Browser Related
This issue is not related to the favicon size or any other factor.
The issue is browser related.
I tried Mozilla Firefox 3 and problem solved.
Hope this helps someone.
Double D Works Ltd
DoubleDworks.co.nz
I also Checked in Firefox 3
I also checked in Mozilla firefox version 3
Thanks,
Madhan Mohan R