MENU service case
 Website construction website design Beijing website construction high-end website production company Shangpin China
We create by embracing change
360 ° brand value__
simplified Chinese character
Simplified Chinese English

Shangpin China Joins Hands with Beisheng Internet to Create a New Chapter in Website Construction

Type: Shangpin Dynamic Learn more

Discuz! X2 utf8 is upgraded to Discuz! X2.5 GBK Perfect Tutorial

Source: Shangpin China | Type: website encyclopedia | Time: April 16, 2012
Because the original forum installed Discuz! X2 UTF8 occupies more space (www.sino web. net), and the official Discuz! X2.5 official version, so I want to upgrade to Discuz directly! X2.5 GBK version.
 Discuz! X2.5

After many times of exploration and reference to the relevant conversion tutorial, we finally found the method of this conversion method and realized the perfect conversion. Now let's share this experience with you.

First, explain:

1. Plug ins are not considered in this tutorial. Plug ins must be uninstalled before installing the corresponding code

2. It is better to back up the whole site before use, so that it is easy to recover if there is a problem

1、 First, set Discuz! X2 UTF8 to Discuz! X2 GBK, specific courses are as follows:

1. Backup modified files:

This is mainly about image modification. Generally speaking, backup the following files:

1.1、static/image/common/logo.png

1.2、static/image/common/logo_sc.png

1.3、static/image/common/logo_88_31.gif

1.4、static/image/mobile/logo.gif

1.5、favicon.ico

1.6、.htaccess

2. Install TOOLS:

Download Tools 1.9M for Discuz! 10. Then install and use according to the official tutorial.

3. Transcoding with TOOLS:

First, close the forum to avoid affecting the use of members during the conversion process;

Then perform transcoding, click the large modularized TOOLS, and then click Code Conversion (as shown in the figure below) in the left column

Then click Submit and wait for the transformation to complete. The most important part of the modification is next.

4. Modify and upload the new GBK encoding program file to overwrite the original UTF8 file:

4.1 First download the latest Discuz from the official! X2 GBK //download.comsenz.com/DiscuzX/2.0/Discuz_X2_SC_GBK.zip , and unzip it to the default Discuz_X2_SC_GBK folder;

4.2. Then download and overwrite the three original UTF8 files in the forum to the corresponding decompressed Discuz_X2_SC_GBK folder, as shown in the following figure:

The three documents are:

config/config_global.php

config/config_ucenter.php

Uc_server/data/config.inc.php (the modification method of FULL version UC independent UC is not clear)

4.3 Modify the relevant configuration information in the three files in the Discuz_X2_SC_GBK folder

Open these three files with your favorite editor (such as Notepad) and modify them with search replacement:

Change all "utf8" in the file to "gbk", "utf-8" to "gbk", and the table prefix "pre_" to "gbk_pre_". Remember to save.

4.4 Upload all files in the Discuz_X2_SC_GBK folder to the forum with FTP tool, and select "Overwrite All";

Note: It must be uploaded to overwrite, rather than deleting the original and then uploading the new one.

Next, you can log in to the forum background management system again.

5. Reinstall TOOLS (optional, if not desired, uninstall directly)

Enter the Management Center - Plug in - TOOLS, uninstall and then install the corresponding code

6. In the background → Tools → Update Cache check all three → Update (if this part cannot be carried out, please go to step 8)

7. The reason why the previous step cannot be carried out is that your original administrator account has become an ordinary member, so you cannot log in to the management background. In this case, you need to call TOOLS in the external TOOLS tool For PHP files, one is to update the cache, and the other is to reply to the administrator password. Set the administrator account and password you use, and then submit it.

So far, the first step, UTF8 transcoding GBK successfully completed!

2、 Discuz! X2 GBK Upgrade to Discuz! X2.5 GBK

This operation can be upgraded directly according to the official tutorial.

Comsenz core product Discuz! X2.5 Official version

1) Backup database

2) Create the folder old, and move the old programs into the old directory except the data, config, uc_client, and uc_server directories

3) Upload 2.5 programs (files in the upload directory in the compressed package). If you are prompted to overwrite the directory when uploading, please select "Yes"

4) Upload the update.php in the utility directory of the installation package to the forum install directory, and delete the index.php in the install directory

Execute //your domain name/forum path/install/update.php

Follow the prompts to upgrade. The upgrade time varies with the data size and server performance. According to the test, it takes about 1.5-2.5 hours to upgrade from 2.0 to 2.5 for a 10G forum. If your version is older, it will take more time to upgrade.

After the upgrade, enter the background, update the cache, and test the function.

After the upgrade is successful, the files in the old directory can be deleted.

3、 Conversion Summary

The process of conversion and upgrade is relatively long and needs to be explored, and we are worried that the data will be damaged, but the joy after the upgrade is also beyond words. As long as files and data are backed up before operation, I don't think you need to worry. The above conversion and upgrade are also applicable to Discuz! X2 GBK Upgrade to Discuz! X2.5 utf8, just make opposite adjustments to the corresponding parameters.
This article was published by Beijing Website Construction Company Shangpin China ihucc.com
Source Statement: This article is original or edited by Shangpin China's editors. If it needs to be reproduced, please indicate that it is from Shangpin China. The above contents (including pictures and words) are from the Internet. If there is any infringement, please contact us in time (010-60259772).
TAG label:

What if your website can increase the number of conversions and improve customer satisfaction?

Make an appointment with a professional consultant to communicate!

* Shangpin professional consultant will contact you as soon as possible

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]

Communicate with professional consultants now!

  • National Service Hotline

    400-700-4979

  • Beijing Service Hotline

    010-60259772

Please be assured to fill in the information protection
Online consultation

Disclaimer

Thank you very much for visiting our website. Please read all the terms of this statement carefully before you use this website.

1. Part of the content of this site comes from the network, and the copyright of some articles and pictures involved belongs to the original author. The reprint of this site is for everyone to learn and exchange, and should not be used for any commercial activities.

2. This website does not assume any form of loss or injury caused by users to themselves and others due to the use of these resources.

3. For issues not covered in this statement, please refer to relevant national laws and regulations. In case of conflict between this statement and national laws and regulations, the national laws and regulations shall prevail.

4. If it infringes your legitimate rights and interests, please contact us in time, and we will delete the relevant content at the first time!

Contact: 010-60259772
E-mail: [email protected]