Auto-detect mobile browsers and then switch to mobile view

Started by klumy, September 26, 2010, 07:37:19 AM

Previous topic - Next topic

klumy

Hello,

SMF should autodetect if a mobile browser will be used or not.
If yes SMF should display the forum in mobile view.

青山 素子

SMF does this already. The the browser indicates it supports WAP2, WAP, or iMode, SMF will switch to one of those modes. "Rich" browsers like PIE, Mobile Safari, the Android Browser, etc do not send this indication as they can support full HTML.
Motoko-chan
Director, Simple Machines

Note: Unless otherwise stated, my posts are not representative of any official position or opinion of Simple Machines.


spiros

So what if one uses an Android Browser and wants to switch to mobile view?


Arantor

Use the WAP2 link in the footer. Or use Dragooon's mod for 2.0 which detects it anyway.

spiros

Thanks, Arantor.


I have a strange issue, wap or wap2 throws a page not found error (only when accessing from home page) http://www.translatum.gr/forum/index.php;wap2


Board/topic access causes no issues.
http://www.translatum.gr/forum/index.php?board=60.0;wap2

Arantor

That's because the URL should be http://www.translatum.gr/forum/index.php?wap2 (note the ? rather than the ;)

You can only use ; to add to the URL if there's already been a ? in it.

spiros


Advertisement: