Jump to content

How does the mobile version of this forum work?


Recommended Posts

Guest RickDawson
Posted

When you visit this forum from a smartphone or other mobile device, you automaticaly get a version that is optimised for the mobile.

How is this done?

I am wanting to achieve this for my forum, although i'm using Invision Board, and this forum here is based on phpBB.

I have tried to do a skin, without any graphics, one that would look ok on a mobile, but you still have to log-in, and then find the option to change to this mobile optimised skin. (which is a procedure thats not good to do on a mobile).

I have the option to install phpBB if i cannot get Invision Board to do the same.

my forum, is (http://www.getyouhosting.com/forum)

Guest Monolithix [MVP]
Posted

The forum uses the HTTP GET headers to determine that its a mobile device accessing the page, and applys a phpbb theme to the pages sent back (check in your profile and you'll see the mobile version listed under themes).

The theme is just an (almost) graphicless skin with the tables maxed out at 176 pixels (simply put...) :D

Guest RickDawson
Posted

I can't find any correct info related (after a google search) to HTTP GET headers.

How are these headers done?

would this work for any site, regardless of it being a forum, considering a mobile version is available on the server.

Guest Monolithix [MVP]
Posted

Yep. You can use some simple php (in this case) to pull the info from a HTTP header, using the following code:

<?php

echo $_SERVER["HTTP_USER_AGENT"]

?>[/code]

And you'll get the following string returned:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
(in the case of WinXP/IE6)

or

Mozilla/2.0 (compatible; MSIE 3.02; Windows CE; Smartphone; 176x220)
(in the case of my e100 running SP2002)

You can then use extra code to pull the relevant parts from those strings and display the relevent page layouts.

Guest squall
Posted

although strangly this doesnt work with xda2. Assumed it would

Guest Monolithix [MVP]
Posted

Dependa what Paul has used to pick up on the device, if its the "Smartphone" element then it's unlikely to work on the XDA. :D

Guest Taoski
Posted

i can confirm that it does not work automatically on my ipaq. i had to select the theme manually. i assume it would be the same on the xda too.

looks bloody cool too on the pocket pc via my wifi connection. and it keeps the wife sweet as i can sit here on the sofa with her rather than be elsewhere.

Posted from my ipaq!

Guest squall
Posted

not to sure what you mean.

you can select the mobile theme under yout profile menu... answer your question?

Guest RickDawson
Posted
not to sure what you mean.

you can select the mobile theme under yout profile menu... answer your question?

no...

I have my own site, and have a forum on it.

I'm looking at how my forum can be made accessible by a mobile.

like this forum you're reading now.

It will enable me to respond to posts quicker.

my forum:- http://www.getyouhosting.com/forum

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.