When we setup the phpBB3 mobile theme for the forum we edited the code to exclude a few large-screen devices. We noticed that the browser detection script is taken from non-commercial licensed junk code. The mobile detection script author wants $50/year for these 10 lines of highly resource intensive preg_match statements. Come on! That is totally incompatible with the GPL licensed mobile theme too…
We made a new public domain replacement in 10 minutes, we hope it will help any other forums using this theme. It is much more efficient, and totally free. It is almost a drop-in replacement, but it lacks device reporting (you won’t get the ‘from my android phone’ privacy invasion) and isn’t 100% correct for old devices.
We think it is *way* more efficient in two ways: 1. We don’t use pregmatch for simple matches ($50/year for this – really man?) 2. We get the common easy mobiles first, THEN we try to kick out any known desktops before doing more intensive mobile searching.
It will probably take some tweaking to get it right. If you find problems please let us know.
Thank you for supporting Dangerous Prototypes. Your purchases at Seeed Studio and our distributors made this open source code possible.
Documentation and download links are on the wiki: Replacement mobile browser detection for mobile themes