T O P I C R E V I E W |
richfed |
Posted - 02 August 2008 : 15:58:03 When saving favorites in the IE browser, some sites display a small icon next to the saved link.
How does one enable their own site to show an icon when saved in someone's browser?
For example, this site, Snitz, has a little "SF" logo next to the saved link on my computer.< |
15 L A T E S T R E P L I E S (Newest First) |
MikeB.Lynn |
Posted - 18 March 2009 : 06:45:04 I'm lost Here is what my inc_header.aso line 253 looks like:
rs.close
set rs = nothing
end if
Response.Write "<html>" & vbNewline & vbNewline & _
"<head>" & vbNewline & _
"<title>" & GetNewTitle(strScriptName) & "</title>" & vbNewline
Response.Write "<link href=""favicon.ico"" rel=""icon"" type=""image/ico"" />"
'## START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
Response.Write "<meta name=""copyright"" content=""This Forum code is Copyright (C) 2000-05 Michael Anderson, Pierre Gorissen, Huw Reddick and Richard Kinser, Non-Forum Related code is Copyright (C) " & strCopyright & """>" & vbNewline
'## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
I added the part in red but still no favicon. Any ideas
Never mind. In another thread I found similar instructions (written by AnonJr) but it said to put it here:
"-->" & vbNewLine & _
"</style>" & vbNewLine & _
"<link rel=""shortcut icon"" href=""favicon.ico"">" & vbNewLine & _
"</head>" & vbNewLine & _
|
Shaggy |
Posted - 24 February 2009 : 12:18:42 Yeah, we can "thank" Internet Explorer for that one.
Microsoft were the first ones to introduce support for favicons and, as there was no agreed standard at the time, they made up their own rules (hell, who are we kidding, they still make up their own rules for things even when there is an agreed standard!). Consequently, when other browsers started adding support for them, even after they were standardised, they used the flawed logic that programmers would expect their browser to support them in the same way as the most popular browser in the world thus keeping this incorrect method alive to this day.
The reason it is incorrect is that is considered to be "link squatting" (robots.txt is another culprit), something which goes against the guidelines laid out in the W3C's "Architecture of the World Wide Web". How, for example, would you change the colour of your favicon to correspond with the colour coding of the various sections of your site?
For more information on the W3C's recommendations for adding a favicon to your pages see w3.org/2005/10/howto-favicon.
For more information on the history of the favicon see en.wikipedia.org/wiki/Favicon.
< |
TastyNutz |
Posted - 24 February 2009 : 11:49:37 Apology accepted, and I appreciate the information. Especially since a simple Google search for "favicon" mostly turns up instructions along the lines of what leatherlips posted.< |
Shaggy |
Posted - 24 February 2009 : 11:35:54 Sorry, didn't mean that to come across in such a heavy-handed, "you're wrong, I'm right" kinda way - trying to educate, not dictate!
< |
TastyNutz |
Posted - 24 February 2009 : 11:29:12 Sorry Shaggy. Didn't mean to question your authority. I was just saying.< |
Shaggy |
Posted - 24 February 2009 : 04:36:33 In every browser?
Just because something works doesn't necessarily mean it's right - you can use tables to layout your site and it will work just fine but it's still not the right way to do it.
Also, contrary to what Leatherlips posted, it doesn't have to be named favicon.ico nor does it have to go in the root directory. It doesn't even have to be an icon, you could also use a PNG or a GIF.
< |
TastyNutz |
Posted - 23 February 2009 : 20:26:04 quote: Originally posted by Shaggy
Simply uploading a file called favicon.ico is not enough, you'll also need to add the following line to the head of your page:
<link href="/favicon.ico" rel="icon" type="image/ico" />
I've got several sites that don't have the favicon link, and it shows up fine.< |
AnonJr |
Posted - 23 February 2009 : 15:07:12 Glad you got it working.
And yes, I'd rather be too busy than not busy enough. < |
justin123 |
Posted - 23 February 2009 : 14:53:12 I hear ya, but I guess on the bright side that is a great thing considering things now days. :)
Worked perfectly, I was missing the Response.Write
Thanks for your help and great to see you,
Justin< |
AnonJr |
Posted - 23 February 2009 : 14:44:01 "Been busy" doesn't even begin to cover it...
Look at how the rest is formatted - You'll want to add it like thus:
Making sure that the href actually points to the location of your favicon, etc. as noted above.< |
justin123 |
Posted - 23 February 2009 : 14:20:40 AnonJr, good to see you again, has been a while.
If I go to the second set of head tags I see the following...
"<head>" & vbNewline & _ "<title>" & GetNewTitle(strScriptName) & "</title>" & vbNewline
+++++++++++++++
'## START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT Response.Write "<meta name=""copyright"" content=""This Forum code is Copyright (C) 2000-06 Michael Anderson, Pierre Gorissen, Huw Reddick and Richard Kinser, Non-Forum Related code is Copyright (C) " & strCopyright & """>" & vbNewline '## END - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
Response.Write "<script language=""JavaScript"" type=""text/javascript"">" & vbNewLine & _ "<!-- hide from JavaScript-challenged browsers" & vbNewLine & _
Just a snippet. If I place the code where the +++++ signs are this is when I get the error message. What am I missing?
Justin < |
AnonJr |
Posted - 23 February 2009 : 13:56:24 Then you have a problem, as in inc_header.asp there are only two sets of <head> tags - the first set is for an error message, and the second set is for the actual pages. You are going to want to include it in the second set.< |
justin123 |
Posted - 23 February 2009 : 13:53:22 JJenson, there are well over 10 head open and closing tags. If I place the code between the first set of head tags I get the compile error again. Any ideas??
Justin< |
JJenson |
Posted - 23 February 2009 : 13:17:45 You want to add that to your header.asp file. Somewhere between the <head></head> tags.< |
justin123 |
Posted - 23 February 2009 : 13:11:30 Shaggy, I have already created one and added it to my website; however I cannot seem to figure out how to get it added to my Forum page. I am using the access ver. of Snitz not SQL. I can't seem to figure out which one of the files needs to be edited. If I try to edit the login.asp file I get a compile error. Any help would be appreciated.< |