Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1329)
Obsolete
http://custom.simplemachines.org/mods/index.php?mod=702
Quote from: BOS4O on August 13, 2008, 01:54:16 PM
http://custom.simplemachines.org/mods/index.php?mod=702 (http://custom.simplemachines.org/mods/index.php?mod=702)
Karl's version applies only to SMF 1.1 through 1.1.4. My mod applies both to the current release 1.1.5 and 2.0b3.1 too, and was written without benefit of reading Karl's code, not that it takes a genius to write this stuff, although it does take somebody willing to do the scut work to get the code out to the public.
This modification is intended for newbies who would rather not manually edit their code themselves. Experts are invited to mess up their own code any way they see fit!
Please note the helpful information in the readme.txt file including a link to an on-line favicon generator.
Mine doesn't work for SMF 2.x because CCTimeWiz is taking over development of my mod.
And is adding 2.x support.
There's always room for more mods. Gimme a shout if you need a hand with that! ;)
In the mean time my mod supports both active versions of SMF, 1.1.5 and 2.0b3.1. :)
OK, I installed with no problem. I made a 16X16 image and saved it as favicon.ico (attached)
I put it in var/www/html and got nothing... what else am I supposed to do?
It should be located in your web root. Please state your website URL or if you prefer to not give it out publicly just PM the site to me and I will keep it confidential. And I'll have a look. You should be able to view it by something like: http://www.mysite.com/favicon.ico
I looked at your ICO file and it seems okay to me. I would use 16x16 but 14x16 should present no problems. I'm here for you podner' :) I'll help you figger' it out if I can. :)
The site open for business, yet, but it is hosted and live. (Just not taking registrations.) Here's the link..
I tried to go back further with Fireftp, but when I go to var/www it won't let me transfer anything to that portion.. I put it in var/www/html and in my main forum file just in case...
http://www.motorstorm-rpms.org for the site
http://www.motorstorm-rpms.org/community/index.php
You are running a portal over SMF, and I might add, a very nice looking site!!! :)
You will have to add the favicon META tags to your portal to have it show up on the initial portal page. I'll help you here if you ask.
I note that the favicon is showing up fine when you go to your forum, reporting here with my Firefox 2.x browser. Different browsers will have different behavior.
So if you want to add the lines to your portal, just add these lines:
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
The first line is required and the second line is advisable, from what I've read.
Cool, will do.
Thanks for the nod about the site. I can't take credit for it though. I adjusted some colors to some images, but my inspiration was the ShinyBlue theme from JohnnyB. I loved his theme, but I didn't want to stray away from the default theme, so I modified the default theme and took what I liked from his color palette. The tabs on his are a little more shiny. I wanted a little more distinction in the shades instead of smooth transitions in the tabs. I tried to make it my own when I could. I find it easier to do mods when you use the default theme. The site this is going to replace is more my own color palette and has a nice banner area at the top which I haven't put on this one, yet. (http://www.tk2012tournaments.com/forum/index.php) Anyway, didn't mean to hijack your thread!
I'll do the code and see what happens! Thanks for the help!
DOH!! The reason I couldn't see it was the theme I was using for Firefox3 As soon as I turned it off... THERE IT WAS!!
Don't worry about the thread hijack. I just L*O*V*E being part of the SMF community, and that's why I'm uploading my mods. If you can't find help in my thread, or if you just want to start a topic specific thread, I look over the new posts here at SMF several (dozen) times a day and whenever I see a topic that I feel I can contribute to, I offer my help in my reply. Sometimes I'm just butting in, sometimes I'm just flat out wrong, and sometimes I think I might have just the right answer.
Each of us at SMF forums has a unique experience, and mine is no less unique than anybody else's. Sometimes I just don't know WTF the topic is about, and sometimes it strikes right to my own specific knowledge.
And in fact as I get more experienced I find that I know more and more about less and less, and ultimately I expect to know everything about nothing! :D
Well I took the favicon topic on. I'm game to explore all aspects of favicons. Keep the questions coming in and I hope I'll have all the answers. :)
I installed this mod manually and that was too easy :) You must change only one file. Thanks for this small but necessary mod Deprecated. No problem, it works great!
Pspturkey, this mod is for two types of people. (1) Novices who are not comfortable editing their own files. (2) More advanced people who like the idea of keeping their software configuration in mod packages (like myself).
I began modding my SMF by editing my local copies and then uploading them to my forum server. I kept detailed notes and as time went on my notes became more complicated... and more incomprehensible. After only a week of fairly active editing I realized that I had a mess on my hands, and that if my SMF needed reinstallation I would have to start over.
Today I have a mod package for every change I've made. If I need to start over, all I have to do is upload fresh copies of the SMF distribution files, and then just run each of my mod packages until they are all installed and the forum is back to the configuration I want.
That's why silly little modifications like this are good. It's not that most of us cannot edit our forum's source files. It's that many of us like myself find it difficult to keep track of all the big and little changes we've put into our forums. So anybody who is thinking ahead should consider doing the same as I do, keeping all the changes in mod packages where they can be handily reapplied whenever desired.
You're very welcome!
Does this Mod work for subdomains
http://boards.findtheweb.net <- my forum
http://findtheweb.net <- i want the following favicon to appear
Put the same favicon in both directories. It should work fine.
Site: Daisukesdojo.heliohost.org/
Can't get it to work. I have a portal also, and am humbly asking for help :)
Put your favicon in the same directory as your SSI.php and index.php. Put another one in the root of your domain if it is different. Clear your browser cache and/or private data. Then try it.
Gotcha. Thanks very much, works great!
Struggling to get it to work here
http://www.clanvmk.com/favicon.ico
Ico file is there, my host had one there anyway, I have also copied it to here
http://www.clanvmk.com/clanvmk/forum/favicon.ico
Which is my forum root
http://www.clanvmk.com/clanvmk/forum/index.php
The lines are definately in my ./Themes/default/index.template.php as per instructions.
Any ideas?
Probably something silly I guess?
Perhaps something in this guide might assist you.
[HOW TO] Add a favicon (bookmark/favorite icon) to your forum (http://www.simplemachines.org/community/index.php?topic=236748.0)
Yes. Something silly. You didn't clear your browser cache. When I go to your forum root I see a favicon with a 3x3 squares pattern, white lines, black background. That's it, right? If so, then it's only your own browser with the problem.
That is the browser cache and you are seeing it at my forum?
I cleared browser cache before posting here and wasn't showing.
Strange one.
I'll try again.
How could I describe it if I didn't see it? I'm good but I'm not that good! ;)
If I described your favicon adequately then the problem must be your browser cache.
love the mod!
This modification has been verified to work properly with both SMF 1.1.6 and SMF 2.0 Beta 4.
just a little booboo I noticed on the mod page:
First Created:
10 August 2008, 09:40:13
Last Modified:
07 October 2008, 09:57:56
You created it after you modified it. LOL
:)
- Greg
I can time travel. Didn't I tell you that?
Do you have the right mod? This one doesn't have a version history. This mod is hardly even a mod.
Quote from: Deprecated on October 15, 2008, 12:04:45 AM
I can time travel. Didn't I tell you that?
Do you have the right mod? This one doesn't have a version history. This mod is hardly even a mod.
I have it installed... that info I posted is off the mod page HERE.. On the smf mod site....
- Greg
I appreciate your errata but this mod hasn't got a revision history yet, although it should have a version 1.0 notation. But it doesn't.
Quote from: Deprecated on August 14, 2008, 10:53:08 PM
You are running a portal over SMF, and I might add, a very nice looking site!!! :)
You will have to add the favicon META tags to your portal to have it show up on the initial portal page. I'll help you here if you ask.
I note that the favicon is showing up fine when you go to your forum, reporting here with my Firefox 2.x browser. Different browsers will have different behavior.
So if you want to add the lines to your portal, just add these lines:
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
The first line is required and the second line is advisable, from what I've read.
I'm using TinyPortal, please can you tell me exactly which file I need to edit, and exactly where I should put this code. Thanks.
Sorry, I know nothing about TP. I don't know which files.
i have the .ico file in my root, in my public_html fold and even my forum folder. I've made the appropriate mod to my index.template.php for the theme I'm using. Cleared the cash on both ie and ff. No icon... :\
Edit: Scratch that, it works in ff, but not ie.
Are there further steps required for ie7?
Thought I might bump this as I'm having the same issue for IE7 as the last poster. Any advice anyone? My favicon seems to work on google chrome, and older IE's. I haven't tried on any other internet browsers though.
Bump.
Any ideas anyone? My favicon works on Google chrome, but not IE. :(
I cant get this to work, I added the code to the index.template in the default theme folder,
and uploaded my favicon.ico to my root directory (and basically ever other directory/themes etc)
but its not working..........
Doesn't work with Firefox. Works with Internet Explorer, Chrome and Safari (probably on Opera too).
Because you used "/favicon.ico" instead of "http://www.example.org/favicon.ico"
It's a better idea to use an argument to get the path to the forum root, and use that to put favicon.ico in.
What is the link to post my favicon using the favicon mod? I can't find it under the admincp...
worked great with my forum.
Thanks for the mod
I know this is old so sue me lol.
1) The mod installed fine on 2.0.4
2) I got my image, resized to 16x16 and veen renamed it to favicon.ico
3) Uploaded it to the forums root, where index.php lies
4) Still not seeing my icon, could be a cache thing.
All that said, could someone please visit my site at the following URL and let me know if the icon shows for you please ?
http://www.dust514corps.com
Yep - looks ok
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FUv2d4F8.jpg&hash=f6981ddad8d91bded9b9efac102e9efff4ee13c3)
Quote from: Shambles on March 08, 2013, 01:07:57 PM
Yep - looks ok
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FUv2d4F8.jpg&hash=f6981ddad8d91bded9b9efac102e9efff4ee13c3)
Ok, thx... so it's just a cache thing for me then.
I thought CTRL F5 would work for IE but doesn't seem to have. Either way don't matter too much for me so long as it works for others.
Am curious though whats up on my end heh
This mod is scheduled for an update in the very near future to be compatible with SMF 2.0.6.
As far as I remember Ctrl-F5 works fine in IE (and Firefox). Yes you have to refresh your cache to see the effect of the change.
Verified operational with SMF 2.0.9.
The latest version of this modification has just been updated to utilize integration hooks. Thus, there should be no possibility of cross modification incompatibility or other problems.
It is expected that this modification is with all SMF 2.0 versions and is likely to be compatible with SMF 2.1 versions too.
Is this functionality even relevant these days?
I thought all standard browser cores implemented root favicon support.
Thank you for your reply. Evidently I spent 3-4 hours wasting my time updating this modification to be compatible with SMF 2.0.x and SMF 2.1.x.
It feels good to have my work appreciated.
Thanks for the mod, I couldn't figure out how to get favicons working but this cleared it up for me. I appreciate it a lot.
Thanks dementual. Actually IIRC this is one of my fist mods. I can't understand why SMF hasn't incorporated it into the code base, maybe 2.1.
All this mod does is include the necessary header lines to tell browsers to fetch your favicon. Most browsers do this automatically so this mod is somewhat dated, but I still use it. Just recently a member of one of my forums asked why we had no favicon even with the mod. I guessed he had a primitive browser.
Perhaps the links in the OP telling you how to create a favicon may be more useful than the mod itself! :)
Because it is not necesarry... Just adding the favicon file to the root directory is all that is needed. The line in the template is not actually needed
Kindred, read the mod OP for my tutorial on GETTING a favicon.ico. MOST modern browsers automatically search for favicon.ico. Let's not disappoint them. Leading a horse to drink won't make him water. It's better to have the declarations in the HEAD section.
And if nothing else anybody who reads this topic can get a brief tutorial on how to make a favicon.ico and links to sites to help them create favicons.
And if we want to be blunt about it, this mod is probably not needed, but if you weeded the Custom Site you'd have a lot of disappointed mod authors who found their ranking drop, perhaps drastically, perhaps particularly if you weeded all 1.x mods out. (This mod is both 1.x and 2.x friendly.)
Most us mod authors get not much except prestige of the number of mods we have written and the sweat we expended. I think this may have been my first mod.
Please, don't ridicule your mod authors. Respect and prestige is all we work for. Donations? LOLOLOL!
Weed out all the mods that have been passed on by the future and you'll discourage mod authors from making any more mod package submittals. Just today I am looking to remediate my "Look But No Read" mod that was very popular until a small security issue sidelined it.
To my thinking, you should encourage mod package authors instead of ridiculing their contributions as "not necessary." Maybe it isn't necessary but it does help, and I run this mod to even today on my production site, just in case it helps some.
So make fun of my mod of you wish. Discourage me from writing more. Go read the "Death of SMF" topic and enjoy yourself. Frankly I think you are not being very diplomatic.
In other topics I respect you but you should not ridicule mod authors, particularly in their own mod topics, lest they just go away in dejection.
Then what'cha gonna do? Let the devs write all the mods?
I didn't ridicule you... You asked why this was not already added to smf core in a somewhat snide tone... I answered why... It's not needed.
If folks want to use it, sure... It won't hurt, but it's not necesarry
I apologize if my tone seemed snide. I did not intend to offend anybody.
guys how to make this work? there is no option to set url or what?
http://custom.simplemachines.org/mods/index.php?mod=1329
Quote from: tornix on October 30, 2016, 08:16:02 AM
guys how to make this work? there is no option to set url or what?
http://custom.simplemachines.org/mods/index.php?mod=1329
Wouldn't have thought you'd need a mod nowadays, just upload the Favicon to your forum root, most browsers will pick it up, even if it takes a while.
http://wiki.simplemachines.org/smf/Favicon.ico
Quote from: tornix on October 30, 2016, 08:16:02 AM
guys how to make this work? there is no option to set url or what?
http://custom.simplemachines.org/mods/index.php?mod=1329
In future, please post questions regarding a mod in its support topic, rather than raise a five year old topic in Tips and Tricks. Merged into mod support topic.
Since this topic keeps coming up in my new topic notifications, I feel motivated to offer a few final words. I hope this will end discussion on the topic since I feel there is no justification for further discussion.
Yes modern browsers look for your favicon. No they don't always find it. Yes, some people use obsolete browsers (for whatever reason) and it helps their browsers. No, it is not necessary if you are using a modern browser. Yes, whenever I access my websites using FF, IE, Opera or Safari I always see an access to my favicon. No, I don't know what they would do if the express declaration of where the favicon is located if I didn't use this mod in all my sites. Yes, I would expect if you have a favicon that modern browsers will eventually find yours. No, I don't believe they will find it all the time without one, two or more accesses to find out the true URL and snap it up in the first access.
So to sum it up, this mod is probably unnecessary with modern browsers although people still use old browsers and it may help those who use old browsers, and to a degree it may help more modern browsers by explicitly telling them with one access exactly where your favicon is located, but chances are that it probably will make no practical difference to those who run the latest browser versions and have their websites organized that the favicon is located where modern browsers expect to find it.
As a last word, you still have to MAKE a favicon in order to have one, and my references for the mod have good suggestions on sites that help you easily design your own favicons particularly if you opt for the most minimal favicon.
And as a last, last word :) I think this might have been the first mod I ever wrote, or near it, so I kind of like it just because it was my introduction into what became for a time me being one of the top mod package authors (I peaked at #3, behind Karl Benson of course) so back in the day I wrote it, it was relevant to many although today it may be simply a vestige or at best an accelerator to get a browser to the right favicon first access.
So for those who use it I hope you like it or find it useful, and for the rest all I can say is that if you don't need it, move on.
I hope this will be the final word on this modification. I don't see any further need to use it. But for the record, I still use it on my production site, it works fine, and I believe that it is still useful even in the context of the latest SMF 2.0.x release.