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:
Oh, and:
http://www.thesitewizard.com/archive/favicon.shtml
https://efiction.org/forums/index.php?topic=4626.0
archive:
site:
Available for skin/mod commission! π
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
π Hope it helps.
I charge into the light and need only yours to find my way. Archive of One:
Could you please change this to match the guidelines set here for mods, thanks π
https://efiction.org/forums/index.php?topic=4500.0
Hope this is beter?
I charge into the light and need only yours to find my way. Archive of One:
Yup, thanks, I will add it to the mod list now π
Download link doesnt work?
Download link doesnt work?
It isn't really a download link, you can add one following the instructions in this thread. π
archive:
site:
Available for skin/mod commission! π
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?
Yeah, it should be fine just after </title> (as long as it's within an echo).
archive:
site:
Available for skin/mod commission! π
Got it, Thanks.
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"" >
π
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...
You have a header.php file. It's not a skin file is all. Look in the eFiction root directory.