Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Muffin
Client



Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Mon Aug 23, 2004 9:40 am Reply with quote

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] 
View user's profile Send private message
GanjaUK
Life Cycles Becoming CPU Cycles



Joined: Feb 14, 2004
Posts: 633
Location: England

PostPosted: Mon Aug 23, 2004 10:27 am Reply with quote

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! 
View user's profile Send private message Visit poster's website
Muffin







PostPosted: Mon Aug 23, 2004 1:48 pm Reply with quote

Thanks Ganga

Time to fiddle with MicroAngelo again hehehe
 
GeekyGuy
Client



Joined: Jun 03, 2004
Posts: 302
Location: Huber Heights Ohio

PostPosted: Mon Aug 23, 2004 1:55 pm Reply with quote

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 
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
TheosEleos
Life Cycles Becoming CPU Cycles



Joined: Sep 18, 2003
Posts: 960
Location: Missouri

PostPosted: Mon Aug 23, 2004 2:15 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website AIM Address ICQ Number
GeekyGuy







PostPosted: Mon Aug 23, 2004 3:16 pm Reply with quote

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







PostPosted: Mon Aug 23, 2004 3:22 pm Reply with quote

I'll try anything once.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©