General Car Related Discussion. To discuss anything that is related to cars and automotive technology that doesnt naturally fit into another forum catagory.

Web developers/HTML guys......

Thread Tools
 
Search this Thread
 
Old Jan 2, 2007 | 03:48 PM
  #1  
Christian and Beccy's Avatar
Christian and Beccy
Thread Starter
#1 in Spelling Club
20 Year Member
iTrader: (14)
 
Joined: May 2003
Posts: 23,329
Likes: 6
From: Norfolk
Default Web developers/HTML guys......

I am having a play around with our website and am determined to add an address bar icon. I have read up various ways to do it and am convinced that I have the code right. I have also placed a 16x16 icon in the root directory, which can be viewed here......

http://www.ap-tuning.co.uk/favicon.ico

However, it still doesn't work. All I can see wrong is that sometimes if you open the link above, the logo doesn't display immediately and you have to either refresh it or click 'show picture', before it will work.

What am I doing wrong??!!
Reply
Old Jan 2, 2007 | 03:53 PM
  #2  
Black_RS's Avatar
Black_RS
Regular Contributor
 
Joined: Aug 2006
Posts: 274
Likes: 0
From: Gloucestershire
Default

Absolutely no idea!

HTH
Reply
Old Jan 2, 2007 | 04:02 PM
  #3  
AndyBrew's Avatar
AndyBrew
Advanced PassionFord User
 
Joined: May 2003
Posts: 1,864
Likes: 0
From: Leicester
Default

I don't think the browser likes displaying .ico files if you right click it AND select "Show picture" it displays ok, I would convert the ICON file to a gif or jpeg then I think it will work fine
Reply
Old Jan 2, 2007 | 04:04 PM
  #4  
Turbocabbie's Avatar
Turbocabbie
Top Cab !!
 
Joined: Aug 2006
Posts: 3,989
Likes: 1
From: .
Default

you certain its a .ico ?? because when i try to save it using Mozilla Firefox it states its a Jpeg actually favicon.ico.jpg

what did you create the icon with ? it looks as if it was done with paint or photoshop rather than a specific icon editor

also your code is wrong
<LINK REL="SHORTCUT ICON" HREF="/favicon.ico" />
Open up index.html, and add this line after any meta tags in the HEAD section but before the </head>.

<link REL="SHORTCUT ICON" HREF="http://yoursitedotcom.here/favicon.ico">

If you are in a user directory, without a domain, add something like this instead:

<link REL="SHORTCUT ICON" HREF="http://yoursitedotcom.here/yourdir/favicon.ico">
Reply
Old Jan 2, 2007 | 04:07 PM
  #5  
AndyBrew's Avatar
AndyBrew
Advanced PassionFord User
 
Joined: May 2003
Posts: 1,864
Likes: 0
From: Leicester
Default

where you getting the source code from? that link christian has put up simply points to the file favicon.ico at my end
Reply
Old Jan 2, 2007 | 04:07 PM
  #6  
Turbocabbie's Avatar
Turbocabbie
Top Cab !!
 
Joined: Aug 2006
Posts: 3,989
Likes: 1
From: .
Default

its a JPEG... it is ... its a JPEG

Do I win a prize... do I get to drive your car
Reply
Old Jan 2, 2007 | 04:08 PM
  #7  
Christian and Beccy's Avatar
Christian and Beccy
Thread Starter
#1 in Spelling Club
20 Year Member
iTrader: (14)
 
Joined: May 2003
Posts: 23,329
Likes: 6
From: Norfolk
Default

Originally Posted by UnseenMenace
you certain its a .ico ?? because when i try to save it using Mozilla Firefox it states its a Jpeg actually favicon.ico.jpg

what did you create the icon with ? it looks as if it was done with paint or photoshop rather than a specific icon editor

also your code is wrong
<LINK REL="SHORTCUT ICON" HREF="/favicon.ico" />
Open up index.html, and add this line after any meta tags in the HEAD section but before the </head>.

<link REL="SHORTCUT ICON" HREF="http://yoursitedotcom.here/favicon.ico">

If you are in a user directory, without a domain, add something like this instead:

<link REL="SHORTCUT ICON" HREF="http://yoursitedotcom.here/yourdir/favicon.ico">
I did only use a paint package for it, I just find it odd that I can get it to display, but only once you refresh it. At that point it's no different to a normal picture?

So, can I use a .jpg?

Also, everywhere else in my coding, I use '/picturename.jpg' for pictures in the root directory. I don't have to use the full address. What's that all about?
Reply

Trending Topics

Old Jan 2, 2007 | 04:08 PM
  #8  
AndyBrew's Avatar
AndyBrew
Advanced PassionFord User
 
Joined: May 2003
Posts: 1,864
Likes: 0
From: Leicester
Default

hold on a sec thats not an ICO file LOL!!! its a jpg just rename the extension to .jpg and it should be ok
Reply
Old Jan 2, 2007 | 04:09 PM
  #9  
Turbocabbie's Avatar
Turbocabbie
Top Cab !!
 
Joined: Aug 2006
Posts: 3,989
Likes: 1
From: .
Default

Originally Posted by AndyBrew
where you getting the source code from? that link christian has put up simply points to the file favicon.ico at my end
Go to the home page http://www.ap-tuning.co.uk/ and view the page source
Reply
Old Jan 2, 2007 | 04:11 PM
  #10  
AndyBrew's Avatar
AndyBrew
Advanced PassionFord User
 
Joined: May 2003
Posts: 1,864
Likes: 0
From: Leicester
Default

its not displaying because its not in the correct format for the file extension, obviously different browsers will apply differing levels of intelligence to trying to display it
Reply
Old Jan 2, 2007 | 04:11 PM
  #11  
Turbocabbie's Avatar
Turbocabbie
Top Cab !!
 
Joined: Aug 2006
Posts: 3,989
Likes: 1
From: .
Default

Originally Posted by AndyBrew
its a jpg just rename the extension to .jpg and it should be ok
think its supposed to be renamed to ico myself

glad to see someone else has typo's as bad as I do in general
Reply
Old Jan 2, 2007 | 04:12 PM
  #12  
Christian and Beccy's Avatar
Christian and Beccy
Thread Starter
#1 in Spelling Club
20 Year Member
iTrader: (14)
 
Joined: May 2003
Posts: 23,329
Likes: 6
From: Norfolk
Default

Originally Posted by UnseenMenace
its a JPEG... it is ... its a JPEG

Do I win a prize... do I get to drive your car
OK, so how do I create a proper .ico file?

And, No, you don't. But a passenger ride wouldn't be a problem. (when its fixed)
Reply
Old Jan 2, 2007 | 04:13 PM
  #13  
Christian and Beccy's Avatar
Christian and Beccy
Thread Starter
#1 in Spelling Club
20 Year Member
iTrader: (14)
 
Joined: May 2003
Posts: 23,329
Likes: 6
From: Norfolk
Default

But, if you open it and right-click on it, it's a .ico file!!!
Reply
Old Jan 2, 2007 | 04:15 PM
  #14  
AndyBrew's Avatar
AndyBrew
Advanced PassionFord User
 
Joined: May 2003
Posts: 1,864
Likes: 0
From: Leicester
Default

why do you want it as an ico file .... you will need to buy/steal an icon editor from somewhere or other that can import image files. However ico files are a very specialised thing and importing a jpg usually looks shit as it would need drawing from scratch to look nice, but you can only try
Reply
Old Jan 2, 2007 | 04:16 PM
  #15  
Christian and Beccy's Avatar
Christian and Beccy
Thread Starter
#1 in Spelling Club
20 Year Member
iTrader: (14)
 
Joined: May 2003
Posts: 23,329
Likes: 6
From: Norfolk
Default

Originally Posted by AndyBrew
why do you want it as an ico file .... you will need to buy/steal an icon editor from somewhere or other that can import image files. However ico files are a very specialised thing and importing a jpg usually looks shit as it would need drawing from scratch to look nice, but you can only try
I just want to display that little logo in the address bar, thats all!!

So, what if I rename it as a .jpg and change the code?
Reply
Old Jan 2, 2007 | 04:16 PM
  #16  
Turbocabbie's Avatar
Turbocabbie
Top Cab !!
 
Joined: Aug 2006
Posts: 3,989
Likes: 1
From: .
Default

Option 1... download and rename it (although this can cause problems displaying in certain browsers)
Option 2 download a icon editor such as the one found at http://ranfo.com/iconedit.html open the file in that and save it to the correct format
Option 3 Change your mind about letting me drive you car and I will email you it j/k

if you want me to email you one I can do, its np... just having dinner at the moment
Reply
Old Jan 2, 2007 | 04:18 PM
  #17  
Turbocabbie's Avatar
Turbocabbie
Top Cab !!
 
Joined: Aug 2006
Posts: 3,989
Likes: 1
From: .
Default

Originally Posted by Christian and Beccy
I just want to display that little logo in the address bar, thats all!!

So, what if I rename it as a .jpg and change the code?
nope can not do, simply because not all browsers can display .jpg or .jpeg in the title bar and as such will not display to all people
Reply
Old Jan 2, 2007 | 04:19 PM
  #18  
AndyBrew's Avatar
AndyBrew
Advanced PassionFord User
 
Joined: May 2003
Posts: 1,864
Likes: 0
From: Leicester
Default

just looked at the source, PMSL I see now, yeh you need an icon file
Reply
Old Jan 2, 2007 | 04:22 PM
  #19  
R4N SS's Avatar
R4N SS
Professional Waffler
iTrader: (6)
 
Joined: Jun 2003
Posts: 27,161
Likes: 147
From: ?
Default

Why not resave the image in Photoshop as "Save for Web" as a .jpg. Will work then with no probs.

Also have you checked this on Mozilla and IE as these browsers interpret code differently
Reply
Old Jan 2, 2007 | 04:24 PM
  #20  
Christian and Beccy's Avatar
Christian and Beccy
Thread Starter
#1 in Spelling Club
20 Year Member
iTrader: (14)
 
Joined: May 2003
Posts: 23,329
Likes: 6
From: Norfolk
Default

Hold on...... Wait there!!!!!
Reply
Old Jan 2, 2007 | 04:27 PM
  #21  
Christian and Beccy's Avatar
Christian and Beccy
Thread Starter
#1 in Spelling Club
20 Year Member
iTrader: (14)
 
Joined: May 2003
Posts: 23,329
Likes: 6
From: Norfolk
Default

I have just used Irfanview to save the file as a proper Windows Icon file and it still doesn't fooking work!!
Reply
Old Jan 2, 2007 | 04:28 PM
  #22  
Hockney's Avatar
Hockney
Advanced PassionFord User
 
Joined: May 2003
Posts: 2,086
Likes: 0
Default

C&B try clearing out your cache and you should be able to see the favico then. I had that trouble as well when changing the favico on my site and clearing out my cache on firefox worked
Reply
Old Jan 2, 2007 | 04:36 PM
  #23  
Turbocabbie's Avatar
Turbocabbie
Top Cab !!
 
Joined: Aug 2006
Posts: 3,989
Likes: 1
From: .
Default

the file is not a icon (ico) and it needs to be otherwise it will not display in every browsers address bar, which is the objective.. the favorite icon requires an absolute path which is why the URL is required... failure to follow this can create issues with specific browsers such as Safari.
You can use a jpeg for this however it will not work correctly in all browsers which negates the point of doing such... currently the file also has a double extension favicon.ico.jpg this is common practice for viruses which use this technique to hide executable files from the average user as such some combined antiviral / firewall applications may freak out as the file currently stands as it looks suspect.

make it an ico... fix the coding and all will be exceptionally happy
Reply
Old Jan 2, 2007 | 04:37 PM
  #24  
AndyBrew's Avatar
AndyBrew
Advanced PassionFord User
 
Joined: May 2003
Posts: 1,864
Likes: 0
From: Leicester
Default

it is now defo an icon however it doesn't display here even after clearing out the internet cache, but google groups does with the same code so its weird??

the only other thing I can think of is if your ISP/Hosting company is using some form of caching on a proxy etc. then it may take sometime to be refreshed.
Reply
Old Jan 2, 2007 | 04:39 PM
  #25  
Turbocabbie's Avatar
Turbocabbie
Top Cab !!
 
Joined: Aug 2006
Posts: 3,989
Likes: 1
From: .
Default

Originally Posted by Christian and Beccy
I have just used Irfanview to save the file as a proper Windows Icon file and it still doesn't fooking work!!
not a Windows icon file people do own Mac's, Linux Boxes and other things

Its must be a normal ico and not a microsoft flavor which has the possibility of increased colour depth

try this online generator to create the file you require...

http://www.graphicsguru.com/favicon.php
Reply
Old Jan 2, 2007 | 04:42 PM
  #26  
AndyBrew's Avatar
AndyBrew
Advanced PassionFord User
 
Joined: May 2003
Posts: 1,864
Likes: 0
From: Leicester
Default

fooking hell I wouldn't bother seems like rocket science LOL!!!

anyway I can edit you .ico file here in the .NET icon editor so why its not displaying here in IE7 on Windows XP is a mystery unless you need this pure .ico format for it to work???
Reply
Old Jan 2, 2007 | 04:43 PM
  #27  
Hockney's Avatar
Hockney
Advanced PassionFord User
 
Joined: May 2003
Posts: 2,086
Likes: 0
Default

Working fine for me



Reply
Old Jan 2, 2007 | 04:46 PM
  #28  
Turbocabbie's Avatar
Turbocabbie
Top Cab !!
 
Joined: Aug 2006
Posts: 3,989
Likes: 1
From: .
Default

yea working for me now

In Mozilla Firefox, IE6 and Opera



Guess im definitly not getting the keys... lol
Reply
Old Jan 2, 2007 | 04:48 PM
  #29  
AndyBrew's Avatar
AndyBrew
Advanced PassionFord User
 
Joined: May 2003
Posts: 1,864
Likes: 0
From: Leicester
Default

right deleted my cookies, internet history and temporary files closed down IE and restarted and now its working for me to

phew I'll sleep better now tonight
Reply
Old Jan 2, 2007 | 04:49 PM
  #30  
AndyBrew's Avatar
AndyBrew
Advanced PassionFord User
 
Joined: May 2003
Posts: 1,864
Likes: 0
From: Leicester
Default

could of been proxy caching seen this before especially on unix hosting.
Reply
Old Jan 2, 2007 | 04:50 PM
  #31  
AndyBrew's Avatar
AndyBrew
Advanced PassionFord User
 
Joined: May 2003
Posts: 1,864
Likes: 0
From: Leicester
Default

you ok now christian
Reply
Old Jan 3, 2007 | 09:10 AM
  #32  
Christian and Beccy's Avatar
Christian and Beccy
Thread Starter
#1 in Spelling Club
20 Year Member
iTrader: (14)
 
Joined: May 2003
Posts: 23,329
Likes: 6
From: Norfolk
Default

Looks like it's working for me now too!! CheeRS for your help guys. Particularly you, Unseen Menace!!
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
oilman
Trader Parts for Sale.
10
Sep 23, 2015 07:32 PM
Glenn_
General Car Related Discussion.
7
Sep 18, 2015 02:27 PM
Cos500
General Car Related Discussion.
14
Sep 2, 2015 05:48 PM
oilman
Trader Parts for Sale.
5
Aug 30, 2015 08:37 AM
da52rkn
Ford Focus Range
3
Aug 21, 2015 04:41 PM




All times are GMT. The time now is 04:38 PM.