View Full Version : MacOSXHints CSS - browser detection
I'm looking for the PHP style.php that the macosxhints.com uses to detect the browser/platform in order to load the proper CSS.
I have search the site, the forum and even downloaded the latest GeekLog engine. Nothing... :-(
Mabey Robg can help me here?
We are presently using JS and I hate it!
Thanks
Yaso
griffman
06-10-2003, 12:28 PM
It's a piece of code I snuck out of Geeklog 1.1 prior to the upgrade -- they removed it during the 1.3.7 revisions, for whatever reason. I then tweaked it a bit to be more Mac-specific. Here's the source to the one that builds the "Classic" layout:
http://www.macosxhints.com/layout/Classic/style.phps
Hope that helps;
-rob.
rootpoot
06-10-2003, 04:48 PM
It's never a bad idea to add
header('Content-Type: text/css');
before the output on any php file that generates css.
If you watch the console when Camino loads www.macosxhints.com, you can see it complaining about the stylesheet being sent as text/html.
No big deal, really, but it's always nice to send out proper http headers.
Thanks Rob. I'll install it right away.
Yaso
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.