Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What does the English station of dedecms need to modify?

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces dedecms production English station needs to modify what, the text is very detailed, has a certain reference value, interested friends must read!

Dedecms production english station needs to modify where there are?

Dedecms makes english station need to modify the place

I have always disliked using DEDE to do English stations, not bad, but need to change too many places, and not like some online said to change the font, change the code so easy things.

I am carrying out a big project these days, is to modify DEDE do English station, originally wanted to do with JOOMLA, but JOOMLA speed really let me collapse, and the background of the complex program simply let me marvel, can only say JOOMLA is a good program, too good, so complex to want to master it is too difficult.

So look back, think again and again, or decided to use DEDECMS do English station. It seems that at present many people are taking DEDE to do English station, many people hang there is no traffic, the first reason I have mentioned the problem of data flooding in the previous English station development promotion experience series, the second reason is the lack of interaction.

Change has 3 days, the first day, modify the template for UTF-8 mode, originally wanted to modify to ISO-8859 format, the official PM several administrators asked if there is any problem with this change, export words will not make mistakes, the results are ignored me, depressed, forget it, simply change to UTF-8 format bar. Adjust the template width, color, etc., which refers to a lot of foreign related themes of the site. From JOOMLA style on the pick up a LOGO to the top of a paste, save trouble.

The next day, modify the details, change all the Chinese and full-angle symbols that appear in several main pages. The full-angle comma may be noticed by everyone, but the full-angle semicolon seems to be noticed by few people. Here is a reminder to peers. Remove or replace the instructions in the code with English ones. Click on pictures or ads on the home page to consider the habits of foreigners using the left and right hands of the mouse. I wrote several pages, including copyright, privacy, about, contact information, etc. For this reason, I specially applied for an MSN. Friends with MSN remember to add oh, more exchanges, msn:youyououljj@gmail.com

On the third day, that is, this morning, I revised the template again, including defining the image size, preventing the frame from breaking, and the size of the slide on the first page and the ticker. In the afternoon, modify the most important part, Search, comments and other pages of comprehensive English culture, this may be ignored by many people, foreigners prefer to have exchanges, comments and the like, you do not want him to see some Martian text, right? Have not finished, rest, write this article, hope to use dede do english station friends have help.

Besides, I just thought of it myself, speaking from experience.

When doing English stations, in order to optimize URL, set the generated file name with the article title.

But encounter a problem is, for example, the article name is I LOVE YOU, dede generated article page is I_LOVE_YOU.htm. In the eyes of search, this file name is ILOVEYO.htm became a meaningless word. So we're going to turn_into-. The resulting file name is I-LOVE-YOU.htm. It is very important to make English website URL contain keywords. Now share the practice to everyone, this method from BLT elder brother there to consult, oneself have not tried, the first time sent over.

Open include/inc/inc_fun_funAdmin.php

[code] for($i=0;$i0x80) { $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]

modified

$restr .= "-"; these things

To quote him exactly, over.

dedecms English translation

The main elements of this revision:

1. English culture of the article turn page

2. Generate article address Remove article data ID

3. Changed DEDECMS prompt window to English.

4. Change the steering prompt to English

5. Search display changed to English prompt

6. meta settings for page

1. English culture of turning pages

include/inc_archives_view.php include/inc_arclist_view.php include/inc_arcsearch_view.php

The changes below are mainly aimed at the English translation of the article list page content page page turning search page.

Use Notepad to open the above three files in turn.

Let's start by opening include/inc_archives_view.php

successively find the

Quote: //Get previous, next link//Get dynamic page pagination list//Get static page pagination list

Change the Chinese below these three places into English

Open include/inc_arclist_view.php

successively find the

Reference: //Get static pagination list//Get dynamic pagination list

Change the Chinese below these two places into English

Open include/inc_arcsearch_view.php

successively find the

Reference: //Get dynamic pagination list

In this place, change the Chinese appearing below this place into English

2. Generate article address Remove article ID

The requested URL/inc_channel_unit_function.php was not found on this server.

find

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

changed to

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

Simply put, remove it. "_".$ aid

And then in the background, put the advanced options in the column

Article naming rules: {typedir}/{pinyin}.html

3. Changed DEDECMS prompt window to English.

This must be edited with Dreamweaver, can not be edited with Notepad otherwise there will be background blank situation!

Open include/inc_functions.php with Dreamweaver

Find ShowMsg and look down. Find:

Quote:

DedeCms System Tips

DedeCms prompt message:

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

Corresponding modification to

DedeCms Message DedeCms Message: If your browser is no response, please click here ...

4. Change the steering prompt to English

Open include/jump.html with Notepad

Find:

Quote:

Please wait...

Description:

TO:

Corresponding modification to

Quote: TO: Are turning to: Please wait... Brief Introduction:

5. Search for English tips

Open plus/search.php in Notepad

Find:

Quote:

Server busy, please search later

Your keyword input is illegal!

There is illegal content in your message, banned by the system! [Back]

Keyword length must be between 3-30 bytes!

Corresponding modification to

Quote:

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 dedecms production English station needs to modify all the content, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report