| Author |
Message |
Cobra8007

Joined: May 05, 2005
Posts: 21
Location: Midwest City, Ok
|
Posted:
Mon May 30, 2005 4:35 pm |
|
Where SHOULD I place the favicon statement in my phpnuke site? I have the html statement but I really need to know which file it is best placed for php.
Thanks |
| |
|
|
 |
Ghost

Joined: Jan 08, 2005
Posts: 55
Location: Puyallup, Washington
|
Posted:
Mon May 30, 2005 4:49 pm |
|
|
|
 |
Cobra8007

Joined: May 05, 2005
Posts: 21
Location: Midwest City, Ok
|
Posted:
Mon May 30, 2005 4:54 pm |
|
It is the icon that represents your site instead of the "blue e" in internet explorer. When a user saves your shortcut it includes the icon for their desktop or favorites folder.
I resolved it. After creating the icon, you can place the image (*.ico) in the root dir. Open header.php and make sure the reference path is directed to the root or in cases where the theme is selectable, you place it in the images folder of each theme and double-check the path in header.php
try it out on my site, http://www.blackopsmercenaries.us |
| |
|
|
 |
Ghost

Joined: Jan 08, 2005
Posts: 55
Location: Puyallup, Washington
|
Posted:
Mon May 30, 2005 5:02 pm |
|
Wow, sounds kool, so is this a downloaded script??? Or is there more thorough instructions?
Ghost |
| |
|
|
 |
Cobra8007

Joined: May 05, 2005
Posts: 21
Location: Midwest City, Ok
|
Posted:
Mon May 30, 2005 5:08 pm |
|
Create a 16 pixel wide by 16 pixel high favicon.bmp file in a Program like MS-Paint, then use a program to reduce the colors to 16 colors [Image -> Decrease Color Depth], and then 'save as...' to a Windows Icon Format (favicon.ico). Upload the file with FTP to the root section of your web site (the first page area, where you put files like index.html). 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">
Example: If you owned www.stopupgrading.com, you would create the file favicon.ico, and FTP it to your host. Then, you'd use this code:
<link REL="SHORTCUT ICON" HREF="http://www.stopupgrading.com/favicon.ico">
Reload the page... and try adding it to your favorites or bookmarks. Once you've added it to the favorites, close the browser and then open it again, and return to the site? Does it show up now? It should!
FOR PHPNUKE
Place the favicon.ico file in your themes/images folder. I also like to include it in the root directory of my website for compatibility purposes. PHPNUKE themes already contains the code to look for and display/include the icon. |
| |
|
|
 |
Ghost

Joined: Jan 08, 2005
Posts: 55
Location: Puyallup, Washington
|
Posted:
Mon May 30, 2005 5:16 pm |
|
Dude, seriously, Thank you, I think I have an image I want to use...let me find it and I will post the results here!
Thank you,
Ghost |
| |
|
|
 |
Colossus
Site Admin


Joined: May 16, 2005
Posts: 23
|
Posted:
Tue May 31, 2005 9:35 pm |
|
Cobra has it nailed with his response, I'm not sure about PHPNuke Vanilla , but I use PHPNuke Platinum and I believe it has the code already written to look for the favicon.ico by default, i think I remember some ways back playing with that and all I did was put it into the root of my site "/" and was ready to go looking through all the header.php and header.html files in my themes' folder and noticed it was already working, but, like I said, I dont know if that it Platinum specific or dependent upon my choice of themes.
Hmmm, maybe I should look into that on my site, you got me curious........... |
| |
|
|
 |
Guest

|
Posted:
Wed Sep 14, 2005 10:55 am |
|
you can find how to add a favicon in the nuke how to!
it can be abit of a ball-acher tho, sometimes when you change or tryout a favicon, your server caches it, so it doesnt change until they empty the cache. |
| |
|
|
 |
|
|