#dedecmsWhat needs to be modified to create an English website?
dedecms Things that need to be modified when making an English website
Recommended study:梦weavercms
I have always I don’t like using DEDE for English websites. It’s not that it’s bad, but there are too many things that need to be changed. It’s not as easy as changing fonts and coding as some people say online.
I am currently working on a big project these days, which is to modify DEDE into an English website. I originally wanted to use JOOMLA to do it, but the speed of JOOMLA really crashed me, and the background The complex program simply amazed me. I can only say that JOOMLA is a good program. It is so good that it is so complicated that it is really difficult to master it.
So looking back, after thinking about it again and again, I decided to use DEDECMS as the English website. It seems that many people are currently using DEDE as their English website, and many of them have no traffic. The first reason is that I have already mentioned the problem of data overflow in the previous series of English website development and promotion experience. The second reason is the lack of Interaction.
It has been 3 days since I changed it. On the first day, I changed the template to UTF-8 mode. I originally wanted to change it to ISO-8859 format. I PMed several administrators on the official website to ask if there would be any problems with this change. Will there be any errors when exporting, but no one responded to me, which made me depressed. Forget it, let’s just change it to UTF-8 format. Adjust the width, color, etc. of the template, which refers to many foreign websites with related themes. I took a LOGO from the JOOMLA style and pasted it on top to save trouble.
The next day, I modified the details and changed all the Chinese and full-width symbols that appeared on several main pages. Maybe everyone noticed the full-width comma, but not many people seemed to pay attention to the full-width semicolon. Here Remind your colleagues. Remove all instructions in the code or replace them with English. When clicking on pictures or advertisements on the home page, consider the left- and right-handed habits of foreigners using their mouse. I wrote several pages, including copyright, privacy, about, contact information, etc. For this purpose, I also applied for an MSN. Friends who have MSN, remember to add it and communicate more, msn: youyouljj@gmail.com
On the third day, today, I modified the template again in the morning, including defining the size of the picture to prevent the frame from breaking, and the size of the slideshow and revolving door on the homepage. In the afternoon, I will revise the most important part, the comprehensive English version of SEARCH, comments and other pages. This may be ignored by many people. Foreigners prefer to have exchanges, comments and the like. Don’t you want them to see some Martian texts, right? I haven’t finished the modification yet, so I took a break and wrote this article. I hope it will be helpful to friends who use dede to build English websites.
In addition, this is just what I thought of, speaking from experience.
When building an English website, for URL optimization, set the generated file name to use the article title.
But I encountered a problem. For example, the article name is I LOVE YOU, and the article page generated by dede is I_LOVE_YOU.htm. In the eyes of the search, the file name is ILOVEYOU.htm, which becomes a meaningless word. . So change _ into -. The file name generated in this way is I-LOVE-YOU.htm. It is very important to include keywords in the English website URL. Now I would like to share the method with you. I got this method from BLT brother. I haven’t tried it myself yet, so I sent it to you as soon as possible.
Open include/inc/inc_fun_funAdmin.php
[code] for($i=0;$i<$slen;$i++){ if(ord($str[$i])>0x80) { $c = $str[$i].$str[$i+1]; $i++; if(isset($pinyins[$c])){ if($ishead==0) $restr .= $pinyins[$c]; else $restr .= $pinyins[$c][0]; }else $restr .= "-"; }else if( eregi("[a-z0-9]",$str[$i]) ){ $restr .= $str[$i]; } else{ $restr .= "-"; } } [code]
Change
$restr .= "-"; 这些东西
Completely quote his original words, complete.
dedecms English site translation part
The main parts of this modification:
1. The English version of the article page turning
2. Remove the address of the generated article Article data ID
3. Change the prompt window of DEDECMS to English.
4. Change the redirect prompt to English
5. Change the search display to English prompt
6. Meta settings of the page
1. Page turning The modifications under English version
include/inc_archives_view.php include/inc_arclist_view.php include/inc_arcsearch_view.php
are mainly for the English version of the translation of the article list page content page search page.
Open the above three files with Notepad in sequence.
We first open include/inc_archives_view.php
Find these three places in sequence
引用: //获取上一篇,下一篇链接 //获得动态页面分页列表 //获得静态页面分页列表
, and change the Chinese that appears under these three places into English
Open include/inc_arclist_view.php
Find these two places in sequence
引用: //获取静态的分页列表 //获取动态的分页列表
, and change the Chinese that appears under these two places to English
Open include/inc_arcsearch_view.php
Find this place in turn
引用: //获取动态的分页列表
, and change the Chinese that appears under this place to English
2. Generate the article address and remove the article numeric ID
Use Open include/inc_channel_unit_function.php in Notepad
Find
引用: $articleRule = str_replace("{pinyin}",GetPinyin($title)."_".$aid,$articleRule);
and change it to
引用: $articleRule = str_replace("{pinyin}",GetPinyin($title),$articleRule);
Simply put, remove it."_".$aid
Then In the background, go to the advanced options of the column
Article naming rules: {typedir}/{pinyin}.html
3. Change the prompt window of DEDECMS to English.
This must be edited with Dreamweaver, not Notepad, otherwise the background will be blank!
Use Dreamweaver to open include/inc_functions.php
Find ShowMsg and look down. Found in order:
Quote:
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!
The above is the detailed content of What needs to be modified when dedecms makes an English website?. For more information, please follow other related articles on the PHP Chinese website!

dedecms增加多语言的方法:1、进入dedecms后台,创建封面栏目;2、将封面栏目“常规选项”的文件保存目录设置为cn或者en;3、将封面栏目“高级选项”的列表模板设置为“cn_index.htm”或者“en_index.htm”;4、单独调用每种语言的封面栏目和每种语言下的导航栏目即可。

织梦cms是用PHP语言写的。织梦CMS(DedeCMS)是一个PHP开源网站管理系统,作用是构建中小型网站;它采用PHP+MySQL技术开发,可同时使用于windows、linux、unix平台。

dedecms是PHP语言开发的;dedecms中文全称是织梦内容管理系统,是一个PHP开源网站管理系统;dedecms基于PHP和MySQL技术开发,可同时使用于Windows、Linux、Unix平台。

dedecms删除栏目的方法:1、登录后台管理;2、进入“栏目管理”,可以看到当前网站所有栏目;3、选择要删除的栏目;4、将鼠标悬停在栏目名称上,删除栏目;5、点击“确认”按钮以继续删除操作;6、删除成功。

织梦内容管理系统(DedeCMS) 以简单、实用、开源而闻名,是国内最知名的PHP开源网站管理系统,也是使用用户最多的PHP类CMS系统,在经历多年的发展,目前的版本无论在功能,还是在易用性方面,都有了长足的发展和进步。

火车头dedecms出现乱码解决方法:1、检查数据库编码;2、修改dedecms配置文件;3、检查浏览器编码设置;4、清理缓存和临时文件;5、寻求专业帮助。

dedecms是指织梦内容管理系统,是一个PHP开源网站管理系统,用于个人网站或中小型门户的构建;dedecms是基于PHP和MySQL技术开发,可同时使用于Windows、Linux、Unix平台。

dedecms有移动端,其移动端安装方法是:1、将DATA移到根目录外的安全设置,修改“/m/index.php”代码;2、在“更新主页HTML”中,将“选择主页模板”改为“default/index_m.htm”;3、将首页“图文资讯”的url修改为移动端链接;4、设置移动站可通过二级域名访问即可。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version
SublimeText3 Linux latest version

Notepad++7.3.1
Easy-to-use and free code editor

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver CS6
Visual web development tools
