DZ3.1手机版有问题,手机版改为应用商店安装的手机模板触屏版,并不是像很多网上说的那样mobile改touch ,改了默认访问的还是官方原版的触屏版,解决方法:找到“\source\class\discuz\discuz_application.php”,将其中的
$mobileurl = $this->var['siteurl'].'forum.php?mobile=yes'
改为
$mobileurl = $this->var['siteurl'].'forum.php?mobile=2'
重新用手机访问,OK,默认变为触屏版而且是自己安装的手机模板,希望能帮到大家。
有的人按mobile改touch 登陆手机的时候有时候会有“您访问的页面无手机页面,是否进一步访问电脑版”这样的提示,按如下操作即可
\source\language
lang_message.php
查找:
'not_in_mobile' => '您访问的页面无手机页面,是否进一步访问电脑版?',
更换为:
'not_in_mobile' => '<style>body {background:#000000;height:1000px;width:auto;}</style><meta http-equiv="refresh" content="0;url=forum.php?mod=portal&mobile=yes">',
\source\language
lang_message.php
查找:
'not_in_mobile' => '您访问的页面无手机页面,是否进一步访问电脑版?',
更换为:
'not_in_mobile' => '<style>body {background:#000000;height:1000px;width:auto;}</style><meta http-equiv="refresh" content="0;url=forum.php?mod=portal&mobile=yes">',
如果默认打开不是自己安装的手机模板或是打开的默认的触屏版,就在后台把“开启手机浏览器自动跳转:”功能关掉,试试看看,反正手机版遇到的问题基本就这些。我靠,搞个手机版我怎么遇到了这么多问题呢,