{Mod} Adding Favico...
 
Notifications
Clear all

{Mod} Adding Favicon

25 Posts
12 Users
0 Reactions
11.5 K Views
(@chris)
Posts: 77
Trusted Member
Topic starter
 

Note: I wrote this in my journal to remind me but I thought it would be useful here too.

Description: What does your mod do?

Add a favicon(.ico) to your website on the address bar.

Requirements: Ex: Does it only work with a certain version of eFiction?

Using 3.3.1 but I'm guessing it can be used with 3.0 and up.

Mod History: This is 1.0

Download Link: Efic Mod: Favicon

Files Used: Header.php

Procedure:

Go to the Header.php and find

echo "<title>$titleinfo</title>

Add this after in a new line:

<link rel="shortcut icon" type="image/ico" href=""whichfolderisimage/favicon.ico"" />

Don't forget to add where your favicon is. That's it. Enjoy.


I charge into the light and need only yours to find my way. Archive of One: Sam Emme Tales

 
Posted : 13/10/2007 5:44 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Oh, and:

http://www.thesitewizard.com/archive/favicon.shtml

https://efiction.org/forums/index.php?topic=4626.0


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 13/10/2007 6:11 pm
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Thanks! πŸ™‚ I tried to do this once but I didn't manage to figure it out. This will probably help.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 15/10/2007 2:18 am
(@chris)
Posts: 77
Trusted Member
Topic starter
 

πŸ˜€ Hope it helps.


I charge into the light and need only yours to find my way. Archive of One: Sam Emme Tales

 
Posted : 17/10/2007 1:25 pm
(@becca)
Posts: 553
Honorable Member
 

Could you please change this to match the guidelines set here for mods, thanks πŸ™‚
https://efiction.org/forums/index.php?topic=4500.0


 
Posted : 18/10/2007 11:36 am
(@chris)
Posts: 77
Trusted Member
Topic starter
 

Hope this is beter?


I charge into the light and need only yours to find my way. Archive of One: Sam Emme Tales

 
Posted : 18/10/2007 10:25 pm
(@becca)
Posts: 553
Honorable Member
 

Yup, thanks, I will add it to the mod list now πŸ™‚


 
Posted : 18/10/2007 11:21 pm
(@lonebard)
Posts: 74
Trusted Member
 

Download link doesnt work?  :mrgreen:


 
Posted : 31/01/2008 3:57 pm
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Download link doesnt work?  :mrgreen:

It isn't really a download link, you can add one following the instructions in this thread. πŸ˜€


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 31/01/2008 4:31 pm
(@lonebard)
Posts: 74
Trusted Member
 

Doh. I thought it was kind of odd that those instructions were there but I didn't understand why there would be a download if that was how to do it.

EDIT:

My headers.php doesnt have the code in question. The closest is this...

else echo "$sitename :: $slogan";
echo "</title>

I'm running 3.2.1 and dont really plan on upgrading because I have modified a lot of efiction's source to get my coppermine fetch bridge to work.

I tried adding the code for the favicon under the similar line on my header.php but it didnt seem to work.

Any other suggestions?


 
Posted : 01/02/2008 2:04 am
 Elle
(@jenny)
Posts: 594
Honorable Member
 

Yeah, it should be fine just after </title> (as long as it's within an echo).


archive: dramione.org
site: accio.nu

Available for skin/mod commission! πŸ™‚

 
Posted : 01/02/2008 12:49 pm
(@lonebard)
Posts: 74
Trusted Member
 

Got it, Thanks.


 
Posted : 04/02/2008 7:04 pm
(@clabby)
Posts: 71
Trusted Member
 

FYI:  That last "/" should be omitted if you want your html validated.  The code will work with the extra "/" but you could cause cross browser issues.

I used this code, without the slash:

<link rel="shortcut icon" type="image/ico" href=""whichfolderisimage/favicon.ico"" >

πŸ˜€


 
Posted : 25/02/2010 11:44 am
(@forgetful-love)
Posts: 33
Eminent Member
 

What if you don't have a header.php file? I am using one of kaii's skins and all I can find is header.tpl...


 
Posted : 04/04/2010 11:13 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

You have a header.php file. It's not a skin file is all. Look in the eFiction root directory.


 
Posted : 04/04/2010 11:54 pm
Page 1 / 2
Share: