Guest RickDawson Posted June 10, 2004 Report Posted June 10, 2004 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 June 10, 2004 Report Posted June 10, 2004 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 June 10, 2004 Report Posted June 10, 2004 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 June 11, 2004 Report Posted June 11, 2004 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 June 11, 2004 Report Posted June 11, 2004 although strangly this doesnt work with xda2. Assumed it would
Guest Monolithix [MVP] Posted June 11, 2004 Report Posted June 11, 2004 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 June 11, 2004 Report Posted June 11, 2004 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 RickDawson Posted June 13, 2004 Report Posted June 13, 2004 I have still been looking for a script or hack/mod for invision board. I have found this script (http://www.sentertainment.net/forums/index...act=SF&f=20&st=) It will create a wap version of the forum. Does anyone know of any other way I can view my forum in a smartphone friendly way?
Guest squall Posted June 14, 2004 Report Posted June 14, 2004 not to sure what you mean. you can select the mobile theme under yout profile menu... answer your question?
Guest Paul [MVP] Posted June 14, 2004 Report Posted June 14, 2004 For XDA2, point it at http://mobile.modaco.com :D P
Guest RickDawson Posted June 14, 2004 Report Posted June 14, 2004 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now