Ways to remove dedecms 5.7 background Copyright advertising Links

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.