Mobile device detection
This tutorial explains how to add automatic mobile device detection to your phpBB 3.0 forum.
First you need to upload a mobile phpBB style to your forum.
There are several styles to choose from, download one from this category and upload it on your forum. No need to install style, you just need to upload it.
You will need to upload one new file and edit one phpBB file to add automatic mobile device detection.
1. In style directory you will find subdirectory "contrib", in that directory you will find file "mobile.php" (art_mobile/contrib/mobile.php). Copy it to your forum to directory "includes".
2. Open includes/session.php, find this:
and add before it:
That is all. Check your forum, you should see mobile style when viewing forum on mobile device.
If you do not have mobile device to test forum, open forum on your desktop. You should see link "Switch to full style" near footer. Click it. If it works, you have correctly modified your forum.
If you have ran into problems after editing files, look closely at code changes. Probably you have done a mistake somewhere.
Note that instructions tell you to paste code BEFORE code you are searching for, not after it. This is the most common mistake.
If you have any questions or ran into problems, please post your questions on support forum.