織夢dedecms 5.1 utf-8版本英文修改方法_DedeCms教程

      編輯Tag賺U幣
      教程Tag:暫無Tag,歡迎添加,賺取U幣!
      織夢dedecms 5.1 utf-8版本英文修改方法
      本修改經過多次測試在 大部分國外空間都安裝正常。 
      如果不會修改的,請下載我提供的織夢dedecms5.1UTF-8英文版本 文章模塊。已經修改好的下載地址:織夢dedecms5.1-utf-8英文修改版本。 
      這次修改的主要部分: 
      1.文章翻頁的英文化 
      2.生成文章地址去掉文章數據ID 
      3.改掉DEDECMS的提示窗口 改成英文。 
      4.更改轉向提示為英文 
      5.搜索顯示該成英文提示 
      6.頁面的meta設置 
      1.翻頁的英文化 
      include/inc_archives_view.php 
      include/inc_arclist_view.php 
      include/inc_arcsearch_view.php 
      下的修改主要是針對 文章列表頁面 內容翻頁 搜索頁面翻譯的 英文化。 
      依次用記事本打開以上三文件。 
      我們先打開include/inc_archives_view.php 
      依次找到 
      //獲取上一篇,下一篇鏈接 
      //獲得動態頁面分頁列表 
      //獲得靜態頁面分頁列表 
      這三處,把這三處下面出現的中文改成英文 
      打開include/inc_arclist_view.php 
      依次找到 
      //獲取靜態的分頁列表 
      //獲取動態的分頁列表 
       
      這兩處,把這兩處下面出現的中文改成英文 
      打開include/inc_arcsearch_view.php 
      依次找到 
      //獲取動態的分頁列表 
       
      這一處,把這一處下面出現的中文改成英文 
      2.生成文章地址去掉文章數字ID 
      用記事本打開 include/inc_channel_unit_function.php 
      1. 找到  
      2. $articleRule = str_replace("{pinyin}",GetPinyin($title)."_".$aid,$articleRule);  
      3. 改成  
      4. $articleRule = str_replace("{pinyin}",GetPinyin($title),$articleRule);  
      簡單的說就是去掉 ."_".$aid 
      然后在后臺把 欄目的 高級選項里 
      文章命名規則:{typedir}/{pinyin}.html 
      3.改掉DEDECMS的提示窗口 改成英文。 
      這個必須用Dreamweaver編輯,不能用記事本編輯否則會出現后臺空白的情況! 
      用Dreamweaver打開include/inc_functions.php 
      找到 ShowMsg 然后往下看。依次找到: 
      DedeCms 系統提示 
      DedeCms 提示信息: 
      如果你的瀏覽器沒反應,請點擊這里... 
      對應修改成 
      DedeCms Message 
      DedeCms Message: 
      If your browser is no response, please click here ... 
       
      4.更改轉向提示為英文 
      用記事本打開 include/jump.html 
      依次找到: 
      正在轉向: 請稍候... 
      內容簡介: 
      TO: 
      對應修改成 
      TO: 
      Are turning to: Please wait ... 
      Brief Introduction: 
       
      5.搜索顯示該成英文提示 
      用記事本打開 plus/search.php 
      依次找到: 
      服務器忙,請稍后搜索 
      你的關鍵詞輸入不合法! 
      你的信息中存在非法內容,被系統禁止![返回] 
      關鍵字長度必須要3-30字節之間! 
      對應修改成 
      Server is busy,please search later 
      You do not legally enter the keywords! 
      Your information in the illegal content,the system was prohibited! [Back] 
      Keyword length must be between 3-30 bytes! 
       
      6.頁面的mate設置 
      這個主要是做摸板的時候注意不要掉了meta,這樣每個頁面的MATE信息都不一樣。 
      首頁和列表頁面的meta可以自己在后臺設置。而內容頁面的MATE是根據內容自動截取的。 
      1. 首頁meta  
      2. <meta name="keywords" content="{dede:global name='cfg_keywords'/},dedecms">  
      3. <meta name="description" content="{dede:global name='cfg_description'/}dedecms">  
      4.   
      5. 列表頁面meta  
      6. <meta name="keywords" content="{dede:field name='keywords'/}">  
      7. <meta name="description" content="{dede:field name='description' function='html2text(@me)'/}">  
      8.   
      9. 內容頁面meta  
      10. <meta name="keywords" content="{dede:field name='keywords'/}">  
      11. <meta name="description" content="{dede:field name='description' function='html2text(@me)'/}"> 
      僅供大家學習參考,希望對你有所幫助。

      查看更多 DedeCms教程  織夢模板  織夢DedeCms視頻教程  織夢dedecms專題

      來源:模板無憂//所屬分類:DedeCms教程/更新時間:2020-05-18
      相關DedeCms教程