The new version of Dedecms 5.7 in the background when landing, as well as after landing pages, have left the location of the ads. In principle, we have little influence, but think about it, once the dedecms of the advertising server was captured, the position of the advertisement was put on the horse, the consequences imaginable. So I thought about removing it. Now let's move on.
First, the removal of the background landing page ads.
1, with Notepad open/dede/templets/login.htm file, find the following code and delete.
<div><iframe name= "Loginad" src= "Login.php?dopost=showad" frameborder= "0" id= "Loginad" scrolling= "no" Marginwidth= "0" marginheight= "0" width= "100%" ></iframe></div>
The above code is the bottom of the background landing box ads.
<div>powered by<a href= "http://www.111cn.net" title= "dedecms official website" ><strong>dedecms<?php Echo $cfg _version;?></strong></a>©. 2004-2011 <a href= "http://www.desdev.cn" target= "_blank" >DesDev</a> inc.</div>
</div>
The above code is part of the copyright notice and can also be deleted directly. And then conveniently modify the title section code:
<title><?php echo $cfg _softname. " ". $cfg _version;?></title>
Modified to:
<title><?php Echo $cfg _webname?>-Admin login </title> Final effect: Site name-Admin Login
2, open the/dede/login.php file, find the 42nd to 46th line part of the code, it can be removed.
if ($dopost = = ' Showad ')
{
Include (' templets/login_ad.htm ');
Exit
}
and also to delete the corresponding "/dede/templets/login_ad.htm" template file, this file is redundant, the official addition of the advertising chain part.
Second, the removal of the background after landing the default home ads
The main parts to be removed are: Sponsored links, development teams, business licensing inquiries
1, open/dede/index_body.php, at the end of the file to find the following code:
<?php
Exit
else if ($dopost = = ' Showauth ')
{
Include (' templets/index_body_showauth.htm ');
Exit
else if ($dopost = = ' Showad ')
{
Include (' templets/index_body_showad.htm ');
Exit
}
?>
Modified to:
<?php
Exit
}
?>
Then, delete the/dede/templets/index_body_showauth.htm and/dede/templets/index_body_showad.htm files.
2, open/dede/templets/index_body.htm, delete the following code:
<dl class= ' dbox ' id= ' ITEM8 ' >
<dt class= ' lside ' ><div class= ' L ' > Sponsored links (<a href= "http://ad.111cn.net/ad/" target= "_blank" > Description </ a>) </div></dt>
<dd>
<iframe name= "Showad" src= "Index_body.php?dopost=showad" frameborder= "0" width= "100%" id= "Showad" frameborder= "0" Scrolling= "No" marginheight= "5" ></iframe>
</dd>
</dl><!--Sponsored links End-->
Above is the sponsor link advertisement
<dl class= ' dbox ' id= ' ITEM5 ' >
<dt class= ' lside ' ><div class= ' l ' > Development team </div></dt>
<dd class= ' intable ' >
<table width= "98%" >
<tr>
<TD width= ' 25% ' height= ' class= ' nline ' style= ' text-align:right ' > main program development: </td>
<TD class= ' nline ' style= "Text-align:left" > Tianya, it Plato, Sha Envy, Blue Random, Niap, carpenter, cha369</td>
</tr>
<tr>
<TD height= ' class= ' nline ' style= ' text-align:right ' > interface and interactive design:</td>
<TD class= ' nline ' style= ' text-align:left '?? Cloth??、 like, pig Heart Yu, Fang Vi, Xiao Wang </td>
</tr>
<tr>
<TD height= ' class= ' nline ' style= ' text-align:right ' > official forum Assistance:</td>
<TD class= ' nline ' style= "Text-align:left" > Thank the following webmaster (ranked in alphabetical order): Crazy Hammer, wood/Jie </td>
</tr>
</table>
</dd>
</dl><!--development team ends-->
The above is the development team introduction information.
<dl class= ' dbox ' id= ' item2 '
<dt class= ' lside ' ><span class= ' l ' > Commercial Authorization Inquiry </span></ Dt>
<dd>
<iframe name= "Showauth" src= "Index_body.php?dopost=showauth" 100% "frameborder=" 0 "scrolling=" no "marginwidth=" "marginheight=" "id=" "Showauth" ></iframe>
</dd>
</dl> <!--update message is over.
above is the commercial authorization query module.
3, the background of the top copyright information and links mainly modify/dede/templets/index_top2.htm and/dede/templets/index2.htm two template files.
4, remove the left column "System Help", modify template file as:/dede/inc/inc_menu.php