View Single Post
Posts: 8 | Thanked: 0 times | Joined on Jun 2008
#1
Hi all,

I am making a wordpress blog, and while looking for themes, I found this -
http://www.bravenewcode.com/wptouch/ .

It looks really cool for iPods, but I was wondering if I could make it work for the n800 and n810.

I saw part of the php code was this -

function detectAppleMobile($query = '') {
$container = $_SERVER['HTTP_USER_AGENT'];
//print_r($container); //this prints out the user agent array. uncomment to see it shown on page.
$useragents = array("iPhone", "iPod", "Aspen");
//print_r($container); //this prints out the user agent array
// Add whatever user agents you want here if you want to make this show on a Blackberry or something. No guarantees it'll look pretty, though!
$useragents = array("iPhone", "iPod", "Aspen", "n800", "n810",);
$this->applemobile = false;
foreach ($useragents as $useragent) {
if (eregi($useragent, $container)) {
$this->applemobile = true;
}
}
}
Did I do the useragents part correctly? Or would I have to enter something else...
I could install it right now and ask someone if it displays properly... right now my n800 is at the Nokia Repair Center .

Thanks!
Budgetperson