2010-03-14, 14:18:56
Hey guys,
I am working on my first plugin. Basically I would like my plugin to detect the user's browser
and then set the theme correctly. Basically it will automatically set the theme to IPhone Theme if
a user visits the site from an IPhone.
I have written the back end of the script (V.1.0 will have no options V.2.O will have the option to select
witch theme to switch to for an IPhone).
So here are my questions:
1. How should I go about automatically changing the theme for the iphone?
That is the code I will be using to detect the browser.
2. What Plugin Hooks do I need to use for this to work (I already have the back end working...)
3. Would any one actually be interested in this other than me?
Thank you in advance for any help!!!
I am working on my first plugin. Basically I would like my plugin to detect the user's browser
and then set the theme correctly. Basically it will automatically set the theme to IPhone Theme if
a user visits the site from an IPhone.
I have written the back end of the script (V.1.0 will have no options V.2.O will have the option to select
witch theme to switch to for an IPhone).
So here are my questions:
1. How should I go about automatically changing the theme for the iphone?
Code:
<?php if (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== FALSE)
{ 'THIS WILL BE MY CODE TO CHANGE THE THEME }
?>
2. What Plugin Hooks do I need to use for this to work (I already have the back end working...)
3. Would any one actually be interested in this other than me?
Thank you in advance for any help!!!
JWH Technologies
Have any marketing ideas for Get-Simple? Let me hear them!
Have any marketing ideas for Get-Simple? Let me hear them!