Page Index Toggle Pages: [1] 2 
Topic Tools
 10 Where to put the link to favicon? (Read 442 times)
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,072
Location: Earth

YaBB 2.6.0
Re: Where to put the link to favicon?
Reply #23 - Feb 27th, 2013 at 5:56pm
Post Tools
But most browsers will also look for a
Code
Select All
<link rel="icon" type="image/gif" href="favicon.gif" /> 

line in an html page to see if the favicon should be something different than favicon.ico.

  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
JonB
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 3,768
Location: Land of the Blazing Sun!

YaBB 2.6.0
Re: Where to put the link to favicon?
Reply #22 - Feb 27th, 2013 at 2:15pm
Post Tools
"In theory" only - a 'host' only has one favicon and it is always in the root of the web.  That's the only place bots and browsers look for it.  In this case the term 'host' is in the true server/subdomain sense.

www.myhosty.com
trust.myhosty.com
portal.myhosty.com


are all hostnames (Linux speak) on the same domain.

Those could be vhosts (Apache)  or virtual webservers (IIS) on the same physical server OR be totally separate machines - that all comes down to DNS resolution.

Wink

Edited:
just like robots.txt  Exclaim
« Last Edit: Feb 27th, 2013 at 2:25pm by JonB »  

I find your lack of faith disturbing.
Back to top
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,548
Location: Los Angeles

YaBB 2.4
Re: Where to put the link to favicon?
Reply #21 - Feb 26th, 2013 at 12:09am
Post Tools
Quote:
If anyone is interested there is an Add-On for Firefox that restores Favicons to the location bar in the browser.

https://addons.mozilla.org/en-US/firefox/addon/favicon-restorer/?src=api

That favicon address bar restorer worked perfectly Smiley

« Last Edit: Feb 26th, 2013 at 1:22am by Bill Myers »  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Derek Bullock
Ex Member


Re: Where to put the link to favicon?
Reply #20 - Feb 25th, 2013 at 10:42pm
Post Tools
Quote:


If anyone is interested there is an Add-On for Firefox that restores Favicons to the location bar in the browser.

https://addons.mozilla.org/en-US/firefox/addon/favicon-restorer/?src=api
  
Back to top
 
IP Logged
 
Homer J. S.
God Member
*****
Offline



Posts: 1,949
Location: Germany

None
Re: Where to put the link to favicon?
Reply #19 - Feb 9th, 2013 at 10:49am
Post Tools
Hm... never tried that. My older pojects all use the same favicon. But it would be interesting to know.
  

My Homer is not a communist. He may be a liar, a pig, an idiot, a communist, but he is not a porn star.
www.silenthill-forum.de (YaBB 1.3.1 with 150+ mods)
www.retrogamerwelt.de (YaBB 2.5.2)
Back to top
WWWICQ  
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,548
Location: Los Angeles

YaBB 2.4
Re: Where to put the link to favicon?
Reply #18 - Feb 8th, 2013 at 9:44pm
Post Tools
Good to know.

I wonder if different sites on the same domain can use different favicons if they're all put in the root folder?

In other words:

Site 1 could use favicon.ico - site 2 could use favicon2.ico - site 3 could use favicon3.ico - and so on, and so forth.

  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Homer J. S.
God Member
*****
Offline



Posts: 1,949
Location: Germany

None
Re: Where to put the link to favicon?
Reply #17 - Feb 8th, 2013 at 9:40pm
Post Tools
My icon now also appears with anchors because I put it into the root folder of the domain. But that's only working if all sites of a domain use the same icon.
  

My Homer is not a communist. He may be a liar, a pig, an idiot, a communist, but he is not a porn star.
www.silenthill-forum.de (YaBB 1.3.1 with 150+ mods)
www.retrogamerwelt.de (YaBB 2.5.2)
Back to top
WWWICQ  
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,548
Location: Los Angeles

YaBB 2.4
Re: Where to put the link to favicon?
Reply #16 - Feb 8th, 2013 at 5:39pm
Post Tools
Homer J. S. wrote on Feb 8th, 2013 at 1:48pm:
I'm still interested in WHY the icon does only work if the url has no anchor.

I'm with you on that. Smiley

What I've determined is that you and I aren't doing anything wrong per se because this is evidently a browser issue.

Specifics regarding anchors (at least for me in our forum):

Chrome and Safari work just fine. Even with an anchor, our favicon.ico appears each and every time in both browsers.

Firefox works fine except when an anchor is used, in which case our favicon.ico does not appear.

Internet Explorer only displays its own favicon.ico - ours never appears. It should be noted, however, in Carsten's forum his favicon does appear; including the address bar! Plus, his also appears even when an anchor is used. I'm amazed!

My gut is telling me there's a cache issue of some kind on my end that's causing problems with the various browsers rather than the browsers themselves.

Still, I prefer to blame the browsers. Cheesy

  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,072
Location: Earth

YaBB 2.6.0
Re: Where to put the link to favicon?
Reply #15 - Feb 8th, 2013 at 4:01pm
Post Tools
Homer J. S. wrote on Feb 8th, 2013 at 1:48pm:
I'm still interested in WHY the icon does only work if the url has no anchor.



As Bill pointed out - that's the way it is.

(And in some forum software, there's no way to bookmark a single post as they don't use any individual post anchors on the page.)
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Homer J. S.
God Member
*****
Offline



Posts: 1,949
Location: Germany

None
Re: Where to put the link to favicon?
Reply #14 - Feb 8th, 2013 at 1:48pm
Post Tools
Dandello wrote on Feb 8th, 2013 at 5:54am:
Of course, you could do like some of us do - name the favicon 'favicon' and put it in the root. Which is where the browser is looking for it first.  Roll Eyes


Well, that works if I put the icon into the first folder of the domain. But if I habe some other project some time which uses the same domain but not the same folder it won't work anymore. Because if I put the icon into the folder "forum" it's not recognized.

I'm still interested in WHY the icon does only work if the url has no anchor.
« Last Edit: Feb 8th, 2013 at 1:53pm by Homer J. S. »  

My Homer is not a communist. He may be a liar, a pig, an idiot, a communist, but he is not a porn star.
www.silenthill-forum.de (YaBB 1.3.1 with 150+ mods)
www.retrogamerwelt.de (YaBB 2.5.2)
Back to top
WWWICQ  
IP Logged
 
xnoddyx
Support Team
Documentation Team
YaBB Moderators
YaBB Next Team
Beta Testers
****
Offline



Posts: 1,584
Location: UK:Scotland/livingston

None
Re: Where to put the link to favicon?
Reply #13 - Feb 8th, 2013 at 12:43pm
Post Tools
there was one missed out for Firefox
Code
Select All
<link rel="icon" href="animated_favicon.gif" type="image/gif" > 



after having a look at this

Quote:


and did a test it don't work now oh well and another one bites the dust.
  

YaBB install help video
1. what yabb forum are you running and the url
2. describe in as much detail as you can what happens and also post screenshots if you can
3. please be patient we live in different time zones and have other commitments but we will help you
as bill and ted say (Be excellent to each other)
Back to top
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,548
Location: Los Angeles

YaBB 2.4
Re: Where to put the link to favicon?
Reply #12 - Feb 8th, 2013 at 7:37am
Post Tools
Quote:
No wonder our favicon disppeared from the address bar of Firefox. That is interesting. Smiley

  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Derek Bullock
Ex Member


Re: Where to put the link to favicon?
Reply #11 - Feb 8th, 2013 at 7:33am
Post Tools
  
Back to top
 
IP Logged
 
Bill Myers
God Member
Beta Testers
*****
Offline



Posts: 1,548
Location: Los Angeles

YaBB 2.4
Re: Where to put the link to favicon?
Reply #10 - Feb 8th, 2013 at 7:25am
Post Tools
Dandello wrote on Feb 8th, 2013 at 5:54am:
Of course, you could do like some of us do - name the favicon 'favicon' and put it in the root. Which is where the browser is looking for it first.  Roll Eyes

Right, and that's where it should be anyway. Reportedly, modern browsers don't need either of the following on any of your pages to find your favicon (I've kept both references on our site anyway):

Code
Select All
<LINK REL="BOOKMARK ICON" HREF="http://www.YourSiteName.com/favicon.ico">

<LINK REL="SHORTCUT ICON" HREF="http://www.YourSiteName/favicon.ico">
 


However, if you don't reference this in your forum's template, your favicon won't show up. So in between <head> and </head> you need the following:

Code
Select All
<LINK REL="SHORTCUT ICON" HREF="http://www.YourSiteName/favicon.ico">
 


That's why this forum's favicon doesn't show up in the forum.

Even then, your icon will disappear whenever you use an anchor in your address bar.

That's just the way it is. Roll Eyes

« Last Edit: Feb 8th, 2013 at 7:34am by Bill Myers »  

Morning, noon, or night, have a great one!

Note: This forum doesn't allow for us to freely edit our posts or topics to make corrections as needed, so please remember to look for subsequent posts if you see any mistakes or outdated information. Sorry for the inconvenience.
Back to top
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,072
Location: Earth

YaBB 2.6.0
Re: Where to put the link to favicon?
Reply #9 - Feb 8th, 2013 at 5:54am
Post Tools
Obviously the forum that was using the base href attribute has something else going on as well - their favicons work right - but I can't see it in their code.
Edited:
Of course, you could do like some of us do - name the favicon 'favicon' and put it in the root. Which is where the browser is looking for it first.  Roll Eyes
« Last Edit: Feb 8th, 2013 at 6:03am by Dandello »  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Topic Tools
 
  « Board Index ‹ Board  ^Top