okay heres the thing, sumwhr around here Gumslone posted this code
it shows users actualy phone model if they come at site with browsers tht shown as mozila...
4 my needs i corected it a lil bit
(its the same, it just shows detailed browser)
and
it works!!!!!! im using Opera 8.65 and it shows tht my browser is nokia n80 (before - mozila)
but why if i browsing with opera mini it still shows freakin opera and not nokia n80????????????????????????????????
is it posible 2 make it show phn model when u browsing with opera mini?????????????
Code:
function mobile_phone($_mob_ua)
{
$_position=strpos($_mob_ua,"Nokia");
if($_position)$_mob_ua = substr($_mob_ua, $_position,25);
else $_mob_ua=$_mob_ua;
$phone = explode ('/', $_mob_ua);
return $phone[0];
}
4 my needs i corected it a lil bit
Code:
function mobile_phone($_mob_ua)
{
$_position=strpos($_mob_ua,"Nokia");
if($_position)$_mob_ua = substr($_mob_ua, $_position,25);
else $_mob_ua=$_mob_ua;
$phone = $_mob_ua;
return $phone;
}
and
it works!!!!!! im using Opera 8.65 and it shows tht my browser is nokia n80 (before - mozila)
but why if i browsing with opera mini it still shows freakin opera and not nokia n80????????????????????????????????
is it posible 2 make it show phn model when u browsing with opera mini?????????????
Comment