请知悉:本文最近一次更新为 9年 前,文中内容可能已经过时。

电脑访问会自动跳转到misc.php,很让人恼火,遂找了下解决办法,成功利用电脑实现了对触屏版的调试:
定位到文件:

/source/function/function_core.php

在函数function checkmobile()下添加一句return true;
如下:

function checkmobile() {
return true;
global $_G;

定位到文件:

/source/class/discuz/discuz_application.php 

搜索dheader(“Location:misc.php mod=mobile”);
将该句注释掉,如下:

		if(!$this->var['mobile'] && !$unallowmobile) {
if($mobileflag) {
//dheader("Location:misc.php mod=mobile");
}
}

修改template目录下,你所使用的主题/touch/common/header.htm,将下面这句注释掉:

<!script src="{STATICURL}js/mobile/common.js {VERHASH}" charset="{CHARSET}"></script>

改为如下:

<!--script src="{STATICURL}js/mobile/common.js {VERHASH}" charset="{CHARSET}"></script-->

之后,即可电脑调试移动端的页面模版了。

方法来自:https://www.discuz.net/thread-3470477-1-1.html


如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。

尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。


与《Discuz! 电脑怎么调试触屏版模版》相关的博文:


留言

avatar
😀
😀😁😂😅😭🤭😋😘🤔😰😱🤪💪👍👎🤝🌹👌