Home > CMS Tutorial > DEDECMS > How to delete dedecms 5.7 dream chain

How to delete dedecms 5.7 dream chain

藏色散人
Release: 2019-12-09 10:56:35
Original
2456 people have browsed it

How to delete dedecms 5.7 dream chain

How to delete dedecms 5.7 Dream Weaver Chain?

I just discovered that dedecms 5.7 is the official advertising version of 5.6. It added a junk Dreamweaver link thing to secretly add a black link, causing my site’s inclusion to drop significantly. I’m puzzled. , then I remembered that it was because I changed a theme in the middle and switched back to the official theme. I originally thought that the official theme would be better included due to good SEO optimization, because the previous theme was made by myself, and I didn’t pay much attention to SEO at that time. , the whole article is full of divs and css, without any

,

tags. I checked the friendly links today and found that there was some inexplicable extra L-carnitine. I checked it myself and found out that it turned out to be the official dede plant. When entering the black link, I have to consider how to transfer the data to phpcms v9 in the past two days and replace the entire site, haha. But before changing, it is better to remove these annoying dream chains. Although they were added for the survival of dede, they affect the collection. This also illustrates the hardship of programmers. As a well-known cms management tool, all Use these little thoughts.

Recommended study: 梦Weavercms

There are two ways to remove it. Which one is more convenient? As follows:

1. Modify the php file

Look for the include/taglib/flinktype.lib.php file in the root directory and find the following code:

The code is as follows:

$dedecms = false; 
$dedecms->id = 999; 
$dedecms->typename = ‘织梦链’; 
if($type == ‘dedecms’) $row[] = $dedecms;
Copy after login

Just delete the above text, or change the dedecms in $type == 'dedecms' to a random name, for example, change it to your URL

2. Modify the template

directly Open index.htm in templatesdefault in the root directory, which is the template of the homepage, find {dede:flinktype type="dedecms"}, delete it, or change the dedecms to a random name, haha. There are two places. If you change any of them, the dream chain will appear.

The above is the detailed content of How to delete dedecms 5.7 dream chain. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template