In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail the method of making an English station on dedecms. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
What are the skills of using dedecms to make an English station?
Domestic English webmasters often encounter using the domestic Chinese version of cms or forums and blogs to build English websites, but many programs are designed for domestic users, so there is no official English version, such as ecshop and dede cms, discuz,zblog are also implemented using English language packs, so secondary development has become a hot topic.
I am working on a big project these days, that is, to change DEDE into an English station. I originally intended to do it in JOOMLA, but the speed of JOOMLA really made me collapse, and the complex program in the background simply made me marvel. I can only say that JOOMLA is a good program, so excellent that it is so complex that it is too difficult to master it.
So after looking back and thinking about it, I decided to use DEDECMS as an English station. It seems that at present, many people use DEDE as an English station, and many people have no traffic. The first reason is that I have already mentioned the problem of data flooding in the previous English station development and promotion series, and the second reason is the lack of interaction.
Changed for 3 days, the first day, modify the template to UTF-8 mode, originally wanted to change to ISO-8859 format, officially several PM administrators asked this change is not a problem, export will be wrong, the results are ignored me, depressed, forget it, just change to UTF-8 format. Adjust the width and color of the template, which refers to a lot of foreign related topics of the site. Pick a LOGO from the style of JOOMLA and post it on top, which is convenient.
The next day, modify the details and change all the Chinese and full-width symbols that appear on several main pages. Everyone may have noticed the full-width comma, but not many people seem to pay attention to the full-width semicolon. Here's a reminder. Remove or replace all the instructions in the code into English. Click on the picture or advertising space on the home page to consider the habit of foreigners using the left and right hand of the mouse. Wrote several pages, including copyright, privacy, about, contact information, etc., specially applied for a MSN, friends with MSN remember to add oh, more communication, msn:youyouljj@gmail.com
On the third day, today, the template was modified again in the morning, including defining the picture size, preventing the frame from breaking, and the size of the front page slide and walking horse lantern. In the afternoon, revise the most important part, SEARCH, comments and other pages of the comprehensive English culture, which may be overlooked by many people. Foreigners prefer communication, comments and so on. You don't want him to see some Martian, do you? Not finished, take a rest, write down this article, I hope it will be helpful to the friends who use dede to do English station.
Most webmasters want to be an English station to improve the situation, but many people don't do it. In addition to being unfamiliar with the language, the choice of CMS must be bothering you. There is no lack of excellent cms system abroad, joomla. Mambo. For a long time, the operating habits of these systems are obviously very different from ours. So, many people are asking, can we use the familiar dede to make a decent English station? Hehe, now let's get to the point.
This article aims at the crowd: 1, those who are familiar with dede and have done at least one Chinese station with dede 2, do not intend to be the stationmaster of English garbage station.
Let's start with the preparatory work:
First of all, you need to download a modified DEDE4.0utf-8 version of Feilonglong.
Then buy a foreign space, the domain name should be at least .com, it doesn't matter if it's longer, as long as the words related to your topic are spelled together, such as: my-freewebhosts-center.com and so on. It's okay to buy domestic ones, but DNS parsing must be replaced with foreign ones.
Next, it is to install the dede of utf-8.
After installation, take a look at the front desk. It has become an English version.
Start to make a template, you can imitate the English station to do.
The following points should be paid attention to in board making:
1. Character set problem: charset=utf-8
two。 Fonts use Verdana, Arial, Helvetica, sans-serif. This font shows better English.
3, do not appear Chinese characters on all pages, such as full-width spaces
4. The layout and details of the page should conform to the habits of foreigners.
For example, the time format is "month-day-year", and the corresponding dede tag is: [field:pubdate function=strftime ('% mmury% dmurf% yawpjimme) /]
The news list is displayed as: title + description
Take a look at the foreigner's site, you can understand it.
Recommended: http://news.yahoo.com/i/1419;_ylt=Ali1aoiCjCQbrdMsZNeBewTVJRIF
5.SEO details
(1) url processing of articles
As we all know, google attaches great importance to url addresses, and the same article entitled old food new tricks, if url is displayed as http://www.xxx.com/list1/20070928/5104.html, is obviously not as weighted as http://www.xxx.com/list1/old-food-new-tricks.html. Dede default generated page address is the former, how to change to the latter display type?
Go to the background 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 beneficial to the engine.
For specific modification methods, please refer to my article: http://bbs.foradmin.com/viewthread.php?tid=1335
(2) treatment of meta
I changed the meta of article_article.htm to:
Note that there must be a space between the labels, otherwise the latter will not work.
After this revision, the meta of each article is different.
I want to implement the meta of list_article.htm as
Call the keywords and description of the column respectively. You need to modify some files. Refer to the specific modification method:
Http://bbs.foradmin.com/viewthread.php?tid=1468
In addition, I put it in front of the body of the article
{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}
Such tags directly call the keyword of the article, and these keyword are linked, which is said to be similar to tag.
How to put the 6.gg advertisement?
That's all I have to say. I have just started to do an English station. Many practices may be immature. I hope to have a master to correct them. I also hope my experience will be useful to the novice!
Besides, I just thought of it myself, speaking from experience.
When doing an English station, set up the title of the article to generate the file name for URL optimization.
But there is a problem, for example, if the title of the article is I LOVE YOU,dede, the article page is I_LOVE_YOU.htm. In the eyes of the search, the file name ILOVEYOU.htm has become a meaningless word. So turn _ into -. The resulting file name is I-LOVE-YOU.htm. It is very important to make an English URL that contains keywords. Now I would like to share the practice with you. I asked for advice from Brother BLT. I sent it at the first time before I tried it.
Open include/inc/inc_fun_funAdmin.php
[code] for ($ibombac / i0x80) {$c = $str [$I]. $str [$item1]; $iTunes; 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. = "-"; these things
Fully quote him. Over.
Translation section of dedecms English station
The main parts of this revision are:
1. The English culture of turning the pages of the article
two。 Generate the article address and remove the article data ID
3. The prompt window for changing DEDECMS is changed to English.
4. Change the turn prompt to English
5. The search display was changed to English prompt.
6. Meta settings for the page
1. The English Culture of turning the pages
Include/inc_archives_view.php
Include/inc_arclist_view.php
Include/inc_arcsearch_view.php
The next revision is mainly aimed at the content of the article list page to search the English culture of the translation of the page.
Open the above three files with notepad in turn.
Let's open include/inc_archives_view.php first.
Find it in turn
Reference:
/ / get links to the previous and next articles
/ / get the paging list of dynamic pages
/ / get the paging list of static pages
In these three places, change the Chinese that appears below these three places into English.
Open include/inc_arclist_view.php
Find it in turn
Reference:
/ / get static paging list
/ / get dynamic paging list
In these two places, change the Chinese that appears below these two places into English.
Open include/inc_arcsearch_view.php
Find it in turn
Reference:
/ / get dynamic paging list
In this place, change the Chinese that appears below this place into English.
two。 Generate the article address and remove the article number ID
Open include/inc_channel_unit_function.php with notepad
find
Reference:
$articleRule = str_replace ("{pinyin}", GetPinyin ($title). "_". $aid,$articleRule)
Change to
Reference:
$articleRule = str_replace ("{pinyin}", GetPinyin ($title), $articleRule)
To put it simply, get rid of. "_". $aid
Then in the background, in the advanced options of the column,
Article naming rules: {typedir} / {pinyin} .html
3. The prompt window for changing DEDECMS is changed to English.
This must be edited with Dreamweaver, not notepad, or there will be a blank in the background!
Open include/inc_functions.php with Dreamweaver
Find ShowMsg and read on. Find the following sequence:
Reference:
DedeCms system prompt
DedeCms prompt message:
If your browser doesn't respond, please click here.
Correspondingly modified to
Reference:
DedeCms Message
DedeCms Message:
If your browser is no response, please click here...
4. Change the turn prompt to English
Open include/jump.html with notepad
Find the following sequence:
Reference:
Turning: just a moment, please.
Content summary:
TO:
Correspondingly modified to
Reference:
TO:
Are turning to: Please wait...
Brief Introduction:
5. The search shows the prompt in English.
Open plus/search.php with notepad
Find the following sequence:
Reference:
The server is busy, please search later
Your keyword input is illegal!
There is illegal content in your message, which is prohibited by the system! [return]
Keyword length must be between 3-30 bytes!
Correspondingly modified to
Reference:
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! This is the end of the method of making an English station for dedecms. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.