[mobile] Failed to detect smartphone on Symbian with Opera Mobile #216

Open
opened 2026-10-04 23:47:44 +02:00 by adam · 1 comment
Owner

Reported by thimo on 20 Jan 2013 12:42

Version: 2.4.6

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

User-Agent is:
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:

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;
    }

Piwigo Bugtracker #2824

**Reported by thimo on 20 Jan 2013 12:42** **Version:** 2.4.6 With Opera-Mobile on Symbian (Nokia Belle) you don&#039;t get the smartpocket theme. Symbian is not detected by the function DetectSymbianOS in mdetect.php. User-Agent is: 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: var $deviceSymbian = &#039;symbian&#039;; - var $deviceSymbOS = &#039;symbos&#039;; var $deviceS60 = &#039;series60&#039;; var $deviceS70 = &#039;series70&#039;; var $deviceS80 = &#039;series80&#039;; var $deviceS90 = &#039;series90&#039;; ... function DetectSymbianOS() { if (stripos($this-&gt;useragent, $this-&gt;deviceSymbian) &gt; -1 || - stripos($this-&gt;useragent, $this-&gt;deviceSymbOS) &gt; -1 || stripos($this-&gt;useragent, $this-&gt;deviceS60) &gt; -1 || stripos($this-&gt;useragent, $this-&gt;deviceS70) &gt; -1 || stripos($this-&gt;useragent, $this-&gt;deviceS80) &gt; -1 || stripos($this-&gt;useragent, $this-&gt;deviceS90) &gt; -1) return $this-&gt;true; else return $this-&gt;false; } [Piwigo Bugtracker #2824](http://piwigo.org/bugs/view.php?id=2824) <!-- github-sync-id:97226520 -->
Author
Owner

Comment posted by thimo on 20 Jan 2013 16:42

Should by fixed by the author of MobileESP in the next version.

**Comment posted by thimo on 20 Jan 2013 16:42** Should by fixed by the author of MobileESP in the next version. <!-- github-comment-id:124893009 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#216