Module can be used for more than .mobi switching
alakon - April 18, 2007 - 08:46
| Project: | .mobi |
| Version: | 5.x-1.1 |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | alakon |
| Status: | active |
Description
This module can be used for more than .mobi switching-- you can have it work for any domain if you replace the following line (line 38 in mobi_loader.module):
if (substr($_SERVER['HTTP_HOST'], strrpos($_SERVER['HTTP_HOST'], '.')) == '.mobi')
to:
if ($_SERVER['HTTP_HOST'] == 'm.neopoet.com') {
where 'm.neopoet.com' is the domain of your mobile-only site.
If somebody has the time, a great feature would be to change this to a variable that can be set in the administration panel.
Cheers,
Andrew
