Weaving Dream Dedecms 5.7 Backstage There are many of the official advertising links to weave dream, let us take these ads to remove it.
One, the place Backstage landing page login.php advertisement chain.
1. Locate the Login interface template file/dede/templets/login.html, and find the ad part code below:
<div class= "Dede-iframe" ><iframe name= "Loginad" src= "Login.php?dopost=showad" frameborder= "0" id= "Loginad" Scrolling= "No" marginwidth= "0" marginheight= "0" width= "100%" ></iframe></div>
Delete it and modify the login.htm bottom copyright notice link.
Then modify the title Section code:
Will
<title><?php echo $cfg _softname. " ". $cfg _version;?></title>
Modified to:
<title><?php echo $cfg _webname;?>-Admin Login </title>
2. Then we find that "Login.php?dopost=showad" corresponds to the 42nd to 46th line of the login.php section of code, as follows:
if ($dopost = = ' Showad ') { include (' templets/login_ad.htm '); Exit }
Delete this part of the code, and then delete the corresponding "/dede/templets/login_ad.htm" template file, this file is redundant, the official addition of the advertising chain part.
Second, remove the background landing after the default home page ads
1. The main is to remove two parts: text chain advertising and development team statement.
Open index_body.php and find the following code:
<? Elseif ($dopost = = ' Showauth ') { include (' templets/index_body_showauth.htm '); Else if ($dopost = = ' Showad ') { include (' templets/index_body_showad.htm '); Exit }?>
To be replaced by:
<? PHP exit;}? >
Then delete the corresponding template file "index_body_showad.htm" and "index_body_showauth.htm" in the template directory.
2. Modify the template index_body.htm, which involves the following: Title part/advertising chain part/development team part, etc., here omit the concrete steps.
3. Backstage top copyright information and links mainly modify the index_top2.htm and index2.htm two template files.
4. Right column detail part of the place dedecms mainly involves 3 template files: sys_data.htm/sys_info_mark.htm/sys_info.htm.
5. Remove the left column "System Help" and modify the template file to:/dede/inc/inc_menu.php
This is basically all done in the background to remove the default copyright and advertising chain operation.
Ways to remove dedecms 5.7 background Copyright advertising Links