[DEV] phpBBmobile Device Browser Style

MOD Authors: Discuss and post updates on new MODs in development for phpBB3, Receive feedback and Feature requests for MODs in development.

To submit your MOD or style, go to the STG MOD Manager
Forum rules
go to the STG MOD Manager to post your MOD in development.
Discuss and receive feedback for any MOD in development for phpBB3.
Suggest features for MODs in development.

No Support or MOD Requests
-- exceptions for MODs only posted here as Beta or Alpha.
Support requests for a MOD should be requested in the respective MOD topic.

Re: [DEV] Mobile Device Browser Style [HELP NEEDED]

Postby Sithnar » 09 Mar 2008, 15:52

Sniper, the code i gave you is working perfectly on my site, before you login.. so its detecting as soon as your get to the page.
Sithnar - Head Nerd @ DarkLord's Realm
User avatar
Sithnar    
Supporter
Supporter
 
Posts: 367
Joined: 15 Jan 2008, 10:42
Location: England
Gender: Male
phpBB Knowledge: 5




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [DEV] Mobile Device Browser Style [HELP NEEDED]

Postby Sniper_E » 09 Mar 2008, 15:56

And your mobile style is not set as the default style of the board?
Or is your mobile style the default style and that's why you see it when you connect?
I may not have something right. dunno

Oh Sithnar.... I just thought of something else.

On this script that we are using it is suppose to detect if you are viewing the site from a mobile device browser and set the mobile style as the style you will see in their phone browser. This has to force the mobile style on you.

I had the test user's default style set to the mobile style in the UCP on my test site.
WRONG! I just set test's default style to SniperBlue, so if you login as test AND you are using a mobile device browser, this script of yours will force the mobile style on you.

Now, this mobile detect script of yours can be tested properly.

Any testers want to check this out for us?
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6979
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [DEV] Mobile Device Browser Style [HELP NEEDED]

Postby Sniper_E » 09 Mar 2008, 16:08

If yours is working right and mine may not be, this is my /include/session.php

Does it look like I added it right?
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6979
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [DEV] Mobile Device Browser Style [HELP NEEDED]

Postby Sithnar » 09 Mar 2008, 17:17

looks fine to me
Sithnar - Head Nerd @ DarkLord's Realm
User avatar
Sithnar    
Supporter
Supporter
 
Posts: 367
Joined: 15 Jan 2008, 10:42
Location: England
Gender: Male
phpBB Knowledge: 5

Re: [DEV] Mobile Device Browser Style [HELP NEEDED]

Postby Sithnar » 09 Mar 2008, 17:22

gone to your site sniper & it works perfectly :)

see told u my code worked hehehe:)
Sithnar - Head Nerd @ DarkLord's Realm
User avatar
Sithnar    
Supporter
Supporter
 
Posts: 367
Joined: 15 Jan 2008, 10:42
Location: England
Gender: Male
phpBB Knowledge: 5

Re: [DEV] Mobile Device Browser Style [HELP NEEDED]

Postby Sniper_E » 09 Mar 2008, 17:28

Did it show you the mobile style on connect or did you have to sign in as test before you saw the style?

If you saw it on connect also then we just need to build a list of mobile browsers.
I want it to where it works for any mobile browser, even on connect if possible.

I think we're getting somewhere with all this! :yahoo:

Thank you all for working on this with us!
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6979
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [DEV] Mobile Device Browser Style [HELP NEEDED]

Postby Sithnar » 09 Mar 2008, 17:38

your site does the same as mine.

not logged in.. see mobile theme

logged in ... still shows mobile theme regardless of profile setting :)

glad someone else jumped on the bandwagon with this :)

was kinda boring developing a theme on mi own :)

mines more aimed at VERY low bandwith, the forum index of my theme is a whopping 34kb when fully loaded

no sigs and VERY little images, but it does have smilies.
Sithnar - Head Nerd @ DarkLord's Realm
User avatar
Sithnar    
Supporter
Supporter
 
Posts: 367
Joined: 15 Jan 2008, 10:42
Location: England
Gender: Male
phpBB Knowledge: 5

Re: [DEV] Mobile Device Browser Style [HELP NEEDED]

Postby Sniper_E » 10 Mar 2008, 00:22

That is Great to know Sithnar. Now we need to build that mobile detect list.

Any mobile phone users out there for testing?
We need as many mobile browser names as possible to add to our list for this MOD.

Sithnar, sign in at my site and look in the Who's Online page and copy your browser info. (see if mine detects the same)
Ika, blackbelt, sTraTo and Richard, would you guys mind getting us your browser info also?
And let us know which style you see when you connect and which style you see after you sign in.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6979
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [DEV] Mobile Device Browser Style [HELP NEEDED]

Postby Sithnar » 10 Mar 2008, 02:32

Yup shows EXACTLY the same.



Omg i just loaded the vista theme up on my mobile for STG.. when loading the forum index the byte count slowly climbs up to 1mb!!!

Will test your theme sniper see how much bandwidth it takes. my contract i get 5mb a month and have to pay per mb after that, so STG would be 5 refreshes of the forum index :lol:

sniper yours is 60kb.
Sithnar - Head Nerd @ DarkLord's Realm
User avatar
Sithnar    
Supporter
Supporter
 
Posts: 367
Joined: 15 Jan 2008, 10:42
Location: England
Gender: Male
phpBB Knowledge: 5

Re: [DEV] Mobile Device Browser Style [HELP NEEDED]

Postby blackbeltboy47 » 10 Mar 2008, 17:17

Sniper, I still don't see the mobile theme when I use my iPod. When I visit http://darklord.ath.cx/browser.php it says
Mozilla/5.0 (iPod; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/4A102 Safari/419.3
-blackbeltboy47
User avatar
blackbeltboy47
Cadet IV
Cadet IV
 
Posts: 40
Joined: 29 Jan 2007, 17:20
Gender: Male

PreviousNext

Return to MODs in Development

Who is online

Users browsing this forum: No registered users and 11 guests