Could you tell me how to check if mobile joomla is active using the bot ?
Jomsocial is able to check whether the user agent is iphone to switch template but this is not good
I would prefer it to check if mobile joomla is active in order to switch to iphone template
Any idea how to get this ?
For now the test of jomsocial is:
if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod'))
I would like to change this for a test of mobilejoomla activated but did not get the right function through the mobilebot
with the old pdabot, that was easy, just checking if it was false or true
Jomsocial is able to check whether the user agent is iphone to switch template but this is not good
I would prefer it to check if mobile joomla is active in order to switch to iphone template
Any idea how to get this ?
For now the test of jomsocial is:
if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod'))
I would like to change this for a test of mobilejoomla activated but did not get the right function through the mobilebot
with the old pdabot, that was easy, just checking if it was false or true