Repair of blank display on the right side of the weimeng Sitemap plug-in

Source: Internet
Author: User

After using the plug-in provided by sitemap, many webmasters found problems. After you click "Update map XML" or "Update map HTML" in the Dedecms management background, the operation area on the right is blank and you cannot perform the next operation. As a result, the website map cannot be generated, as shown in.

Yu Dou gave a solution to this problem, the link address is: http://www.wappcn.com/1230.html. However, after you click "Update map XML" or "Update map HTML", the solution provided by Yu Dou has the same operation interface on the right as "Update homepage HTML, this is easy to confuse with "Update homepage HTML" during the operation process. For more information about the operation images of the solution, see:

Here I will provide a simpler solution for your reference. The blank display of the Sitemap plug-in is due to a problem in template calling, so we only need to modify the template file in the plug-in.

1. Use dreamweaverto open the plug-in template file makehtml_htmlpage.htm and search for "value =" <? Php echo "../sitemap.html" ", find this statement in line with file 46th and replace it with" value = "<? Php echo "../sitemap.html"?>" ", Save, upload, and overwrite the original file. The reason for the plug-in failure is that the php source code here lacks the closed code on the right "?> ", Which is caused by a problem with the value assignment.

Before modification:

After modification:

2. Use dreamweaverto open the plug-in template file makehtml_xmlpage.htm and search for "value =" <? Php echo "../sitemap. xml" ", find this statement in line 46th of the file, replace this statement with" value = "<? Php echo "../sitemap. xml "? > ", Save, upload, and overwrite the original file. The cause of the plug-in failure is also the lack of php close code on the right.

Now, when using the sitemap plug-in, click the update map option on the left to solve all the blank issues.

I will provide some additional instructions and suggestions for this plug-in.

1. I do not recommend that you replace the original Dedecms file with the ‑makehtml_homepage.htm file in the plug-in. This file is a processed file. During the operation, the default location of the homepage template is "abc/index.htm". See. Therefore, you must use the "Browse" button next to the homepage to select a homepage template each time you update the homepage HTML. Otherwise, the homepage template cannot be found and a problem occurs in homepage generation. You can modify the default homepage address in the makehtml_homepage.htm file to your homepage template address. However, when you need to change the website style directory, you must modify the default homepage template address in the file again. You can also directly change the default homepage address in the makehtml_homepage.htm file in the plug-in to the same as the original Dedecms code.

In the original website makehtml_homepage.htm file of dedecms, the template file is located at the same location as the homepage template you selected during the previous browsing. Even if you need to select the default homepage template address for the first operation, you can click the "Update homepage HTML" button below to select the homepage template every time.

In the plug-in makehtml_homepage.htm file, the default homepage template address code is as follows:

In the dedecmsoriginal makehtml_homepage.htm file, the default homepage template address code is as follows:

When the plug-in is uploaded, you can directly Delete the complete makehtml_homepage.htm file in the plug-in package without uploading it.

2. when a webmaster responds, click "Update xml map" or "Update html map" in the operation area on the right to access the sitemap website of the website, such as http: // www. ***. com/sitemap.html: The page displays the 404 page that cannot be connected. This is because the plug-in only supports "generating static" and does not support "Dynamic Browsing ". When you access sitemap, page 404 appears. When using this plug-in, you can only select the "generate static" option, and then click the update button below.

After the update, the following plug-ins are added to the machine dream backend Sitemap + Baidu Ping push:

Http://www.biofeng.com/uploads/soft/130612/1_1554096401.rar

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.