Scheduled Maintenance: 10-11-2025 Electricity company maintenance between 09:00 and 15:00.

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

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

Re: Mobile Device

Post by Bullseye »

I added the images, but when I when I added the listener.php file, it killed my board :yikes:

I got this message:

Code: Select all

Catchable fatal error: Argument 6 passed to sniper\mobiledevice\event\listener::__construct() must be an instance of phpbb\auth\auth, none given, called in /home1/bullseye/public_html/cache/container_0374ec857381230fa83049643ce3cdee.php on line 2628 and defined in /home1/bullseye/public_html/ext/sniper/mobiledevice/event/listener.php on line 49
Image

User avatar

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

Re: Mobile Device

Post by Sniper_E »

Bullseye wrote:I added the images, but when I when I added the listener.php file, it killed my board :yikes: [/code]
Just put your original listener.php back in and edit in the missing devices that you see in your mobile logs.

Just follow these simple directions: Mobile Device
Last edited by Sniper_E on 13 Oct 2015, 04:50, 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

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

Re: Mobile Device

Post by Bullseye »

Thanks Ed :eyes2:

[ Post made via Samsung Galaxy Ace 4 ] Image

User avatar

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

Re: Mobile Device

Post by Bullseye »

Delete this post it was a glitc.. I only wanted to say thanks once lol
Last edited by Bullseye on 13 Oct 2015, 04:55, edited 1 time in total.

User avatar

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

Re: Mobile Device

Post by Sniper_E »

You're welcome Bullseye :eyes2:

[ Post made via Samsung Galaxy S5 Active ] Image

User avatar

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

Re: Mobile Device

Post by Sniper_E »

You're welcome Bullseye :eyes2:

[ Post made via Samsung Galaxy S5 Active ] Image

User avatar

tamarin
Users
Users
Posts: 72
Joined: 15 Mar 2015, 01:07
    Android Firefox

Re: Mobile Device

Post by tamarin »

I'm testing with my Samsung Android S4.

[ Post made via Android ] Image

User avatar

tamarin
Users
Users
Posts: 72
Joined: 15 Mar 2015, 01:07
    Windows 10 Firefox

Re: Mobile Device

Post by tamarin »

tamarin wrote:I'm testing with my Samsung Android S4.

[ Post made via Android ] Image
Why does it only show "Android"?
Why doesn't show "Samsung Galaxy S4"?
Can you help me please?
Thanks in advance.

User avatar

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

Re: Mobile Device

Post by Sniper_E »

Directions on how to add a device is here: Mobile Device

Look at your user agent in whos online page and post it. I'll show you were to add it in the listener.php

User avatar

tamarin
Users
Users
Posts: 72
Joined: 15 Mar 2015, 01:07
    Windows 10 Firefox

Re: Mobile Device

Post by tamarin »

Sniper_E wrote:Directions on how to add a device is here: Mobile Device

Look at your user agent in whos online page and post it. I'll show you were to add it in the listener.php
See attachment.
The Model number from my mobile device is: SGH-I337M
mobdiv.jpg
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

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

Re: Mobile Device

Post by Sniper_E »

I did not see your SGH-I337M in the image you posted. But this is where you add it...
Open: ext/sniper/mobiledevice/event/listener.php
Find This may be a partial find and not the whole line

Code: Select all

				elseif (preg_match('/GT-I9505|GT-I9500|SPH-L720T/i',$user_agent))
Replace with Replace the preceding lines with the following

Code: Select all

				elseif (preg_match('/GT-I9505|GT-I9500|SPH-L720T|SGH-I337M/i',$user_agent))
Save, Upload and Clear Cache in ACP
listener.zip
EDIT:
Looking at your image again the test user must be you logged in with your mobile.
If you are using firefox on your mobile it is not broadcasting your mobile model number in the user agent.
That means even adding the SGH-I337M want work because it is not in your user agent.
My mobile uses Chrome for it's browser and it shows my model number. I tried Firefox and got rid of it.

Firefox is great for my desktop, it's what I use. Firefox sucks for a mobile browser. That is just my opinion.
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
Last edited by Sniper_E on 08 Dec 2015, 08:03, edited 1 time in total.

User avatar

tamarin
Users
Users
Posts: 72
Joined: 15 Mar 2015, 01:07
    Windows 10 Firefox

Re: Mobile Device

Post by tamarin »

Sniper_E wrote:I did not see your SGH-I337M in the image you posted. But this is where you add it...
Open: ext/sniper/mobiledevice/event/listener.php
Find This may be a partial find and not the whole line

Code: Select all

				elseif (preg_match('/GT-I9505|GT-I9500|SPH-L720T/i',$user_agent))
Replace with Replace the preceding lines with the following

Code: Select all

				elseif (preg_match('/GT-I9505|GT-I9500|SPH-L720T|SGH-I337M/i',$user_agent))
Save, Upload and Clear Cache in ACP
listener.zip
EDIT:
Looking at your image again the test user must be you logged in with your mobile.
If you are using firefox on your mobile it is not broadcasting your mobile model number in the user agent.
That means even adding the SGH-I337M want work because it is not in your user agent.
My mobile uses Chrome for it's browser and it shows my model number. I tried Firefox and got rid of it.

Firefox is great for my desktop, it's what I use. Firefox sucks for a mobile browser. That is just my opinion.
Thank you very much.
But nothing has changed.
On the other browser displays all right.
Thanks.

User avatar

Nully
Users
Users
Posts: 111
Joined: 08 Sep 2015, 12:29
    Windows 7 Firefox

Re: Mobile Device

Post by Nully »

Hello,
I installed, it works :yikes:
In language there is:

Code: Select all

'MOBILE_POST'           => 'Welcome',
I thought I should see "Welcome" somewhere, but I did not see anything (only my smartphone name).
Did I miss something?
Last edited by Nully on 08 Dec 2015, 19:46, edited 1 time in total.

User avatar

Nully
Users
Users
Posts: 111
Joined: 08 Sep 2015, 12:29
    Windows 7 Firefox

Re: Mobile Device

Post by Nully »

:wave: Has somebody an answer for me?

User avatar

Nully
Users
Users
Posts: 111
Joined: 08 Sep 2015, 12:29
    Windows 7 Firefox

Re: Mobile Device

Post by Nully »

Nobody made an answer.
But today I discovered a new version. Many things have been added.
I have difficulties to translate it in french, I'll try to best understand with spanish translation :shock:

Edit
there is not spanish translation for info_acp_mobiledevice.php :yikes:
Last edited by Nully on 20 Dec 2015, 18:59, edited 1 time in total.

Post Reply Previous topicNext topic