On a project I was working on recently, I was pulling in some css for iPhone users using PHP with the following code: <php if (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone")) { ?> … CUSTOM CSS FOR IPHONE… <php } ?> This will also work for iPhones and iPod Touch: <php if (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { ?> … CUSTOM CSS… […]
Comments Off on CSS for iPhone's eyes only (watch out for the cache)
A project I was working on recently required the use of a membership plugin. I had done some research on membership plugins awhile back and remembered only finding ones that were pretty pricey. One last ditch effort searching through the plugin repository on WordPress.org – I found one that I hadn't remembered seeing before: S2Member. […]
Showing random quotes isn't anything new. When I needed to do something similar on a site recently, there were plenty of pre-written scripts to choose from. The trick however, was that I wanted to show more than one quote at a time (and of course I didn't want to show the same quote twice. That […]