[eluser]Kepler[/eluser]
First of all you need to know what HTTP_USER_AGENT your blackberry is sending. You can detect this by creating a php page on your server that contains only:
Code:
<?php phpinfo(); ?>
Bring up this page on your blackberry and look for HTTP_USER_AGENT. I don't have a blackberry so I don't know what the string looks like. A quick search on the web says that there should be "BlackBerry" in the string. This should be your pattern. Make sure to use some substring that uniquely identifies your browser/platform.
Now add:
Code:
$platforms = array (
...
'BlackBerry' => 'BlackBerry OS' // I am not sure what OS BlackBerry uses.
);
$browsers = array(
...
'BlackBerry' => 'BlackBerry browser' // again, I am not sure what browser the BlackBerry uses.
);
$mobiles = array(
...
'BlackBerry' => 'BlackBerry'
);
I recommend doing some research so you know what OS / browser this device uses. The right-hand side values should match the correct browser / OS so your logic takes the correct action.