[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] phpBBmobile Device Browser Style

Postby Sniper_E » 22 Jul 2012, 17:06

That's fine Hippie. Add the Sprint # to your array list before the Android...
Code: Select all
         elseif (preg_match('/APX515CKT/i',$user_agent))
            {
               $status = 'HTC Evo3D';
            }

Then post on your site to test it out.

I'll add it to mine when I get home and we can test it there also. Done... [ Post made via HTC Evo3D ]Image

[ Post made via HTC Inspire] Image

Just added hidden Quick Edit to the viewtopic...

qe1_mobile.gif
default view

qe2_mobile.gif
selected view
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: 6991
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6


Re: [DEV] phpBBmobile Device Browser Style

Postby cisco007 » 02 Aug 2012, 15:42

hey snipe, is this style still on version 3.0.8? or has it been updated to the latest yet!?
cisco007
Supporter
Supporter
 
Posts: 68
Joined: 19 Jul 2008, 13:59
Favorite Team: Florida Gators
Gender: Male
phpBB Knowledge: 5

Re: [DEV] phpBBmobile Device Browser Style

Postby Sniper_E » 02 Aug 2012, 18:08

Well, it was made four years ago so it may be older than 3.0.8
But the way its written it will work in 3.0.10
I'm working on rewriting it, testing things out.
Thinking about doing a promobile and promobile_se version.

[ Post made via HTC Inspire] Image
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: 6991
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [DEV] phpBBmobile Device Browser Style

Postby cisco007 » 03 Aug 2012, 07:34

ok! sounds good, i'll wait and see what happens before i install it on my other boards! thanks!
cisco007
Supporter
Supporter
 
Posts: 68
Joined: 19 Jul 2008, 13:59
Favorite Team: Florida Gators
Gender: Male
phpBB Knowledge: 5

Re: [DEV] phpBBmobile Device Browser Style

Postby Riley » 26 Aug 2012, 13:30

Hi guys, just installed and having a play. But upon viewing google webmaster tools it shows the following debug error:

Code: Select all
<b>[phpBB Debug] PHP Notice</b>: in file <b>[ROOT]/includes/session.php</b> on line <b>740</b>: <b>Undefined variable: session_autologin</b><br />
<b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/includes/mods/mobile_device_detect.php</b> on line <b>226</b>: <b>Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3850)</b><br />
<b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/includes/mods/mobile_device_detect.php</b> on line <b>227</b>: <b>Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3850)</b><br />
<b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/includes/functions.php</b> on line <b>4886</b>: <b>Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3850)</b><br />
<b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/includes/functions.php</b> on line <b>4888</b>: <b>Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3850)</b><br />
<b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/includes/functions.php</b> on line <b>4889</b>: <b>Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3850)</b><br />
<b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/includes/functions.php</b> on line <b>4890</b>: <b>Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3850)</b><br />
<b>[phpBB Debug] PHP Warning</b>: in file <b>[ROOT]/includes/functions.php</b> on line <b>4895</b>: <b>Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3850)</b>
Riley    
Crewman
Crewman
 
Posts: 1
Joined: 26 Aug 2012, 13:28
Gender: Male
phpBB Knowledge: 5

Re: [DEV] phpBBmobile Device Browser Style

Postby Hippie459MN » 26 Aug 2012, 13:44

Sniper, have you made any more head way on the updated style? Can't wait!

[ Post made via Android] Image
User avatar
Hippie459MN    
Supporter
Supporter
 
Posts: 205
Joined: 08 Feb 2008, 09:40
Location: Minnesota, USA
Favorite Team: Your moms team
Gender: Male
phpBB Knowledge: 6

Re: [DEV] phpBBmobile Device Browser Style

Postby Havym » 28 Aug 2012, 05:44

Hi,

I dont know if this is the right place to ask this question.
I own a site wich uses phpBB3 inside MKportal.
I'm using this mod in phpBB3 and all works well.
But when logging in with a mobile device to the forum it also shows the portal. I would like to shut down the portal when using the mobile device and not by using a pc.
Can someone help me to create some code to fix this?
Havym    
Crewman
Crewman
 
Posts: 2
Joined: 28 Aug 2012, 05:35
Location: Enschede, Netherlands
Gender: Male
phpBB Knowledge: 4

Re: [DEV] phpBBmobile Device Browser Style

Postby Sniper_E » 31 Aug 2012, 11:45

@ Havym, If your portal reqires a portal_body.html template you can create one and put it in with your templates.
There are others that have created a portal page for their mobile style.
You could also use a redirect script to take your mobile user to the forum <!-- IF S_MOBILE --> if that is what you want.

@ Hippie, yes I'm working on it. I've been working up the new index, viewforum and viewtopic pages.
Working on the forumlist now to finish those up. I'm also updating the templates to phpBB 3.0.11 as I go. It's going slow.
I work on it as I find time. Sometimes I have time and don't feel like working on it. But I'm on it.

A few more changes to these pages and I'll move into the ucp and mcp pages. New menu options coming there!
We can do select options for the menus or a drop down menu. I'll show you the choices when I get to that point.

If you guys want, I can shoot you a copy of these pages after I complete them.
But they want go with your other pages... You will end up seeing 2 <hr> lines in your other pages.
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: 6991
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [DEV] phpBBmobile Device Browser Style

Postby heredia21 » 04 Oct 2012, 19:13

How can I add the BlackBerry PlayBook tablet to detect mobile theme?
BlackBerry news come visit us!
heredia21    
Supporter
Supporter
 
Posts: 139
Joined: 10 Apr 2010, 22:15
Gender: Male
phpBB Knowledge: 4

Re: [DEV] phpBBmobile Device Browser Style

Postby Sniper_E » 04 Oct 2012, 21:32

First you login to your site with it and look in the Who is Online page as admin.
Then you use that browser info to get the BlackBerry PlayBook Info form that tablet.
Then you open the includes/mods/mobile_device_detect.php script...

Find
Code: Select all
         else if (preg_match('/BlackBerry9800/i',$user_agent))
            {
               $status = 'BlackBerry Torch';
            }
After add
Code: Select all
         else if (preg_match('/BlackBerry PlayBook Info/i',$user_agent))
            {
               $status = 'BlackBerry PlayBook';
            }

Replace the BlackBerry PlayBook Info with what you find in the browser info for that tablet.
Then add a BlackBerry PlayBook.png image to your other mobile images.
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: 6991
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

PreviousNext

Return to MODs in Development

Who is online

Users browsing this forum: MSNbot Media and 16 guests