Quote:
Originally Posted by dead_killer
i got a quick question is there a way to make it automatically switch to this skin without having to select it when someone logs on from a mobile or an iphone
|
Assuming the iPhone supports JavaScript redirects (hopefully it does but I dont have one to test), this should help
Edit the template of your normal
navbar template with the following (if you already have his detector javascript in there, remove it).
Code:
<script type="text/javascript">
if ((navigator.userAgent.indexOf('iPhone') != -1) ||
(navigator.userAgent.indexOf('iPod') != -1)) {
window.location.href = "$_SERVER[PHP_SELF]?<if condition="$_SERVER['QUERY_STRING']">$_SERVER[QUERY_STRING]&</if>styleid=XX";
}
</script>
Replace XX with the iPhone styleID