Hey,
Anyone know how websites like NukeCops get the custom icons before the web address (in the address bar) and site name (on the window tabs) in the Firefox browser? I've been looking all over for this, but no luck.
Many thanks!
HalJordan Support Staff
Joined: Aug 07, 2004
Posts: 1117
Location: Somewhere around Hunan, China
Posted:
Mon Aug 21, 2006 6:48 pm
You need a program to convert an image file to favicon.ico, the now-standard browser icon. Just google "favicon.ico convert" and have fun.
Just reduce the size to 16x16 and change the filename to favicon.ico
All of this can be done using MS Paint....simple and included in every version of windows
_________________
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Fireboar Corporal
Joined: Dec 01, 2006
Posts: 64
Posted:
Sun Dec 24, 2006 9:49 am
True, true. Nobody needs a favicon converter... I got myself a little GIF and just changed the extension, and nobody's any the wiser.
How to implement favicons, though, is quite easy. Simply put favicon.ico in your root directory (normally public_html). I reccommend you add something to the header too. In PHPNuke it's really easy: just one file needs changing. I changed meta.php but I should probably have changed something else instead... anyway, it works. Simply put the following line somewhere in between the head tags:
_________________ http://www.fantasy-pc.com/ - PHP-Nuke website with a growing community where you can talk about anything.
Want a version of PHP-Nuke with all the bells and whistles removed? PHP-Nuke Lite is for you!
TAC_Double Nuke Soldier
Joined: Nov 08, 2003
Posts: 11
Posted:
Tue Jan 23, 2007 11:09 am
ok, can anyone tell me what file to change and what exactly to add to make this work on a nuke site.... would love to have it work, not having any luck.
Thanks
Fireboar Corporal
Joined: Dec 01, 2006
Posts: 64
Posted:
Wed Jan 24, 2007 1:58 pm
Well, waddo ya know? I've just rooted around header.php and found this:
Code:
if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
}
This is exactly the line you need. If you want a theme-specific favicon (in other words, a different favicon for each theme), go ahead and put your favicon.ico into the folder "themes/Your_Theme/images/".
If, on the other hand, you want a favicon for everything, you'll need to add something to header.php. Find the lines above, then add this just after the closing curly-bracket:
That makes it so that if there's a favicon in your root directory, it'll use that by default, but if there's a favicon in a theme's images folder, that one will override the default favicon. So just make the change then upload the favicon.ico to your root directory.
_________________ http://www.fantasy-pc.com/ - PHP-Nuke website with a growing community where you can talk about anything.
Want a version of PHP-Nuke with all the bells and whistles removed? PHP-Nuke Lite is for you!
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