Weaving dream) The method of removing advertisement in Dede template
1, we first delete the head of the ads, find Templetsdefault under the Head.htm file, opened to find
<div>{dede:myad name= ' innertopbanner1′/}</div>
<div>{dede:myad name= ' innertopbanner2′/}</div>
Delete Save, in return to find index.htm file under the same code delete save, so that the homepage and content also head of the ads are deleted
How to remove ads in Dede templates
2, the following again delete the homepage section of the advertisement, the same templetsdefault under the index.htm file
<div id= "leftad1″style=" margin:10px Auto ">{dede:myad name= ' Indexleftbanner '/}</div>
This section is the ad image in the middle of the homepage
<div id= "rightad1″style=" margin:10px Auto ">{dede:myad name= ' indexrightlitpic1′/}</div>
This paragraph is the right part of the first ad image, that is 240x65 ads for the picture
<div id= "rightad1″style=" margin:10px Auto ">{dede:myad name= ' indexrightlitpic2′/}</div>
This paragraph is the right part of the second ad image
<div style= "margin:10 Auto" >{dede:myad name= ' indexrtpicad3′/}</div>
This paragraph is the right part of the second advertising image, that is 240x200 ads for the picture
{Dede:myad name= ' Indexfooterad '/}
This section is the homepage at the bottom of the ad for the picture
Delete the code according to your needs, then save it.
How to remove ads in Dede templates
3, then delete the background ads
Locate the login.htm file in the Dedetemplets directory, and delete line 54th
<div><iframe name= "Loginad" src= "Login.php?dopost=showad" frameborder= "0″id=" Loginad "scrolling=" no " Marginwidth= "0″marginheight=" 0″width= "100%" ></iframe></div>
How to remove ads in Dede templates
4, when we log in successfully there will be a DEDECM login successful jump information, then we can also remove this part to find and directory under the Include folder under the Common.func.php file
Found it
$htmlhead = "And
$rmsg. = "<div style= ' padding:6px;font-size:12px;border-bottom:1px solid #DADADA; background: #DBEEBD URL ({$GLOBALS [' Cfg_plus_dir ']} /img/wbg.gif) '; ' ><B>DEDECMS Tip info! </b></div> "); RN";
Just remove them and you can.
5, finally delete the background login after the first page of the default ads, as long as the part
Locate the root directory Dede folder under the index_body.php file, and pull to the bottom 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
}
?>
To be replaced by:
<?php
Exit
}
?>
How to remove ads in Dede templates
7, this section of the code is the middle sponsor link inside the advertising posts are deleted, we then delete the whole sponsor link
Dedetemplets directory under the index_body.htm file, find the following code
Del datetime= "2011-03-09t00:10:42+00:00″> <dl class= ' dbox ' id=" item8″>
<dt class= ' lside ' ><div class= ' L ' > Sponsored links (<a href= "#" 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><!– Sponsor Link End –></del>
How to remove the advertisement in the Dede template of weaving dream?