I have to log in to the backend to maintain the website every day, but when I log in to the backend, I see a lot of advertisements. I am very dazzled and tired of seeing them. At first, I ignored them, but recently I made a website built by the DreamWeaver program. This time it didn’t work and I had to remove these ads, so I found a lot of tutorials and finally removed them. Now I’ll share my solution with you:
Look at Dreamweaver Advertisements on the login interface, how annoying
The picture indicates the ads to be deleted
Modification method:
Find the background first File: login.htm You should all know the specific location, it is in the dede\templets directory under the root directory of the website.
Open with Dreamweaver or other text editor. Find a piece of code:
The code is as follows:
<div><iframe name="loginad" src="login.php?dopost=showad" frameborder="0" id="loginad" scrolling="no" marginwidth="0" marginheight="0" width="100%"></iframe></div>
This code controls the advertising space at the bottom of the chart. We will delete it.
<div>Powered by<a href="http://w×w.dedecms.com" title="DedeCMS官网"><strong>DedeCMS<?php echo $cfg_version; ?></strong></a>© 2004-2011 <a href="http://w×w.desdev.cn" target="_blank">DesDev</a> Inc.</div>
This code is to control the copyright information at the bottom of the picture. We will also delete it
After this step is completed, when we open the login interface again, it will take effect immediately. The advertising space and copyright information have disappeared, but this is not complete because the advertising files and some parameters still exist. Next we will delete the parameters for calling advertisements. As shown in the picture:
#Through the selected code, we can find the parameter storage file for the call, which is in the dede/login.php file. Also open it with an editor and find the following code (usually on lines 39-48):
The code is as follows:
//更新服务器 require_once (DEDEDATA.'/admin/config_update.php'); if ($dopost=='showad') { include('templets/login_ad.htm'); exit; } //检测后台目录是否更名
Delete the above code to solve the problem of deleting ads on the login interface. At the same time, find the complete directory of this file in dede/templets/login_ad.htm, find it and delete it.
If you don’t want to see the login interface advertisement when using Dreamweaver, you can solve the problem by deleting these code files like this
We can find the parameter storage file of the call through the selected code, which is in dede /login.php file. Also open it with an editor and find the following code (usually on lines 39-48):
The code is as follows:
//更新服务器 require_once (DEDEDATA.'/admin/config_update.php'); if ($dopost=='showad') { include('templets/login_ad.htm'); exit; } //检测后台目录是否更名
Delete the above code to solve the problem of deleting ads on the login interface. At the same time, find the complete directory of this file in dede/templets/login_ad.htm, find it and delete it.
If you don’t want to see the login interface ads when using DreamWeaver, you can solve the problem by deleting these code files like this
The above is the detailed content of How to remove ads on the background login interface of Dede. For more information, please follow other related articles on the PHP Chinese website!