修改前請備份原檔案
1 、找到 「source/class/discuz/discuz_application.php」,將其中的
'mobiletpl' => array('1' => 'mobile', '2' => 'touch', '3' => 'wml','yes' => 'mobile'),
改為
'mobiletpl' => array('1' => 'mobile', '2' => 'touch', '3' => 'wml','yes' => 'touch'),
2 、上面的修改已經成功了,但是頂部會有 「用掌上論壇訪問本站, 擁有更好閱讀體驗」 的一小段文字,現在把它刪掉。
找到 「source/plugin/mobile/mobile.class.php」,將其中的
if(strpos($useragent, 'iphone') !== false || strpos($useragent, 'ios') !== false) {
return lang('plugin/mobile', 'mobile_tip_ios');
} elseif(strpos($useragent, 'android') !== false) {
return lang('plugin/mobile', 'mobile_tip_android');
} elseif(strpos($useragent, 'windows phone') !== false) {
return lang('plugin/mobile', 'mobile_tip_wp7');
}
刪掉或者註釋掉,就完全 OK 了。