discuz去掉手机版只保留触屏版

1、修改source\class\discuz\discuz_application.php 大约在 177行,改为如下

'mobiletpl' => array('1' => 'touch', '2' => 'touch', '3' => 'wml', 'yes' => 'touch'),

2、修改static\js\mobile\common.js  第二行,将后面 forum.php?mobile=1 改为forum.php?mobile=2,如下

var supporttouch = "ontouchend" in document;
!supporttouch && (window.location.href = 'forum.php?mobile=2');

版权www.yiyou.org