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 »

Just installed... would it be possible to configure via the ACP as well?




[ Post made via Staffy ] Image
Last edited by Bullseye on 26 Sep 2015, 00:46, edited 1 time 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 »

What feature would you want to turn off for all your users in the ACP?
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 »

The bit on the header saying it has detect a mobile device... :)

[ Post made via Samsung Galaxy Ace 4 ] Image

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 »

Yes, maybe we should have those turned off by default. Yes there can be an ACP switch for those extras. I can give you a Sql command to turn that off for every user when I get back home to my computer.

In the migration files you can change the default from 1 to 0 on that and then re-install it. But I would have to get back to my computer to show you that.

[ Post made via Samsung Galaxy S5 Active ] Image

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 »

Yes, maybe we should have those turned off by default. Yes there can be an ACP switch for those extras. I can give you a Sql command to turn that off for every user when I get back home to my computer.

In the migration files you can change the default from 1 to 0 on that and then re-install it. But I would have to get back to my computer to show you that.

[ Post made via Samsung Galaxy S5 Active ] 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 »

OK Bullseye...
If you want to turn off the welcome message for every user, run this sql command in your phpmyadmin

Code: Select all

// To turn off welcome message all users
UPDATE `phpbb_users` SET `user_mobile_welcome` = '0';
// To turn off header image all users
UPDATE `phpbb_users` SET `user_mobile_header` = '0';
// To turn on welcome message for only Guests
UPDATE `phpbb_users` SET `user_mobile_welcome` = '1' WHERE `phpbb_users`.`user_id` = 1;
I'll add some switches in ACP on next version and maybe have these off by default.

User avatar

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

Re: Mobile Device

Post by Bullseye »

Brilliant, you're a hero!

User avatar

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

Re: Mobile Device

Post by Bullseye »

Also I am currently looking at your site using a Nexus 7 Running Android version 4.3

[ Post made via Android ] 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 »

I see you in there. http://www.sniper-e.com/logs/mobile_user_agents.txt

Code: Select all

Linux; Android 4.3; Nexus 7 Build/JWR66Y) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.94 Safari/537.36
You are added in the list. Clear cookies and refresh browser. You will see your device.

[ Post made via Nexux 7 ] Image

Code: Select all

            case (preg_match('/lg/i',$user_agent));
                if (preg_match('/LRX22C/i',$user_agent))
                {
                    $status = 'LG Nexus 4';
                }
                elseif (preg_match('/LMY48S/i',$user_agent))
                {
                    $status = 'Nexus 5';
                }
                elseif (preg_match('/KTU84P|JWR66Y/i',$user_agent))
                {
                    $status = 'Nexus 7';
                }
                elseif (preg_match('/LMY47X/i',$user_agent))
                {
                    $status = 'Nexus 9';
                }
                else
                {
                    $status = 'LG';
                }
                $mobile_browser = $lg;
                if(substr($opera,0,4)=='http')
                {
                    $mobileredirect = $lg;
                }
            break;
Last edited by Sniper_E on 27 Sep 2015, 08:41, edited 5 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 »

Nice one :tumbsyes: I'm guessing Iphones & Ipads are on there already, if not my friends have got these devices I'll get them to look at your site if need be :eusa_dance:

Edit: I notice Iphone is on the that document you posted, but no Ipad would you like me to get one of my friends to look on your site, they have an Ipad :)

Another edit: Someone just signed in with a Ipad and it came up :w00t: sorry about that :oops:
Last edited by Bullseye on 27 Sep 2015, 15:48, edited 5 times in total.

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 »

Yes, iPhone, iPad and iPad are in there. None of them show model numbers in their browser user agant so there is no way to show the version of iPhone. But they are fine the way they are.

[ Post made via Samsung Galaxy S5 Active ] Image

User avatar

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

Re: Mobile Device

Post by Bullseye »

:tumbsyes:

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 »

Here you go, you can take this for a test run before I release it.

Mobile Device 1.0.2 with ACP Control
mobiledevice1.0.2.zip
Updated devices and images also.
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

User avatar

dmzx Online
Founder
Founder
Posts: 6485
Joined: 13 Jan 2014, 21:45
    Windows 8 Firefox

Re: Mobile Device

Post by dmzx »

Installed here :thumbup:

User avatar

dmzx Online
Founder
Founder
Posts: 6485
Joined: 13 Jan 2014, 21:45
    Android Chrome

Re: Mobile Device

Post by dmzx »

:w00t:

[ Post made via Samsung Galaxy S4 ] Image

Post Reply Previous topicNext topic