国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > CMS > 織夢DEDE > 正文

【新鮮出爐】織夢一級目錄作域名list.php無法跳轉到手機站解決方法

2024-07-12 08:48:24
字體:
來源:轉載
供稿:網友
這篇文章主要為大家詳細介紹了【新鮮出爐】織夢一級目錄作域名list.php無法跳轉到手機站解決方法,具有一定的參考價值,感興趣的小伙伴們可以參考一下,有需要的朋友可以收藏方便以后借鑒。

這2天給用戶做了個號碼出售站點,當做到通過訪問www.xxx.com/m/list.php?tid=1在手機站訪問的時候出現了無法跳轉到手機的模板問題,經過361模板參看網上解決方法和自己的實現,得到如下的解決辦法,下面分享給大家。

織夢一級目錄作域名list.php無法跳轉到手機站解決方法

修改根目錄下的m/list.php文件

重新弄的代碼,不區分幾級目錄,理論是根據你指定的PC,重新指定手機的模板 (也就是說,直接用這個代替現有的文件,就可以實現幾級訪問都行了

復制代替下面,即可

<?php/** * * 欄目列表/頻道動態頁 * * @version        $Id: list.php 1 15:38 2010年7月8日Z tianya $ * @package        DedeCMS.Site * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc. * @license        http://help.dedecms.com/usersguide/license.html * @link           http://www.dedecms.com */define('DEDEMOB', 'Y');require_once(dirname(__FILE__)."/../include/common.inc.php");//$t1 = ExecTime();$tid = (isset($tid) && is_numeric($tid) ? $tid : 0);$channelid = (isset($channelid) && is_numeric($channelid) ? $channelid : 0);if($tid==0 && $channelid==0) die(" Request Error! ");if(isset($TotalResult)) $TotalResult = intval(preg_replace("/[^/d]/", '', $TotalResult));//如果指定了內容模型ID但沒有指定欄目ID,那么自動獲得為這個內容模型的第一個頂級欄目作為頻道默認欄目if(!empty($channelid) && empty($tid)){    $tinfos = $dsql->GetOne("SELECT tp.id,ch.issystem FROM `dede_arctype` tp LEFT JOIN `dede_channeltype` ch ON ch.id=tp.channeltype WHERE tp.channeltype='$channelid' And tp.reid=0 order by sortrank asc");    if(!is_array($tinfos)) die(" No catalogs in the channel! ");    $tid = $tinfos['id'];}else{    $tinfos = $dsql->GetOne("SELECT ch.issystem FROM `dede_arctype` tp LEFT JOIN `dede_channeltype` ch ON ch.id=tp.channeltype WHERE tp.id='$tid' ");}if($tinfos['issystem']==-1){    $nativeplace = ( (empty($nativeplace) || !is_numeric($nativeplace)) ? 0 : $nativeplace );    $infotype = ( (empty($infotype) || !is_numeric($infotype)) ? 0 : $infotype );    if(!empty($keyword)) $keyword = FilterSearch($keyword);    $cArr = array();    if(!empty($nativeplace)) $cArr['nativeplace'] = $nativeplace;    if(!empty($infotype)) $cArr['infotype'] = $infotype;    if(!empty($keyword)) $cArr['keyword'] = $keyword;    include(DEDEINC."/arc.sglistview.class.php");    $lv = new SgListView($tid,$cArr);} else {    include(DEDEINC."/arc.listview.class.php");    $lv = new ListView($tid);    $ispart=$lv->Fields['ispart'];    if($ispart==1){    $tpl=$lv->Fields['tempindex'];    $tpl=str_replace('.htm','_m.htm',$tpl);    $lv->Fields['tempindex']=$tpl;    $lv->TypeLink->TypeInfos['tempindex']=$tpl;    }else{    $tpl=$lv->Fields['templist'];    $tpl=str_replace('.htm','_m.htm',$tpl);    $lv->Fields['templist']=$tpl;    $lv->TypeLink->TypeInfos['templist']=$tpl;    }    // print_r($lv);    // exit();        //對設置了會員級別的欄目進行處理    if(isset($lv->Fields['corank']) && $lv->Fields['corank'] > 0)    {        require_once(DEDEINC.'/memberlogin.class.php');        $cfg_ml = new MemberLogin();        if( $cfg_ml->M_Rank < $lv->Fields['corank'] )        {            $dsql->Execute('me' , "SELECT * FROM `dede_arcrank` ");            while($row = $dsql->GetObject('me'))            {                $memberTypes[$row->rank] = $row->membername;            }            $memberTypes[0] = "游客或沒權限會員";            $msgtitle = "你沒有權限瀏覽欄目:{$lv->Fields['typename']} !";            $moremsg = "這個欄目需要 <font color='red'>".$memberTypes[$lv->Fields['corank']]."</font> 才能訪問,你目前是:<font color='red'>".$memberTypes[$cfg_ml->M_Rank]."</font> !";            include_once(DEDETEMPLATE.'/plus/view_msg_catalog.htm');            exit();        }    }}if($lv->IsError) ParamError();$lv->Display();?>


以上就是【新鮮出爐】織夢一級目錄作域名list.php無法跳轉到手機站解決方法的全部內容,希望對大家的學習和解決疑問有所幫助,也希望大家多多支持武林網。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 东至县| 吴堡县| 万盛区| 上饶市| 全南县| 湖口县| 靖江市| 南京市| 乌鲁木齐县| 洛浦县| 民丰县| 英超| 忻州市| 冕宁县| 晋中市| 阳谷县| 鄄城县| 拉萨市| 九寨沟县| 上栗县| 涞源县| 鹿邑县| 江山市| 太谷县| 甘泉县| 贡觉县| 东源县| 遂宁市| 花莲县| 凤冈县| 鸡泽县| 大埔县| 韩城市| 临沂市| 五河县| 平果县| 新巴尔虎右旗| 石狮市| 轮台县| 云龙县| 青田县|