Chaos Project

General => Electronic and Computer Section => Programming / Scripting / Web => Topic started by: Ryex on March 29, 2008, 03:38:09 pm

Title: The Icon Next to the address in the address bar
Post by: Ryex on March 29, 2008, 03:38:09 pm
I guess i'l make the first topic in this section

You know the icon next to the address in the address bar in Firefox and IE that pears next to some sites? Chaos-project for example?

how do you define what it is?
Title: Re: The Icon Next to the address in the address bar
Post by: Aqua on March 29, 2008, 05:19:01 pm
Put this in the head of the coding.
<link href="/filename.ico" rel="shortcut icon">
Title: Re: The Icon Next to the address in the address bar
Post by: Ryex on March 30, 2008, 09:32:20 am
cool thanks!

so how do you do it for the smf forum
Title: Re: The Icon Next to the address in the address bar
Post by: Blizzard on March 30, 2008, 12:21:22 pm
It will appear only all subsites. Actually it's enough if you name the file favicon.ico and put it in the folder where your site points to. i.e. chaos-project.com points to my "public_html" folder, I simply put the file there.
Title: Re: The Icon Next to the address in the address bar
Post by: Ryex on March 30, 2008, 04:57:40 pm
so if you put an .ico format icon in your home directory it will automatically add it as a shortcut icon?
Title: Re: The Icon Next to the address in the address bar
Post by: Blizzard on March 30, 2008, 05:13:44 pm
It has to be named favicon.ico, yes.
Title: Re: The Icon Next to the address in the address bar
Post by: Ryex on March 30, 2008, 05:18:51 pm
thanks.  whats the max size it can be?


edit: it didn't work
Title: Re: The Icon Next to the address in the address bar
Post by: darklight on March 30, 2008, 09:35:05 pm
favicons are 16x16 pixels. Also, try taking out the forward slash, so it's like this:

<head>
<link href="favicon.ico" rel="shortcut icon">
</head>

If it doesn't work then chances are it didn't save correctly as an .ico, unless you're using a program specifically for making favicons.
Title: Re: The Icon Next to the address in the address bar
Post by: Blizzard on March 31, 2008, 06:47:08 am
You can make it a png file with 256 colors and rename it to .ico without problems. Maybe your host doesn't support automatic favicons. O_o
Title: Re: The Icon Next to the address in the address bar
Post by: legacyblade on March 31, 2008, 05:57:00 pm
It took my host a few days to notice the favicon file, so just give it a few days.
Title: Re: The Icon Next to the address in the address bar
Post by: Blizzard on April 01, 2008, 02:23:20 am
Even with this new temporary host, it was instantly recognized by this host where CP is now on. O_o
IDK, on koreru before it worked instantly as well.
Title: Re: The Icon Next to the address in the address bar
Post by: Ryex on April 09, 2008, 07:30:44 pm
ok now its working