Author |
Message |
Muffin
Client

Joined: Apr 10, 2004
Posts: 649
Location: UK
|
Posted:
Mon Aug 23, 2004 9:40 am |
|
How do you get your site icon in the browser searchbar like on here?
It looks kinda cool doesn't it! |
_________________ Classic Mini rules the bends & bends the rules!
[img] |
|
|
 |
GanjaUK
Life Cycles Becoming CPU Cycles

Joined: Feb 14, 2004
Posts: 633
Location: England
|
Posted:
Mon Aug 23, 2004 10:27 am |
|
Do you mean address bar?
You need to upload an icon to your nuke root and name it favicon. It must be icon format. Dimensions 17x15.
Browsers should automatically look for favicon.
You can add this to includes/meta.php
Code:
echo "<link REL=\"shortcut icon\" HREF=\"favicon.ico\" TYPE=\"image/x-icon\">\n";
|
|
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
 |
Muffin

|
Posted:
Mon Aug 23, 2004 1:48 pm |
|
Thanks Ganga
Time to fiddle with MicroAngelo again hehehe |
|
|
|
 |
GeekyGuy
Client

Joined: Jun 03, 2004
Posts: 302
Location: Huber Heights Ohio
|
Posted:
Mon Aug 23, 2004 1:55 pm |
|
I actually didn't know about adding that line to the meta.php file, I'll do that when I get home. I've been using a favicon.ico file since I set my site up in May. I just have it in the root folder. |
_________________ "The Daytona 500 is ours! We won it, we won it, we won it!", Dale Earnhardt, February 15th, 1998, Daytona 500 |
|
 |
 |
TheosEleos
Life Cycles Becoming CPU Cycles

Joined: Sep 18, 2003
Posts: 960
Location: Missouri
|
Posted:
Mon Aug 23, 2004 2:15 pm |
|
How does adding that line to meta.php help? I have used the icon for a year now and have never added that. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
 |
 |
GeekyGuy

|
Posted:
Mon Aug 23, 2004 3:16 pm |
|
I found some interesting information about this favicon.ico file on this website: Only registered users can see links on this board! Get registered or login!
Quote: | Helping the Browser Locate the favicon.ico file
If you have placed your favicon.ico file in a location other than the current web directory (relative to your web page) or the root directory, you have to help your visitors' browser locate the favicon file by specifying it with a tag like the following in the <head> section of your web page.
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
You should replace "/favicon.ico" in the above example with the actual location of your favicon.ico file, for example, "/images/favicon.ico" if you have placed it in your "/images/" directory.
This step is optional if you have put your "favicon.ico" file in the standard locations, ie, in the same directory as the web page or in the root directory of your website. Otherwise you will need to modify all your existing web pages to take advantage of the "favicon.ico" facility. |
So I read that Ganja's line of code just helps the browser find the favicon.ico, even if it is in the default location (root). |
|
|
|
 |
TheosEleos

|
Posted:
Mon Aug 23, 2004 3:22 pm |
|
|
|
 |
|