steflaurent974
Active member
I have just upgraded my Blog with this really cool patch on Pixelpost.
http://www.reallyjapan.com/blog/tutorials/iphone-friendly-pixelpost/
It will detect if the browser is an iPhone or a computer and choose the good template (the HOO template for the iPhone)
NB : if you are using Pixelpost and want to add this, beware of a little mistake in the code :
if (stristr($_SERVER['HTTP_USER_AGENT'], ‘iPhone’)) {
$template_dir=”hoo”;
}else{
$template_dir=$cfgrow['template'];
}
you should replace $template_dir="hoo" by $template_dir='hoo' and then it works.
Thanks to Emmanuel R. comment who correct this.
Feel free to browse and comment my blog on your iPhone by clicking on the lin below.
Merry Christmas to all of you !!!
Stephane.
http://www.reallyjapan.com/blog/tutorials/iphone-friendly-pixelpost/
It will detect if the browser is an iPhone or a computer and choose the good template (the HOO template for the iPhone)
NB : if you are using Pixelpost and want to add this, beware of a little mistake in the code :
if (stristr($_SERVER['HTTP_USER_AGENT'], ‘iPhone’)) {
$template_dir=”hoo”;
}else{
$template_dir=$cfgrow['template'];
}
you should replace $template_dir="hoo" by $template_dir='hoo' and then it works.
Thanks to Emmanuel R. comment who correct this.
Feel free to browse and comment my blog on your iPhone by clicking on the lin below.
Merry Christmas to all of you !!!
Stephane.