phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

phpbbtogo


 
Search this topic... | Search MOD Requests... | Search Box
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Author Message
wkdwich
Board Member



Joined: 24 Oct 2011

Posts: 29
Location: NY & VA


flag
PostPosted: Mon Nov 07, 2011 2:20 pm 
Post subject: phpbbtogo

Well I fooled and fooled with phpbbtogo and its looking real nice.. even opens to the screen size on my Android and checks to see if it is a handheld device connecting.. I am pleased.. I spoke to the guy from Mobile Online phpBB and he set up a test for me to play with.. his does allow for login and post while phpbbtogo does not.. has anyone worked that feature in?? If not I will go with the Mobile Online phpBB Pro version, but probably have to tweak it up tons for visuals..
Back to top
hoimyr
Board Member



Joined: 16 Apr 2009

Posts: 115
Location: Oslo


flag
PostPosted: Mon Jan 02, 2012 11:59 am 
Post subject: Re: phpbbtogo

I have not tried it. Will check it out!
I am very curious of what solutions folks in here are using for their sites on mobile phones/ pad's. Anyone?

happy new year!!! icon_biggrin.gif
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 628
Location: Spain


flag
PostPosted: Mon Jan 02, 2012 3:33 pm 
Post subject: Re: phpbbtogo

HI,

I found a style named subSilver_mobile and used this as a base for creating a mobile template for my forum.

Instead of using the changes to includes/functions.php that come with the template I use Tera_WURFL for detecting users on mobile devices and serve them the mobile template.

Recently I made a mobile version for the rest of my site using jQuery Mobile.

I'm pretty pleased with the results of both parts.

Just in case anybody is interested here is a copy of subSilver_mobile.

_________________
phpBB2 will never die, I hope!
Back to top
wkdwich
Board Member



Joined: 24 Oct 2011

Posts: 29
Location: NY & VA


flag
PostPosted: Wed Jan 04, 2012 11:43 am 
Post subject: Re: phpbbtogo

I'd love some addiitonal details on this if you would be so kind..
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 628
Location: Spain


flag
PostPosted: Wed Jan 04, 2012 1:27 pm 
Post subject: Re: phpbbtogo

What info exactly?

If you refer to something like a detailed description of what I did I'm afraid I wonīt be able to write that up.

It has been some time now, altogether was quite a complex operation and I didnīt take notes of what I did.
As Iīm busy with other things now I do not have the time to sit down and figure out everything in detail and write it down in a kind of MOD.

Resuming: I improved subSilver_mobile and replaced the regular expression in includes/functions.php that comes with that package with a similar call to Tera-WURFL, in the exact same spot in functions.php.
To be able to do so I had to install Tera-WURFL and find the simple code needed for my code to check for mobile devices and redirect those to subSilver_mobile template.

It's easy, but time-consuming.

_________________
phpBB2 will never die, I hope!
Back to top
hoimyr
Board Member



Joined: 16 Apr 2009

Posts: 115
Location: Oslo


flag
PostPosted: Fri Jan 06, 2012 6:55 am 
Post subject: Re: phpbbtogo

Thanks for the tip Dogs. Ok so the challenge is to setup the functions.php or is it other files to edit? I did some digging on the Tera-WURFL site but didnt find anything. Mind share your functions.php? icon_wink.gif
I tried to setup an htaccess for redirecting browsers to an subdomain but it was pain. I gave it up.. I must try this. icon_smile.gif Next step is to make an osx and android app. icon_biggrin.gif

Thank you for the mobile template!! icon_biggrin.gif
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 628
Location: Spain


flag
PostPosted: Fri Jan 06, 2012 8:30 am 
Post subject: Re: phpbbtogo

In the subSilver_mobile you can find instructions for editing functions.php.

What that edit does is detect mobile devices and serve those the mobile template.

Instead of using the edit that comes with subSilver_mobile you can use the code Tera-WURFL uses to detect mobile devices.

In the following code you can see the commented-out code from subSilver_mobile and the working code for Tera-WURFL.
Code:
   $template_path = 'templates/' ;

// Begin Mobile version------------------------
//$user_agent = $_SERVER['HTTP_USER_AGENT']; 
//$is_mobile = preg_match("/(up-browser)|(blackberry)|(windows ce)|motorola|symbian|palm|nokia|ipod|iphone|sonyericsson/i", $user_agent);
//if ($is_mobile) {
require_once($_SERVER['DOCUMENT_ROOT'] . '/Tera-wurfl/TeraWurfl.php');
$wurflObj = new TeraWurfl();
$matched = $wurflObj->getDeviceCapabilitiesFromAgent();
if($wurflObj->getDeviceCapability("is_wireless_device")){
   $mobile = true;
   $template_name = 'subSilver_mobile';
   } else {
   $template_name = $row['template_name'] ;
   }
// End Mobile version------------------------
   $template = new Template($phpbb_root_path . $template_path . $template_name);


This bit is standard phpBB2 code
Code:
   $template = new Template($phpbb_root_path . $template_path . $template_name);


You can perfectly use the preg_match instead of Tera-WURFL. And you can change the user-agents in that regular expression to cover more or less devices. Use Google to find more info about user-agent detection.

_________________
phpBB2 will never die, I hope!
Back to top
hoimyr
Board Member



Joined: 16 Apr 2009

Posts: 115
Location: Oslo


flag
PostPosted: Fri Jan 06, 2012 9:47 am 
Post subject: Re: phpbbtogo

Ok cool! Perfect! It was right infront of my nose.
Thank you for instructions! icon_smile.gif
Back to top
dondino
Board Member



Joined: 09 Dec 2008

Posts: 144


flag
PostPosted: Tue Jan 10, 2012 12:08 pm 
Post subject: Re: phpbbtogo

hey hoimyr!
eventually we can hope you (or wkdwich) will try to write a mod for the less experts, out of all this? icon_smile.gif icon_smile.gif
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 628
Location: Spain


flag
PostPosted: Tue Jan 10, 2012 2:02 pm 
Post subject: Re: phpbbtogo

For starters you can simply install subSilver_mobile, nothing else, and see what it's like.
Very easy.

_________________
phpBB2 will never die, I hope!
Back to top
spclub
Board Member



Joined: 05 Nov 2009

Posts: 12
Location: Manchester


flag
PostPosted: Thu Mar 08, 2012 1:53 am 
Post subject: Re: phpbbtogo

If you dont like it can you simply delete the file in includes/functions and get back to as you were?


Secondly, how do you apply the patch?

_________________
Support Team
OneParentFamily Group
www.oneparentfamily.com
OPF Group
www.oneparentfamily.org.uk

(will also help phpbb2refugees too)

Image link
Back to top
Display posts from previous:   
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT - 4 Hours
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0447 seconds using 16 queries. (SQL 0.0088 Parse 0.0009 Other 0.0350)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo