mikehoward put this together!
http://www.clove.com/sites/www.clove.com/files/downloads/favicon-d7.zip

Thanks Mike!!! We'll have to get this into the branch :-)

CommentFileSizeAuthor
#1 favicon.tar_.gz7.24 KBsimg

Comments

simg’s picture

StatusFileSize
new7.24 KB

Hmm, I couldn't get Mikes version to work, so I did a bit of investigation and came up with the attached version.

This is better because:
a) it works :)
b) it writes the favicon.ico file directly with an image/x-icon mime type rather than doing a browser redirect (so eliminating a server round trip, reducing page load time and probably working on more browsers).
c) works on buggy versions of IE (eg most of them!) that require (bizarrely) the mime type to be image/x-icon rather than the correct image/vnd.microsoft.icon

simg’s picture

ps: I had to comment out the following line from my .htaccess file to allow drupal to manage the favicon.ico file

RewriteCond %{REQUEST_URI} !=/favicon.ico

robloach’s picture

Status: Needs review » Fixed

I really like the SimpleTests! :-) ... Thanks a lot!

http://drupalcode.org/project/favicon.git/commit/666a898

simg’s picture

SimpleTests must have been Mike, because it wasn't me :)

robloach’s picture

Title: Drupal 7 » Drupal 7 - Release?
Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Fixed » Postponed (maintainer needs more info)

Let me know if 7.x-1.x-dev is good, because then I could get out a 7.x-1.0.

simg’s picture

looks OK to me (from a quick scan of the code - don't have any time to install and test for a few weeks - sorry).

only comment is that we've left a bit of debug code which could / should be removed on line 27

//print "file=".$file; die();

robloach’s picture

I've committed that change. http://drupalcode.org/project/favicon.git/commit/9262611 Thanks. I'll wait for some usage on 7.x-1.x-dev before making the 7.x-1.0 release. Thanks again!

Also, any reason why it asks for Shortcut module to be abled?

simg’s picture

no idea why it would ask for that. I don't have the Shortcut module on the site where Favicon is installed and it works fine - I don't remember being asked to install it either :/

rogical’s picture

+1

mrfelton’s picture

+1. Looks to be working ok for me.

Anonymous’s picture

Works for me.

klonos’s picture

Title: Drupal 7 - Release? » Port Favicon module to drupal 7.
Issue tags: +D7 porting, +port to d7, +d7 ports

Works just fine here too. Only minor thing is that in multilingual sites, all http://www.domain.net/[language]/favicon.ico URLs work perfectly ok (where language is whichever enabled language), but then it doesn't work for the plain http://www.domain.net/favicon.ico URL (without the language token). Trivial issue, but still...

klonos’s picture

@Rob Loach, #7:

I'll wait for some usage on 7.x-1.x-dev before making the 7.x-1.0 release...

...The usage count is ~110 (and rising) as I'm writing this. Not that I care much for a "stable" release, dev seems to be working just fine ...well other than that minor issue I spotted in multilingual sites I mean.

phreadom’s picture

Up to 636 users for the 7.x version. Time for a 1.0 yet? Or is it being delayed for the multilingual issue?

robloach’s picture

Assigned: robloach » Unassigned

:-)

klonos’s picture

Status: Postponed (maintainer needs more info) » Fixed

...I believe we can close this now and file separate issues in the 7.x branch if we have any. The issue I was talking about back in #12 is actually #910650: Favicon not working in multilingual setup

Status: Fixed » Closed (fixed)
Issue tags: -D7 porting, -drupal 7 port, -port to d7, -d7 ports

Automatically closed -- issue fixed for 2 weeks with no activity.