WebsiteIcon

Summary: Add browser website icon (favicon) from config.php
Version: 1.1
Prerequisites: none
Status: Working
Maintainer: GNUZoo
Categories: Layout

Questions answered by this recipe

  • How can I set a favicon without changing my skin?
  • How can I put an icon into the browser?

This section is optional; use it to indicate the types of questions (if any) this recipe is intended to answer.

Description

This makes is easy to set an icon in you config.php file. Just set the variable $FavIcon. This is handy in a farm environment. You can use the include just one in the farmconfig.php file and then in each wiki's local config.php just set the variable $FavIcon. If you set the variable $FavIcon in the farmconfig.php and not in the local wiki's config.php then the local wiki will have a default website icon.

$FavIcon = 'http://gnuzoo.org/momentum/pub/note.ico';
include_once("$FarmD/cookbook/WebsiteIcon.php");

On a farm you might put

SDV($FavIcon, 'http://gnuzoo.org/farm/uploads/ham.ico');
include_once("$FarmD/cookbook/WebsiteIcon.php");

Installation

Copy WebsiteIcon.phpΔ to your cookbook directory

In your config.php enter:

include_once("cookbook/WebsiteIcon.php");

or in your farmconfig.php enter:

include_once("$FarmD/cookbook/WebsiteIcon.php");

Notes

Release Notes

This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation http://www.fsf.org either version 2 of the License, or (at your option) any later version.

Copyright 2007 by GNUZoo email: guru [snail] gnuzoo [period] org

Please donate to the author at url: http://gnuzoo.org/GNUZooPayPal

  • Version: 1.1 Put the variable $FavIcon in single quotes so it is processed after config files
  • Version: 1.0 Initial Release

Comments

See Also

Cookbook /
Favicon  Add a Favicon to your website (Mature)

Contributors

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.