首页Discuz!文档使用手册it618Discuz 修改网站首页为插件或别的链接为首页的方法
dz插件网
官方发布

文档

421

关注

0

好评

0
DOCX

Discuz 修改网站首页为插件或别的链接为首页的方法

阅读 277 下载 82 大小 207.48K 总页数 0 页 2021-08-05 分享
价格: 1 下载币
下载文档
/ 0
全屏查看
Discuz 修改网站首页为插件或别的链接为首页的方法
还有 0 页未读 ,您可以 继续阅读 或 下载文档
1、本文档共计 0 页,下载后文档不带水印,支持完整阅读内容或进行编辑。
2、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
4、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。
电脑版的很简单,论坛有这个功能,在论坛后台界面导航实现,如图:Discuz!0手机版的需要修改index,也很简单,可以用以下方法实现,如图:31526agcnt 8 SERVERI'HIT USER AGKNI'I:20224.com修改网站根目录下的index.php文件,直接在<?php下面的/*注释*/下面(如上图)第行添加以下代码:注意:以下红色代码部分为要访问的首页链接,示例的链接是积分钱包首页,可以用手机访问http:/www.cnit618.com,看看效果!也就是说以下红色链接换成你的链接!有时发现不能访问插件首页,而是强制跳转到论坛页,可以看这个教程:《Discuz3.2及以上版本开启手机版后访问t618插件手机版自动跳转到论坛的解决方法》f(it618_is_mo bile(){/手机访问时跳转header("location:你想设置的插件链接");exit;function it618_is_mobile()Suser_agent $_SERVER['HTTP_USER_AGENT'];Array("240x320","acer","acoon","acs-","abacho","ahong","airness","alcatel","amoi","android","anywhereyougo.com","applewebkit/525","applewebkit/532","asus","audio","au-mic","avantogo","becker","benq","bilbo","bird","blackberry","blazer","bleu","cdm-","compal","coolpad","danger","dbtel","dopod","elaine","eric","etouch","fly""fly_","fly-","go.web","goodaccess","gradiente","grundig","haier","hedy","hitachi","htc","huawei","hutchison""inno""ipad""ipaq","ipod","browser","kddi","kgt""kwc","lenovo""g"meridian","micromax","midp","mini","mitsu","mmm","mmp""mobi","mot-","moto","nec-""netfront"newgen""nexian"nf-browser""nintendo""nitro""nokia","nook""novarra""obigo","palm","panasonic","pantech","philips","phone","pg-","playstation","pocket","pt-","qc-""qtek""rover","sagem""sama","samu""sanyo""samsung""sch-""scooter","sec-""sendo","sgh-","sharp","siemens""sie-","softbank","sony","spice","sprint""spv","symbian""tablet""talkabout""tcl-""teleca""telit""tianyu""tim-""toshiba""tsm""up.browser""utec","utstar","verykool","virgin","vk-","voda","voxtel","vx","wap","wellco","wigbrowser""wii","windows ce","wireless","xda","xde","zte");Sis_mobile false;foreach (Smobile_agents as $device){if(stristr(Suser_agent,$device)){Sis_mobile true;break;}return Sis_mobile;
文档评分
    请如实的对该文档进行评分
  • 0
发表评论
创宇盾启航版免费网站防御网站加速服务
返回顶部