#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!