| Author |
Message |
skistyle
Private


Joined: Dec 29, 2004
Posts: 40
|
Posted:
Mon Aug 21, 2006 6:25 am |
  |
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: 1116
Location: Somewhere around Louisville, Kentucky
|
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. |
_________________ Obedezco, pero no cumplo.
Admin, www.thewyvernportal.com The Wyvern Portal (a Joomla site, sorry!)
Proprietor, www.computernewbie.info
Support staff, www.nukecops.com |
|
      |
 |
perfect-games
Site Admin


Joined: Jun 18, 2004
Posts: 207
|
Posted:
Mon Aug 21, 2006 7:03 pm |
  |
what art package do you use i see if i can find you something that will add support to it
as i use paint shop pro and photoshop myself and have exporter plugins to icon format
Steve |
|
|
    |
 |
skistyle
Private


Joined: Dec 29, 2004
Posts: 40
|
Posted:
Tue Aug 29, 2006 4:35 am |
  |
I use Illustrator 10 and Photoshop 7.0. I'll look around also, thanks! |
|
|
   |
 |
skistyle
Private


Joined: Dec 29, 2004
Posts: 40
|
Posted:
Tue Aug 29, 2006 10:13 am |
  |
|
   |
 |
BrainSmashR
Support Mod


Joined: Jan 05, 2004
Posts: 1390
Location: Louisiana, USA
|
Posted:
Sun Sep 10, 2006 4:49 am |
  |
You can use any image.
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:
| Code: |
| <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> |
|
_________________ 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:
| Code: |
elseif (file_exists("favicon.ico")) {
echo "<link REL=\"shortcut icon\" HREF=\"favicon.ico\" TYPE=\"image/x-icon\">\n";
} |
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! |
|
    |
 |
TAC_Double
Nuke Soldier


Joined: Nov 08, 2003
Posts: 11
|
Posted:
Thu Jan 25, 2007 6:23 pm |
  |
FireBoar-
Thanks for you help, it worked great! |
|
|
   |
 |
|
|