[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 Richard » 07 Mar 2008, 21:06

phpBB3, and STG's styles all work perfectly on the iPhone. :)
Richard
Supporter
Supporter
 
Posts: 64
Joined: 24 Jul 2006, 15:34
Gender: Male


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

Postby Sniper_E » 07 Mar 2008, 21:22

Richard, do you have to scroll right and left to see all of the page?
If so, then it's not a page made for a mobile device.
We're making these style to where the pages fit in your ipod's width.
I'll send you the url and login info if you would be willing to test the style out.
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: 6978
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 Richard » 07 Mar 2008, 23:03

Yes, I have to scroll left and right. But that's the whole point. It's really easy. iPhone is a real browser, not recognized as mobile device I believe.
Richard
Supporter
Supporter
 
Posts: 64
Joined: 24 Jul 2006, 15:34
Gender: Male

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

Postby Sniper_E » 08 Mar 2008, 00:21

But that's the whole point of creating a style for a mobile device.... so you don't have to scroll left and right.
This style that I'm making and the one Sithnar had made can be viewed in a mobile device without scrolling.
Well, we're working on making them this way. These styles are created specifically for that.

If you visited my test site and signed in with the test user info you would see this style.
Navigating through the index page, viewforum page and the viewtopic pages should look right for your iPhone.

I found a script that I still need to add to my site that will recognize a mobile device.
<<< http://www.andymoore.info/php-to-detect-mobile-phones/ - Andy Moore >>>This script may recognize your iPhone and set the mobile style as the default style when you connect.

If you would sign in as the test user and check the view out on your iPhone, that would be great help.
Check it out and let me know what it looks like in your iPhone. I'd like to test all the types of phones.

Thanks!
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: 6978
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 » 08 Mar 2008, 04:06

the code that i sent you goes off the user agent. I got most of the ones that are there by talking to people on msn then getting then to goto my site on their phone then adding there agent into my script. Some are easy others are not. Most nokia phones have 'symbian' in the agent. Its just going to be a case of building this up as we in along. Could be useful to have a post somewhere with a list of phones and their browser agent.

I will be glad when stg gets a mobile theme as i typed all this post out on my mobile phone :)
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 » 08 Mar 2008, 10:49

Yes, that script that Andy Moore posted looks like it detects all kinds of phones.
It even has a section in it to detect Richard's iPhone.
The array he has setup in there has a lot of types listed and you can add more.
The problem I would have is trying to convert that into phpBB3's functions.

As far as the directions you gave me, I could not find the line: function setup($lang_set = false, $style = false)
I looked in the ./include/function.php over 5 times and couldn't find it anywhere.
Your array codes only listed 5 browsers and Andy Moore's codes listed 89 of them.

I'd like to use the detailed one, BUT.... I need a coder to show me how to set this up.
I'd also like to get this setup here at STG but I want to work it out on my test site first.

Sithnar, would you, or anyone else for that matter, know how to set that function up in phpBB3?
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: 6978
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 » 08 Mar 2008, 12:57

the code i gave you is a colaberation between my self, evil and highway of life, i put the original code down and they improved it ALOT! :)

my array only has the mobile devices that i have had on my site, as they come i add them to the array since i dont want to put something in that will set a standard users style to the mobile one.

Let me try and find a better find for the functions.php
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 » 08 Mar 2008, 12:59

Oh .. i see the error. sorry sniper i should have put sessions.php not functions.
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 » 08 Mar 2008, 13:18

OK, I have that code of yours setup on my site now. But Richard's iPhone may not default to this style.

Now, where could we get a list to add to your code in order to handle as many phones as possible?
I'd be happy with that instead of using Andy Moore's codes.
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: 6978
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 Obsidian » 08 Mar 2008, 13:25

*cough*

Want a little help with testing for an older WML browser enabled phone?


I use the Sanyo SCP-2400, I think it is (it's nothing special, pretty old, really), and I'd be glad to help.
うるさいうるさいうるさい!

StopForumSpam Spam Reporting Database
Giving xrumer and friends a great big "screw you" since 2007.
User avatar
Obsidian    
Supporter
Supporter
 
Posts: 2250
Joined: 04 Mar 2008, 23:35
Gender: Male
phpBB Knowledge: 10

PreviousNext

Return to MODs in Development

Who is online

Users browsing this forum: AhrefsBot, Bingbot, Majestic-12 [Bot] and 10 guests