网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站建设 > DedeCMS
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Reply
 
Thread Tools Display Modes
  #1   IP: 117.95.1.145
Old 2010-09-06, 09:09 PM
topvip topvip is offline
超级版主
 
Join Date: 2006-01-04
Posts: 1206
topvip 正向着好的方向发展
Default 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
找到
$articleRule = str_replace("{pinyin}",GetPinyin($title)."_".$aid,$articleRule);
改成
$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是根据内容自动截取的。
首页meta
<meta name="keywords" content="{dede:global name='cfg_keywords'/},dedecms">
<meta name="description" content="{dede:global name='cfg_description'/}dedecms">

列表页面meta
<meta name="keywords" content="{dede:field name='keywords'/}">
<meta name="description" content="{dede:field name='description' function='html2text(*me)'/}">

内容页面meta
<meta name="keywords" content="{dede:field name='keywords'/}">
<meta name="description" content="{dede:field name='description' function='html2text(*me)'/}">

Last edited by topvip : 2010-09-06 at 09:11 PM
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dedecms V5.6重设后台管理员密码 topvip DedeCMS 1 2010-09-03 10:13 PM
在php中进行gb2312与utf-8的互换 car 代码交流 1 2008-05-01 09:52 AM
文件批量转换器(从ansi 到 Utf-8) --转 topvip 代码交流 0 2008-03-31 11:28 AM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 10:11 PM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.