Download & Extend

Module can be used for more than .mobi switching

Project:.mobi
Version:6.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:alakon
Status:closed (fixed)

Issue Summary

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

Comments

#1

Version:5.x-1.1» 6.x-1.x-dev
Status:active» fixed

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here