3.2 & 3.3 Extensions Database 3.1 / 3.2Mobile Device

<span class="qte-attr qte_31_32-qte">3.1.x &amp; 3.2.x</span>
User avatar

Topic Author
Sniper_E
VIP
VIP
Posts: 1160
Joined: 14 Oct 2014, 19:01
    Android Chrome

Re: Mobile Device

Post by Sniper_E »

:w00t:

Edit: Wow it works!

[ Post made via Samsung Galaxy S5 Active ] Image
Last edited by Sniper_E on 28 Sep 2015, 20:56, edited 1 time in total.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

Jaantje
Users
Users
Posts: 356
Joined: 02 Nov 2014, 21:25
    Android Chrome

Re: Mobile Device

Post by Jaantje »

Sniper_E works perfectimo

[ Post made via Samsung Galaxy S4 ] Image
Grreeetttttzzzzz, Jaantje

User avatar

Bullseye
Users
Users
Posts: 60
Joined: 22 Sep 2015, 01:44
    Windows 7 Firefox

Re: Mobile Device

Post by Bullseye »

Installed!

Edit: I have someone signed in using a Samsung SM-G900F, but it's not showing up, but it's working perfect for the Galaxy Ace 4 :eusa_dance:

[ Post made via Half Life 3] Image
Last edited by Bullseye on 28 Sep 2015, 23:01, edited 2 times in total.
Image

User avatar

Topic Author
Sniper_E
VIP
VIP
Posts: 1160
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Mobile Device

Post by Sniper_E »

Just add it in on this line: elseif (preg_match('/SM-G900P|SM-G900F/i',$user_agent))

Samsung Galaxy S5 is already in the list, just not his model.

User avatar

Bullseye
Users
Users
Posts: 60
Joined: 22 Sep 2015, 01:44
    Windows 7 Firefox

Re: Mobile Device

Post by Bullseye »

In listener.php?

User avatar

Topic Author
Sniper_E
VIP
VIP
Posts: 1160
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Mobile Device

Post by Sniper_E »

Yes in the event/listener.php on line 365

[ Post made via Carrot Phone ] Image

User avatar

martin Online
Admin
Admin
Posts: 5114
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Mobile Device

Post by martin »

Test


[ Post made via Shithead ] Image
Image

User avatar

Bullseye
Users
Users
Posts: 60
Joined: 22 Sep 2015, 01:44
    Windows 7 Firefox

Re: Mobile Device

Post by Bullseye »

Thanks Sniper :eyes2:

I prefer the more conventional way of communication.... anyway.. I see it's been added to the list! :eusa_dance: :eusa_dance: :eusa_dance:





[ Post made via Bean Can ] Image
Last edited by Bullseye on 29 Sep 2015, 22:41, edited 1 time in total.

User avatar

Bullseye
Users
Users
Posts: 60
Joined: 22 Sep 2015, 01:44
    Windows 7 Firefox

Re: Mobile Device

Post by Bullseye »

Sniper_E wrote:Yes in the event/listener.php on line 365

[ Post made via Carrot Phone ] Image
I'm using notepad ++ the nexus is on that line & I want to add Samsung SM-G900F, would I need to edit it so it looked like this:
elseif (preg_match('/KTU84P|KTU84P/i|SMG900F',$user_agent))

User avatar

Topic Author
Sniper_E
VIP
VIP
Posts: 1160
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Mobile Device

Post by Sniper_E »

Bullseye wrote:I'm using notepad ++ the nexus is on that line & I want to add Samsung SM-G900F, would I need to edit it so it looked like this:
elseif (preg_match('/KTU84P|KTU84P/i|SMG900F',$user_agent))
Why did I have 2 KTU84P listed in that line? That was a copy/paste error.
That line should have looked like this at first: elseif (preg_match('/KTU84P/i',$user_agent))

You would have needed to add it in like this... elseif (preg_match('/KTU84P|SMG900F/i',$user_agent))
--- But you are trying to add that to the wrong line. Do not add it to that line. --- I told you the wrong line.
Bullseye wrote:I have someone signed in using a Samsung SM-G900F, but it's not showing up.
I put the number SMG900F in my Google search bar and it pulled up a Samsung Galaxy S5

So you would find that case...

Code: Select all

                elseif (preg_match('/SM-G900P/i',$user_agent))
                {
                    $status = 'Samsung Galaxy S5';
                }
To add that in, this line elseif (preg_match('/SM-G900P/i',$user_agent))
would be changed to elseif (preg_match('/SM-G900P|SM-G900F/i',$user_agent))
Last edited by Sniper_E on 30 Sep 2015, 02:01, edited 1 time in total.

User avatar

Bullseye
Users
Users
Posts: 60
Joined: 22 Sep 2015, 01:44
    Windows 7 Firefox

Re: Mobile Device

Post by Bullseye »

Sorry yes I think it was a copy & paste error :oops:

Ok, I have made the edit, I'll try it out tomorrow & I'll let you know how I get on :eusa_dance: :w00t:

Another edit..

And it works :eyes2: :eyes2: :eusa_dance: :eusa_dance:
Last edited by Bullseye on 30 Sep 2015, 21:53, edited 3 times in total.

User avatar

Bullseye
Users
Users
Posts: 60
Joined: 22 Sep 2015, 01:44
    Windows 7 Firefox

Re: Mobile Device

Post by Bullseye »

Noticed something odd, my Samsung Galaxy Tab 3 comes up as a note 3... :eyes2:

User avatar

martin Online
Admin
Admin
Posts: 5114
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Mobile Device

Post by martin »

Shop sold you a dud then :rolling:

User avatar

Bullseye
Users
Users
Posts: 60
Joined: 22 Sep 2015, 01:44
    Android Chrome

Re: Mobile Device

Post by Bullseye »

What are you like...... :rolling:

[ Post made via Samsung Galaxy Note 3 ] Image
Last edited by Bullseye on 07 Oct 2015, 05:12, edited 1 time in total.

User avatar

Topic Author
Sniper_E
VIP
VIP
Posts: 1160
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Mobile Device

Post by Sniper_E »

Bullseye wrote:Noticed something odd, my Samsung Galaxy Tab 3 comes up as a note 3... :eyes2:
We may have stuck your device in the wrong case.

Code: Select all

				elseif (preg_match('/SM-N9005|SM-P600/i',$user_agent))
				{
					$status = 'Samsung Galaxy Note 3';
				}
Which one of those numbers is in your user agent? SM-N9005 or SM-P600

It will need to be moved into this case...

Code: Select all

				elseif (preg_match('/SM-T310/i',$user_agent))
				{
					$status = 'Samsung Galaxy Tab 3';
				}

Post Reply Previous topicNext topic