Home CMS Tutorial DEDECMS What are the tips for using dedecms to create an English website?

What are the tips for using dedecms to create an English website?

Jan 13, 2020 am 10:04 AM
dedecms

What are the tips for using dedecms to create an English website?

What are the tips for using dedecms to create an English website?

Technical instructions for using dedecms to create an English website

Recommended learning: 梦weavercms

Domestic English webmasters often encounter You need to use the domestic Chinese version of CMS or forums and blogs to build an English website. However, many programs are designed for domestic users, so there is no official English version, such as ecshop, dede cms, discuz, and zblog also use English language packages. Realized, so secondary development has become a hot topic.

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. 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.

Most webmasters want to build an English website to improve this situation, but many people have not done it. In addition to unfamiliarity with the language, the choice of CMS must also be bothering everyone. There is no shortage of excellent cms systems abroad, such as joomla. Mambo... has long been popular, but the operating habits of these systems are obviously very different from ours. Therefore, many people are asking, can we use the familiar dede to make a decent English website? Haha, let’s get to the point now

This article is aimed at the following people: 1. Familiar with dede, at least made one with dede Person 2 of the Chinese site does not intend to be the webmaster of the English garbage site.

Let’s talk about the preliminary preparations first:

First, you have to download a modified version of Feilonglong DEDE4.0utf-8

Then buy a foreign space with a domain name of at least It should also be .com. It doesn’t matter if it’s longer, as long as it’s spelled with words related to your topic, such as: my-freewebhosts-center.com, etc. It’s okay to buy domestic ones, but the DNS resolution must be replaced by foreign ones

The next step is to install utf-8 dede...

After installation, look at the front desk, it has become the English version Okay

Start making templates, you can imitate the English website.

There are several points to note when making boards:

1. Character set issue: charset=utf-8

2. Use Verdana, Arial, Helvetica, sans-serif as fonts. Such fonts look better in English

3. Do not use Chinese characters on all pages, such as full-width spaces

4. Page layout, details, etc. must conform to the habits of foreigners

For example: the time format is "month-day-year", the corresponding dede tag is: [field:pubdate function=strftime('%m-%d-%Y',@me)/]

The news list is displayed as: title description,

If you look at more foreigner sites, you will understand

Recommended: http://news.yahoo.com/i/1419;_ylt=Ali1aoiCjCQbrdMsZNeBewTVJRIF

5.SEO details

(1) URL processing of articles

Everyone should know that Google attaches great importance to URL addresses. For the same article titled old food new tricks, if the URL is displayed as http://www.xxx.com/list1/20070928/5104.html Obviously not as high as http://www.xxx.com/list1/old-food-new-tricks.html. The default page address generated by dede is the former. How to change the display type to the latter?

Enter the backend and modify the article naming rules of the column. The default is: {typedir}/{Y}{M}{ D}/{aid}.html

Modified to: {typedir}/{pinyin}.html I removed {Y}{M}{D}, which reduces the level of the article and is conducive to engine inclusion.

For specific modification methods, please refer to my article: http://bbs.foradmin.com/viewthread.php?tid=1335

(2) Meta processing

I modified the meta of article_article.htm to:

Note that there must be a space between the tags, otherwise the following will not work

After this modification, the meta of each article is Different

I want to implement the meta of list_article.htm as

to call the keywords and descriptions of the columns respectively. This requires modifying some files. For specific modification methods, please refer to:

  http://bbs.foradmin.com/viewthread.php?tid=1468
Copy after login

In addition, I put a tag like

{dede:field name='keywords' runphp='yes' } 
  if(!empty(@me)){ 
  $kws = explode(' ',@me); 
  @me = ""; 
  foreach($kws as $k){ 
  @me .= "$k "; 
  } 
  @me= str_replace('+', ' ',trim(@me)); 
  } 
  {/dede:field}
Copy after login

in front of the text of the article to directly call the keywords of the article, and these keywords are linked, which is said to have a similar function to tags.

 6. How to place gg advertisements? I also hope that my experience will be useful to novices!

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]
Copy after login

Change

$restr .= "-"; These things

are completely quoted from 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 English Culture

include/inc_archives_view.php

include/inc_arclist_view.php

include/inc_arcsearch_view.php

The modifications below are mainly for the article list page Content flipping search page translated into English.

Open the above three files with Notepad in sequence.

We first open include/inc_archives_view.php

Find the

quote in turn:

//Get the previous article and next article link

//Get the dynamic page paging list

//Get the static page paging list

These three places, change the Chinese that appears under these three places into English

Open include/inc_arclist_view.php

Find the

references in sequence:

//Get the static paging list

//Get the dynamic paging list

In these two places, change the Chinese that appears under these two places into English

Open include/inc_arcsearch_view.php

Find in turn

Quote:

//Get the dynamic paging list

In this place, change the Chinese that appears below this place into English

2. Generate the article address and remove the article numeric ID

Open include/inc_channel_unit_function.php with Notepad

Find

Quote:

$articleRule = str_replace("{pinyin}",GetPinyin($title)." _".$aid,$articleRule);

Change to

Quote:

$articleRule = str_replace("{pinyin}",GetPinyin($title),$ articleRule);

To put it simply, remove ."_".$aid

Then in the advanced options of the column in the background,

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 System prompt

DedeCms Prompt message:

If your browser does not respond, please click here...

Correspondingly change to

Quote:

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!
Copy after login

The above is the detailed content of What are the tips for using dedecms to create an English website?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Where is the imperial cms resource network template? Where is the imperial cms resource network template? Apr 17, 2024 am 10:00 AM

Empire CMS template download location: Official template download: https://www.phome.net/template/ Third-party template website: https://www.dedecms.com/diy/https://www.0978.com.cn /https://www.jiaocheng.com/Installation method: Download template Unzip template Upload template Select template

How to use dedecms How to use dedecms Apr 16, 2024 pm 12:15 PM

Dedecms is an open source Chinese CMS system that provides content management, template system and security protection. The specific usage includes the following steps: 1. Install Dedecms. 2. Configure the database. 3. Log in to the management interface. 4. Create content. 5. Set up the template. 6. Manage users. 7. Maintain the system.

Accurate and reliable dedecms conversion tool evaluation report Accurate and reliable dedecms conversion tool evaluation report Mar 12, 2024 pm 07:03 PM

Accurate and reliable dedecms conversion tool evaluation report With the rapid development of the Internet era, website construction has become one of the necessary tools for many companies and individuals. In website construction, using a content management system (CMS) can manage website content and functions more conveniently and efficiently. Among them, dedecms, as a well-known CMS system, is widely used in various website construction projects. However, sometimes we are faced with the need to convert the dedecms website to other formats, in which case we need to use a conversion tool

How to upload local videos to dedecms How to upload local videos to dedecms Apr 16, 2024 pm 12:39 PM

How to upload local videos using Dedecms? Prepare the video file in a format that is supported by Dedecms. Log in to the Dedecms management backend and create a new video category. Upload video files on the video management page, fill in the relevant information and select the video category. To embed a video while editing an article, enter the file name of the uploaded video and adjust its dimensions.

How dedecms implements template replacement How dedecms implements template replacement Apr 16, 2024 pm 12:12 PM

Template replacement can be implemented in Dedecms through the following steps: modify the global.cfg file and set the required language pack. Modify the taglib.inc.php hook file and add support for language suffix template files. Create a new template file with a language suffix and modify the required content. Clear Dedecms cache.

A simple way to learn dedecms encoding conversion function A simple way to learn dedecms encoding conversion function Mar 14, 2024 pm 02:09 PM

Learning dedecms encoding conversion function is not complicated. Simple code examples can help you quickly master this skill. In dedecms, the encoding conversion function is usually used to deal with problems such as Chinese garbled characters and special characters to ensure the normal operation of the system and the accuracy of data. The following will introduce in detail how to use the encoding conversion function of dedecms, allowing you to easily cope with various encoding-related needs. 1.UTF-8 to GBK In dedecms, if you need to convert UTF-8 encoded string to G

What loopholes does dedecms have? What loopholes does dedecms have? Aug 03, 2023 pm 03:56 PM

DedeCMS is an open source content management system that has some potential vulnerabilities and security risks: 1. SQL injection vulnerability. Attackers can perform unauthorized operations or obtain sensitive data by constructing malicious SQL query statements; 2. File Upload vulnerability, attackers can upload files containing malicious code to the server to execute arbitrary code or obtain server permissions; 3. Sensitive information leakage; 4. Unauthenticated vulnerability exploitation.

What website can dedecms do? What website can dedecms do? Apr 16, 2024 pm 12:24 PM

Dedecms is an open source CMS that can be used to create various types of websites, including: news websites, blogs, e-commerce websites, forums and community websites, educational websites, portals, other types of websites (such as corporate websites, personal websites, photo album websites, video sharing website)

See all articles