Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of deleting the dream chain of dedecms 5.7

Shulou Source: shulou.com Published: 2022-06-02 03:36:47 10月04日 Update

Editor to share with you how to delete the dedecms 5.7 dream chain, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

How to delete dedecms 5.7Dream chain?

I found that dedecms 5.7is the official advertising version of 5.6. it added a junk dream chain to secretly add the black chain, which made my site's collection drop sharply, and I was puzzled. Later, I remembered that it was because I had changed a theme in the middle and returned to the official theme. I originally thought that the official theme would be better because of seo optimization, because the previous theme was done by myself, and I didn't pay much attention to seo at that time. The whole article is div and css, no one, tag, today checked the link, found inexplicable what L-carnitine, their own inspection, found that the original dede official implanted black chain that, these two days have to consider how to transfer the data to phpcms v9, change the whole station, . However, before the change, get rid of these annoying dream chains, although it is for the survival of dede to join, but it affects the collection, which also shows the hardship of programmers, as a well-known cms management tool, to move these small thoughts.

There are two ways to remove it. Let's see that one is 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 = 'dream chain'; if ($type = = 'dedecms') $row [] = $dedecms

Delete the above text, or change any name of dedecms in $type = = 'dedecms', for example, to your URL.

two。 Modify template

Directly open the index.htm in the templetsdefault in the root directory, that is, the template on the home page, find {dede:flinktype type= "dedecms"}, delete it, or change the name of that dedecms randomly, hehe. There are two places, one less will appear dream chain.

The above is all the contents of the method of deleting the dream chain of dedecms 5.7. thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Subject official method inspection code content name file root directory article annoying well-known hard puzzled inexplicable not much things that is the whole station friendship Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Docker Apple Linux NVidia