•  » Engine
  •  » Failed to detect smartphone on Symbian with Opera Mobile

#1 2013-01-20 13:01:34

thimo
Member
2013-01-14
6

Failed to detect smartphone on Symbian with Opera Mobile

With Opera-Mobile on Symbian (Nokia Belle) I don't get the smartpocket theme. Symbian is not detected by the function DetectSymbianOS.

User-Agent is:

Code:

Opera/9.80 (S60; SymbOS; Opera Mobi/SYB-1204232256; U; de) Presto/2.10.254 Version/12.00

The problem can be fixed by modifying the file /include/mdetect.php:

Code:

   var $deviceSymbian = 'symbian';
+   var $deviceSymbOS = 'symbos';
   var $deviceS60 = 'series60';
   var $deviceS70 = 'series70';
   var $deviceS80 = 'series80';
   var $deviceS90 = 'series90';

...

   function DetectSymbianOS()
   {
       if (stripos($this->useragent, $this->deviceSymbian) > -1 || 
+           stripos($this->useragent, $this->deviceSymbOS) > -1 ||
           stripos($this->useragent, $this->deviceS60) > -1 ||
           stripos($this->useragent, $this->deviceS70) > -1 || 
           stripos($this->useragent, $this->deviceS80) > -1 ||
           stripos($this->useragent, $this->deviceS90) > -1)
         return $this->true; 
      else
         return $this->false; 
   }

Last edited by thimo (2013-01-20 13:18:15)

Offline

 

#2 2013-01-20 13:07:46

flop25
Piwigo Team
2006-07-06
7037

Re: Failed to detect smartphone on Symbian with Opera Mobile

Hi
Thanks for your feedback. Could you warn them http://blog.mobileesp.com/.? That's their script
And Could you open a ticket for us in http://piwigo.org/bugs/main_page.php thanks again


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 
  •  » Engine
  •  » Failed to detect smartphone on Symbian with Opera Mobile

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact