Casper Posted April 17, 2007 Report Share Posted April 17, 2007 If you view the forums from a mobile device (phone, pda, etc) a stripped version will load with no graphics. FYI. Quote Link to comment Share on other sites More sharing options...
yotaman88210 Posted April 18, 2007 Report Share Posted April 18, 2007 Hell yea, is there a different address to go to or will this happen automatically cuz the mobile device will be reconized? Quote Link to comment Share on other sites More sharing options...
Speed Posted April 18, 2007 Report Share Posted April 18, 2007 Aren't you a tricksy bastard ? Quote Link to comment Share on other sites More sharing options...
Casper Posted April 18, 2007 Author Report Share Posted April 18, 2007 does it automagically. i can explain how if you want, otherwise just take my word for it. hahaha. Quote Link to comment Share on other sites More sharing options...
Putty Posted April 18, 2007 Report Share Posted April 18, 2007 does it automagically. i can explain how if you want, otherwise just take my word for it. hahaha. Lets hear the explanation. Detailed please....writing a paper. Quote Link to comment Share on other sites More sharing options...
yotaman88210 Posted April 18, 2007 Report Share Posted April 18, 2007 does it automagically. i can explain how if you want, otherwise just take my word for it. hahaha. Lets hear the explanation. Detailed please....writing a paper. Yes you must hurry Im in the middle of a paragraph!! Quote Link to comment Share on other sites More sharing options...
Casper Posted April 18, 2007 Author Report Share Posted April 18, 2007 Okay, so when you access a webpage, you send an http request. That request includes things like what OS you're using, along with what web browser. I added a little script in the main functions file saying if you're using a mobile browser, then you get the mobile theme.[code:e1264]$user_agent = $_SERVER['HTTP_USER_AGENT'];$is_mobile = preg_match('/(up-browser)|(blackberry)|(windows ce)|symbian|palm|Maemo|nokia/i', $user_agent);if ($is_mobile) { $template_name = "subSilver_mobile";}[/code:e1264] Quote Link to comment Share on other sites More sharing options...
Chrome Posted April 18, 2007 Report Share Posted April 18, 2007 ahhh it all makes sense to me now Quote Link to comment Share on other sites More sharing options...
Casper Posted April 18, 2007 Author Report Share Posted April 18, 2007 Quote Link to comment Share on other sites More sharing options...
walther_gsp Posted April 19, 2007 Report Share Posted April 19, 2007 Works pretty well from my stupid crackberry. Quote Link to comment Share on other sites More sharing options...
Casper Posted April 19, 2007 Author Report Share Posted April 19, 2007 Sweet, good to hear. I'll be changing the colors and such shortly. Just wanted to get it working first. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.