-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 hi all. Just incase there's any users of Wordpress [1] with the Browser Sniff plugin [2] i thought i would send this out.
Its instructions [3] from one of my mates [4] on how to add gnewsense to
the list of recognised OS's and an icon for it.
She added gnewsense to the os's list on my request, so i figure anyone
here with the same setup might like to as well [5].
**
Step 1: Add gNewSense to browsniff.php:
File should be: /path/to/blog/wp-content/plugins/browsniff.php
Text to be added:
elseif (preg_match('#gNewSense#i', $ua)) {
$os_code = "gnewsense";
$os_name = "gNewSense GNU/Linux";
}
[see the diff]
Step 2: Add gNewSense icon image to browsers directory, preserving file name
Directory should be: /path/to/blog/browsers/
**
[1] http://wordpress.org/
[2]
http://priyadi.net/archives/2005/03/29/wordpress-browser-detection-plugin/
[3] The diff is mine - browsniff.orig is the browsniff.txt shipped in
the plugin source.
[4] http://geekosophical.net/
[5] Hopefully next time we update burningdog (firefox) our OS ident will
change from Ubuntu to gNewSense, and it will become useful. if you want
to change it now just open about:config in burningdog, and search
general.useragent.vendor and change Ubuntu to gNewSense.
kk.
- --
Karl Goetz
User of gNewSense: Free as in Freedom - http://www.gnewsense.org
Australian Ubuntu users team - http://wiki.ubuntu.com/AustralianTeam
User of Debian, The Universal Operating System - http://www.debian.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFFxBMUhIBzgCf88S4RAqUhAJ4wT7l4HBvkNDKnDfeLnCnzdyJU1ACgwe4v
e2NMDyExdihgjumVOuW7On4=
=Y7NW
-----END PGP SIGNATURE-----
browsniff.diff
Description: application/pgp-keys
_______________________________________________ gNewSense-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/gnewsense-users

